[2024-12-20 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:00:06 [end_date_ymd] => 2024-12-20 00:00:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:00:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:00:18] Production.INFO: count ==655 [2024-12-20 00:00:18] Production.ERROR: pbx CDR StartTime 2024-12-19 21:00:06 - End Time 2024-12-20 00:00:06 [2024-12-20 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059005', 'tblTempUsageDetail_20' ) start [2024-12-20 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059005', 'tblTempUsageDetail_20' ) end [2024-12-20 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059005', 'tblTempVendorCDR_20' ) start [2024-12-20 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059005', 'tblTempVendorCDR_20' ) end [2024-12-20 00:00:18] Production.INFO: ProcessCDR(1,14059005,1,1,2) [2024-12-20 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059005', 'tblTempUsageDetail_20' ) start [2024-12-20 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059005', 'tblTempUsageDetail_20' ) end [2024-12-20 00:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:00:25] Production.INFO: ==9465== Releasing lock... [2024-12-20 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:00:25] Production.INFO: 34.25 MB #Memory Used# [2024-12-20 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:01:05 [end_date_ymd] => 2024-12-20 00:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:01:24] Production.INFO: count ==610 [2024-12-20 00:01:24] Production.ERROR: pbx CDR StartTime 2024-12-19 21:01:05 - End Time 2024-12-20 00:01:05 [2024-12-20 00:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059010', 'tblTempUsageDetail_20' ) start [2024-12-20 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059010', 'tblTempUsageDetail_20' ) end [2024-12-20 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059010', 'tblTempVendorCDR_20' ) start [2024-12-20 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059010', 'tblTempVendorCDR_20' ) end [2024-12-20 00:01:24] Production.INFO: ProcessCDR(1,14059010,1,1,2) [2024-12-20 00:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059010', 'tblTempUsageDetail_20' ) start [2024-12-20 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059010', 'tblTempUsageDetail_20' ) end [2024-12-20 00:01:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:01:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:01:27] Production.INFO: ==9563== Releasing lock... [2024-12-20 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:01:27] Production.INFO: 32 MB #Memory Used# [2024-12-20 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:02:05 [end_date_ymd] => 2024-12-20 00:02:05 [RateCDR] => 1 ) [2024-12-20 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:02:05' and `end` < '2024-12-20 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:02:26] Production.INFO: count ==144 [2024-12-20 00:02:26] Production.ERROR: pbx CDR StartTime 2024-12-19 21:02:05 - End Time 2024-12-20 00:02:05 [2024-12-20 00:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059015', 'tblTempUsageDetail_20' ) start [2024-12-20 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059015', 'tblTempUsageDetail_20' ) end [2024-12-20 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059015', 'tblTempVendorCDR_20' ) start [2024-12-20 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059015', 'tblTempVendorCDR_20' ) end [2024-12-20 00:02:26] Production.INFO: ProcessCDR(1,14059015,1,1,2) [2024-12-20 00:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059015', 'tblTempUsageDetail_20' ) start [2024-12-20 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059015', 'tblTempUsageDetail_20' ) end [2024-12-20 00:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:02:29] Production.INFO: ==9634== Releasing lock... [2024-12-20 00:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:02:29] Production.INFO: 29.75 MB #Memory Used# [2024-12-20 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:03:05 [end_date_ymd] => 2024-12-20 00:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:03:24] Production.INFO: count ==145 [2024-12-20 00:03:24] Production.ERROR: pbx CDR StartTime 2024-12-19 21:03:05 - End Time 2024-12-20 00:03:05 [2024-12-20 00:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059020', 'tblTempUsageDetail_20' ) start [2024-12-20 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059020', 'tblTempUsageDetail_20' ) end [2024-12-20 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059020', 'tblTempVendorCDR_20' ) start [2024-12-20 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059020', 'tblTempVendorCDR_20' ) end [2024-12-20 00:03:24] Production.INFO: ProcessCDR(1,14059020,1,1,2) [2024-12-20 00:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059020', 'tblTempUsageDetail_20' ) start [2024-12-20 00:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059020', 'tblTempUsageDetail_20' ) end [2024-12-20 00:03:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:03:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:03:29] Production.INFO: ==9706== Releasing lock... [2024-12-20 00:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:03:29] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:04:04 [end_date_ymd] => 2024-12-20 00:04:04 [RateCDR] => 1 ) [2024-12-20 00:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:04:04' and `end` < '2024-12-20 00:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:04:20] Production.INFO: count ==137 [2024-12-20 00:04:20] Production.ERROR: pbx CDR StartTime 2024-12-19 21:04:04 - End Time 2024-12-20 00:04:04 [2024-12-20 00:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059025', 'tblTempUsageDetail_20' ) start [2024-12-20 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059025', 'tblTempUsageDetail_20' ) end [2024-12-20 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059025', 'tblTempVendorCDR_20' ) start [2024-12-20 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059025', 'tblTempVendorCDR_20' ) end [2024-12-20 00:04:20] Production.INFO: ProcessCDR(1,14059025,1,1,2) [2024-12-20 00:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059025', 'tblTempUsageDetail_20' ) start [2024-12-20 00:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059025', 'tblTempUsageDetail_20' ) end [2024-12-20 00:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:04:25] Production.INFO: ==9778== Releasing lock... [2024-12-20 00:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:04:25] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:05:05 [end_date_ymd] => 2024-12-20 00:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:05:23] Production.INFO: count ==137 [2024-12-20 00:05:23] Production.ERROR: pbx CDR StartTime 2024-12-19 21:05:05 - End Time 2024-12-20 00:05:05 [2024-12-20 00:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059030', 'tblTempUsageDetail_20' ) start [2024-12-20 00:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059030', 'tblTempUsageDetail_20' ) end [2024-12-20 00:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059030', 'tblTempVendorCDR_20' ) start [2024-12-20 00:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059030', 'tblTempVendorCDR_20' ) end [2024-12-20 00:05:23] Production.INFO: ProcessCDR(1,14059030,1,1,2) [2024-12-20 00:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059030', 'tblTempUsageDetail_20' ) start [2024-12-20 00:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059030', 'tblTempUsageDetail_20' ) end [2024-12-20 00:05:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:05:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:05:26] Production.INFO: ==9855== Releasing lock... [2024-12-20 00:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:05:26] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:06:05 [end_date_ymd] => 2024-12-20 00:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:06:19] Production.INFO: count ==137 [2024-12-20 00:06:19] Production.ERROR: pbx CDR StartTime 2024-12-19 21:06:05 - End Time 2024-12-20 00:06:05 [2024-12-20 00:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059035', 'tblTempUsageDetail_20' ) start [2024-12-20 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059035', 'tblTempUsageDetail_20' ) end [2024-12-20 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059035', 'tblTempVendorCDR_20' ) start [2024-12-20 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059035', 'tblTempVendorCDR_20' ) end [2024-12-20 00:06:19] Production.INFO: ProcessCDR(1,14059035,1,1,2) [2024-12-20 00:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059035', 'tblTempUsageDetail_20' ) start [2024-12-20 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059035', 'tblTempUsageDetail_20' ) end [2024-12-20 00:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:06:22] Production.INFO: ==9925== Releasing lock... [2024-12-20 00:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:06:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:07:05 [end_date_ymd] => 2024-12-20 00:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:07:17] Production.INFO: count ==133 [2024-12-20 00:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:07:05 - End Time 2024-12-20 00:07:05 [2024-12-20 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059040', 'tblTempUsageDetail_20' ) start [2024-12-20 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059040', 'tblTempUsageDetail_20' ) end [2024-12-20 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059040', 'tblTempVendorCDR_20' ) start [2024-12-20 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059040', 'tblTempVendorCDR_20' ) end [2024-12-20 00:07:17] Production.INFO: ProcessCDR(1,14059040,1,1,2) [2024-12-20 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059040', 'tblTempUsageDetail_20' ) start [2024-12-20 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059040', 'tblTempUsageDetail_20' ) end [2024-12-20 00:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:07:20] Production.INFO: ==10006== Releasing lock... [2024-12-20 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:07:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:08:05 [end_date_ymd] => 2024-12-20 00:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:08:17] Production.INFO: count ==133 [2024-12-20 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:08:05 - End Time 2024-12-20 00:08:05 [2024-12-20 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059045', 'tblTempUsageDetail_20' ) start [2024-12-20 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059045', 'tblTempUsageDetail_20' ) end [2024-12-20 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059045', 'tblTempVendorCDR_20' ) start [2024-12-20 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059045', 'tblTempVendorCDR_20' ) end [2024-12-20 00:08:17] Production.INFO: ProcessCDR(1,14059045,1,1,2) [2024-12-20 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059045', 'tblTempUsageDetail_20' ) start [2024-12-20 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059045', 'tblTempUsageDetail_20' ) end [2024-12-20 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:08:20] Production.INFO: ==10119== Releasing lock... [2024-12-20 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:08:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:09:05 [end_date_ymd] => 2024-12-20 00:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:09:17] Production.INFO: count ==133 [2024-12-20 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:09:05 - End Time 2024-12-20 00:09:05 [2024-12-20 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059050', 'tblTempUsageDetail_20' ) start [2024-12-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059050', 'tblTempUsageDetail_20' ) end [2024-12-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059050', 'tblTempVendorCDR_20' ) start [2024-12-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059050', 'tblTempVendorCDR_20' ) end [2024-12-20 00:09:17] Production.INFO: ProcessCDR(1,14059050,1,1,2) [2024-12-20 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059050', 'tblTempUsageDetail_20' ) start [2024-12-20 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059050', 'tblTempUsageDetail_20' ) end [2024-12-20 00:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:09:20] Production.INFO: ==10194== Releasing lock... [2024-12-20 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:09:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:10:05 [end_date_ymd] => 2024-12-20 00:10:05 [RateCDR] => 1 ) [2024-12-20 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:10:05' and `end` < '2024-12-20 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:10:17] Production.INFO: count ==133 [2024-12-20 00:10:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:10:05 - End Time 2024-12-20 00:10:05 [2024-12-20 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059056', 'tblTempUsageDetail_20' ) start [2024-12-20 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059056', 'tblTempUsageDetail_20' ) end [2024-12-20 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059056', 'tblTempVendorCDR_20' ) start [2024-12-20 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059056', 'tblTempVendorCDR_20' ) end [2024-12-20 00:10:17] Production.INFO: ProcessCDR(1,14059056,1,1,2) [2024-12-20 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059056', 'tblTempUsageDetail_20' ) start [2024-12-20 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059056', 'tblTempUsageDetail_20' ) end [2024-12-20 00:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:10:20] Production.INFO: ==10269== Releasing lock... [2024-12-20 00:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:10:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:11:05 [end_date_ymd] => 2024-12-20 00:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:11:17] Production.INFO: count ==127 [2024-12-20 00:11:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:11:05 - End Time 2024-12-20 00:11:05 [2024-12-20 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059061', 'tblTempUsageDetail_20' ) start [2024-12-20 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059061', 'tblTempUsageDetail_20' ) end [2024-12-20 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059061', 'tblTempVendorCDR_20' ) start [2024-12-20 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059061', 'tblTempVendorCDR_20' ) end [2024-12-20 00:11:17] Production.INFO: ProcessCDR(1,14059061,1,1,2) [2024-12-20 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059061', 'tblTempUsageDetail_20' ) start [2024-12-20 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059061', 'tblTempUsageDetail_20' ) end [2024-12-20 00:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:11:20] Production.INFO: ==10343== Releasing lock... [2024-12-20 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:11:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:12:04 [end_date_ymd] => 2024-12-20 00:12:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:12:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:12:17] Production.INFO: count ==126 [2024-12-20 00:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:12:04 - End Time 2024-12-20 00:12:04 [2024-12-20 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059066', 'tblTempUsageDetail_20' ) start [2024-12-20 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059066', 'tblTempUsageDetail_20' ) end [2024-12-20 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059066', 'tblTempVendorCDR_20' ) start [2024-12-20 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059066', 'tblTempVendorCDR_20' ) end [2024-12-20 00:12:17] Production.INFO: ProcessCDR(1,14059066,1,1,2) [2024-12-20 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059066', 'tblTempUsageDetail_20' ) start [2024-12-20 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059066', 'tblTempUsageDetail_20' ) end [2024-12-20 00:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:12:20] Production.INFO: ==10415== Releasing lock... [2024-12-20 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:12:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:13:05 [end_date_ymd] => 2024-12-20 00:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:13:17] Production.INFO: count ==125 [2024-12-20 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:13:05 - End Time 2024-12-20 00:13:05 [2024-12-20 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059071', 'tblTempUsageDetail_20' ) start [2024-12-20 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059071', 'tblTempUsageDetail_20' ) end [2024-12-20 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059071', 'tblTempVendorCDR_20' ) start [2024-12-20 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059071', 'tblTempVendorCDR_20' ) end [2024-12-20 00:13:17] Production.INFO: ProcessCDR(1,14059071,1,1,2) [2024-12-20 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059071', 'tblTempUsageDetail_20' ) start [2024-12-20 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059071', 'tblTempUsageDetail_20' ) end [2024-12-20 00:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:13:20] Production.INFO: ==10496== Releasing lock... [2024-12-20 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:13:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:14:05 [end_date_ymd] => 2024-12-20 00:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:14:17] Production.INFO: count ==125 [2024-12-20 00:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:14:05 - End Time 2024-12-20 00:14:05 [2024-12-20 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059076', 'tblTempUsageDetail_20' ) start [2024-12-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059076', 'tblTempUsageDetail_20' ) end [2024-12-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059076', 'tblTempVendorCDR_20' ) start [2024-12-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059076', 'tblTempVendorCDR_20' ) end [2024-12-20 00:14:17] Production.INFO: ProcessCDR(1,14059076,1,1,2) [2024-12-20 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059076', 'tblTempUsageDetail_20' ) start [2024-12-20 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059076', 'tblTempUsageDetail_20' ) end [2024-12-20 00:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:14:20] Production.INFO: ==10573== Releasing lock... [2024-12-20 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:14:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:15:05 [end_date_ymd] => 2024-12-20 00:15:05 [RateCDR] => 1 ) [2024-12-20 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:15:05' and `end` < '2024-12-20 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:15:16] Production.INFO: count ==125 [2024-12-20 00:15:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:15:05 - End Time 2024-12-20 00:15:05 [2024-12-20 00:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059081', 'tblTempUsageDetail_20' ) start [2024-12-20 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059081', 'tblTempUsageDetail_20' ) end [2024-12-20 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059081', 'tblTempVendorCDR_20' ) start [2024-12-20 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059081', 'tblTempVendorCDR_20' ) end [2024-12-20 00:15:16] Production.INFO: ProcessCDR(1,14059081,1,1,2) [2024-12-20 00:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059081', 'tblTempUsageDetail_20' ) start [2024-12-20 00:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059081', 'tblTempUsageDetail_20' ) end [2024-12-20 00:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:15:19] Production.INFO: ==10653== Releasing lock... [2024-12-20 00:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:15:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:16:05 [end_date_ymd] => 2024-12-20 00:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:16:17] Production.INFO: count ==125 [2024-12-20 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:16:05 - End Time 2024-12-20 00:16:05 [2024-12-20 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059086', 'tblTempUsageDetail_20' ) start [2024-12-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059086', 'tblTempUsageDetail_20' ) end [2024-12-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059086', 'tblTempVendorCDR_20' ) start [2024-12-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059086', 'tblTempVendorCDR_20' ) end [2024-12-20 00:16:17] Production.INFO: ProcessCDR(1,14059086,1,1,2) [2024-12-20 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059086', 'tblTempUsageDetail_20' ) start [2024-12-20 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059086', 'tblTempUsageDetail_20' ) end [2024-12-20 00:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:16:20] Production.INFO: ==10751== Releasing lock... [2024-12-20 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:16:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:17:05 [end_date_ymd] => 2024-12-20 00:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:17:17] Production.INFO: count ==124 [2024-12-20 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:17:05 - End Time 2024-12-20 00:17:05 [2024-12-20 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059091', 'tblTempUsageDetail_20' ) start [2024-12-20 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059091', 'tblTempUsageDetail_20' ) end [2024-12-20 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059091', 'tblTempVendorCDR_20' ) start [2024-12-20 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059091', 'tblTempVendorCDR_20' ) end [2024-12-20 00:17:17] Production.INFO: ProcessCDR(1,14059091,1,1,2) [2024-12-20 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059091', 'tblTempUsageDetail_20' ) start [2024-12-20 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059091', 'tblTempUsageDetail_20' ) end [2024-12-20 00:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:17:20] Production.INFO: ==10840== Releasing lock... [2024-12-20 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:17:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:18:05 [end_date_ymd] => 2024-12-20 00:18:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:18:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:18:17] Production.INFO: count ==124 [2024-12-20 00:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:18:05 - End Time 2024-12-20 00:18:05 [2024-12-20 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059096', 'tblTempUsageDetail_20' ) start [2024-12-20 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059096', 'tblTempUsageDetail_20' ) end [2024-12-20 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059096', 'tblTempVendorCDR_20' ) start [2024-12-20 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059096', 'tblTempVendorCDR_20' ) end [2024-12-20 00:18:17] Production.INFO: ProcessCDR(1,14059096,1,1,2) [2024-12-20 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059096', 'tblTempUsageDetail_20' ) start [2024-12-20 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059096', 'tblTempUsageDetail_20' ) end [2024-12-20 00:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:18:20] Production.INFO: ==10943== Releasing lock... [2024-12-20 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:18:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:19:05 [end_date_ymd] => 2024-12-20 00:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:19:16] Production.INFO: count ==124 [2024-12-20 00:19:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:19:05 - End Time 2024-12-20 00:19:05 [2024-12-20 00:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059101', 'tblTempUsageDetail_20' ) start [2024-12-20 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059101', 'tblTempUsageDetail_20' ) end [2024-12-20 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059101', 'tblTempVendorCDR_20' ) start [2024-12-20 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059101', 'tblTempVendorCDR_20' ) end [2024-12-20 00:19:16] Production.INFO: ProcessCDR(1,14059101,1,1,2) [2024-12-20 00:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059101', 'tblTempUsageDetail_20' ) start [2024-12-20 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059101', 'tblTempUsageDetail_20' ) end [2024-12-20 00:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:19:20] Production.INFO: ==11026== Releasing lock... [2024-12-20 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:19:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:20:05 [end_date_ymd] => 2024-12-20 00:20:05 [RateCDR] => 1 ) [2024-12-20 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:20:05' and `end` < '2024-12-20 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:20:17] Production.INFO: count ==125 [2024-12-20 00:20:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:20:05 - End Time 2024-12-20 00:20:05 [2024-12-20 00:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059107', 'tblTempUsageDetail_20' ) start [2024-12-20 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059107', 'tblTempUsageDetail_20' ) end [2024-12-20 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059107', 'tblTempVendorCDR_20' ) start [2024-12-20 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059107', 'tblTempVendorCDR_20' ) end [2024-12-20 00:20:17] Production.INFO: ProcessCDR(1,14059107,1,1,2) [2024-12-20 00:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059107', 'tblTempUsageDetail_20' ) start [2024-12-20 00:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059107', 'tblTempUsageDetail_20' ) end [2024-12-20 00:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:20:20] Production.INFO: ==11129== Releasing lock... [2024-12-20 00:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:20:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:21:05 [end_date_ymd] => 2024-12-20 00:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:21:17] Production.INFO: count ==125 [2024-12-20 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:21:05 - End Time 2024-12-20 00:21:05 [2024-12-20 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059112', 'tblTempUsageDetail_20' ) start [2024-12-20 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059112', 'tblTempUsageDetail_20' ) end [2024-12-20 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059112', 'tblTempVendorCDR_20' ) start [2024-12-20 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059112', 'tblTempVendorCDR_20' ) end [2024-12-20 00:21:17] Production.INFO: ProcessCDR(1,14059112,1,1,2) [2024-12-20 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059112', 'tblTempUsageDetail_20' ) start [2024-12-20 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059112', 'tblTempUsageDetail_20' ) end [2024-12-20 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:21:20] Production.INFO: ==11220== Releasing lock... [2024-12-20 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:21:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:22:05 [end_date_ymd] => 2024-12-20 00:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:22:17] Production.INFO: count ==125 [2024-12-20 00:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:22:05 - End Time 2024-12-20 00:22:05 [2024-12-20 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059117', 'tblTempUsageDetail_20' ) start [2024-12-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059117', 'tblTempUsageDetail_20' ) end [2024-12-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059117', 'tblTempVendorCDR_20' ) start [2024-12-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059117', 'tblTempVendorCDR_20' ) end [2024-12-20 00:22:17] Production.INFO: ProcessCDR(1,14059117,1,1,2) [2024-12-20 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059117', 'tblTempUsageDetail_20' ) start [2024-12-20 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059117', 'tblTempUsageDetail_20' ) end [2024-12-20 00:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:22:20] Production.INFO: ==11311== Releasing lock... [2024-12-20 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:22:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:23:05 [end_date_ymd] => 2024-12-20 00:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:23:17] Production.INFO: count ==126 [2024-12-20 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:23:05 - End Time 2024-12-20 00:23:05 [2024-12-20 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059122', 'tblTempUsageDetail_20' ) start [2024-12-20 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059122', 'tblTempUsageDetail_20' ) end [2024-12-20 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059122', 'tblTempVendorCDR_20' ) start [2024-12-20 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059122', 'tblTempVendorCDR_20' ) end [2024-12-20 00:23:17] Production.INFO: ProcessCDR(1,14059122,1,1,2) [2024-12-20 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059122', 'tblTempUsageDetail_20' ) start [2024-12-20 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059122', 'tblTempUsageDetail_20' ) end [2024-12-20 00:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:23:21] Production.INFO: ==11391== Releasing lock... [2024-12-20 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:23:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:24:04 [end_date_ymd] => 2024-12-20 00:24:04 [RateCDR] => 1 ) [2024-12-20 00:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:24:04' and `end` < '2024-12-20 00:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:24:16] Production.INFO: count ==126 [2024-12-20 00:24:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:24:04 - End Time 2024-12-20 00:24:04 [2024-12-20 00:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059127', 'tblTempUsageDetail_20' ) start [2024-12-20 00:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059127', 'tblTempUsageDetail_20' ) end [2024-12-20 00:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059127', 'tblTempVendorCDR_20' ) start [2024-12-20 00:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059127', 'tblTempVendorCDR_20' ) end [2024-12-20 00:24:16] Production.INFO: ProcessCDR(1,14059127,1,1,2) [2024-12-20 00:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059127', 'tblTempUsageDetail_20' ) start [2024-12-20 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059127', 'tblTempUsageDetail_20' ) end [2024-12-20 00:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:24:20] Production.INFO: ==11525== Releasing lock... [2024-12-20 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:24:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:25:05 [end_date_ymd] => 2024-12-20 00:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:25:16] Production.INFO: count ==123 [2024-12-20 00:25:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:25:05 - End Time 2024-12-20 00:25:05 [2024-12-20 00:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059132', 'tblTempUsageDetail_20' ) start [2024-12-20 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059132', 'tblTempUsageDetail_20' ) end [2024-12-20 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059132', 'tblTempVendorCDR_20' ) start [2024-12-20 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059132', 'tblTempVendorCDR_20' ) end [2024-12-20 00:25:16] Production.INFO: ProcessCDR(1,14059132,1,1,2) [2024-12-20 00:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059132', 'tblTempUsageDetail_20' ) start [2024-12-20 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059132', 'tblTempUsageDetail_20' ) end [2024-12-20 00:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:25:19] Production.INFO: ==11614== Releasing lock... [2024-12-20 00:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:25:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:26:05 [end_date_ymd] => 2024-12-20 00:26:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:26:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:26:18] Production.INFO: count ==121 [2024-12-20 00:26:18] Production.ERROR: pbx CDR StartTime 2024-12-19 21:26:05 - End Time 2024-12-20 00:26:05 [2024-12-20 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059137', 'tblTempUsageDetail_20' ) start [2024-12-20 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059137', 'tblTempUsageDetail_20' ) end [2024-12-20 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059137', 'tblTempVendorCDR_20' ) start [2024-12-20 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059137', 'tblTempVendorCDR_20' ) end [2024-12-20 00:26:18] Production.INFO: ProcessCDR(1,14059137,1,1,2) [2024-12-20 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059137', 'tblTempUsageDetail_20' ) start [2024-12-20 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059137', 'tblTempUsageDetail_20' ) end [2024-12-20 00:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:26:21] Production.INFO: ==11715== Releasing lock... [2024-12-20 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:26:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:27:04 [end_date_ymd] => 2024-12-20 00:27:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:27:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:27:16] Production.INFO: count ==119 [2024-12-20 00:27:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:27:04 - End Time 2024-12-20 00:27:04 [2024-12-20 00:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059142', 'tblTempUsageDetail_20' ) start [2024-12-20 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059142', 'tblTempUsageDetail_20' ) end [2024-12-20 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059142', 'tblTempVendorCDR_20' ) start [2024-12-20 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059142', 'tblTempVendorCDR_20' ) end [2024-12-20 00:27:16] Production.INFO: ProcessCDR(1,14059142,1,1,2) [2024-12-20 00:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059142', 'tblTempUsageDetail_20' ) start [2024-12-20 00:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059142', 'tblTempUsageDetail_20' ) end [2024-12-20 00:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:27:19] Production.INFO: ==11805== Releasing lock... [2024-12-20 00:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:27:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:28:05 [end_date_ymd] => 2024-12-20 00:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:28:17] Production.INFO: count ==117 [2024-12-20 00:28:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:28:05 - End Time 2024-12-20 00:28:05 [2024-12-20 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059147', 'tblTempUsageDetail_20' ) start [2024-12-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059147', 'tblTempUsageDetail_20' ) end [2024-12-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059147', 'tblTempVendorCDR_20' ) start [2024-12-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059147', 'tblTempVendorCDR_20' ) end [2024-12-20 00:28:17] Production.INFO: ProcessCDR(1,14059147,1,1,2) [2024-12-20 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059147', 'tblTempUsageDetail_20' ) start [2024-12-20 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059147', 'tblTempUsageDetail_20' ) end [2024-12-20 00:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:28:20] Production.INFO: ==11904== Releasing lock... [2024-12-20 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:28:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:29:04 [end_date_ymd] => 2024-12-20 00:29:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:29:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:29:16] Production.INFO: count ==117 [2024-12-20 00:29:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:29:04 - End Time 2024-12-20 00:29:04 [2024-12-20 00:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059152', 'tblTempUsageDetail_20' ) start [2024-12-20 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059152', 'tblTempUsageDetail_20' ) end [2024-12-20 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059152', 'tblTempVendorCDR_20' ) start [2024-12-20 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059152', 'tblTempVendorCDR_20' ) end [2024-12-20 00:29:16] Production.INFO: ProcessCDR(1,14059152,1,1,2) [2024-12-20 00:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059152', 'tblTempUsageDetail_20' ) start [2024-12-20 00:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059152', 'tblTempUsageDetail_20' ) end [2024-12-20 00:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:29:19] Production.INFO: ==11996== Releasing lock... [2024-12-20 00:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:29:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:30:05 [end_date_ymd] => 2024-12-20 00:30:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:30:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:30:17] Production.INFO: count ==124 [2024-12-20 00:30:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:30:05 - End Time 2024-12-20 00:30:05 [2024-12-20 00:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059158', 'tblTempUsageDetail_20' ) start [2024-12-20 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059158', 'tblTempUsageDetail_20' ) end [2024-12-20 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059158', 'tblTempVendorCDR_20' ) start [2024-12-20 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059158', 'tblTempVendorCDR_20' ) end [2024-12-20 00:30:17] Production.INFO: ProcessCDR(1,14059158,1,1,2) [2024-12-20 00:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059158', 'tblTempUsageDetail_20' ) start [2024-12-20 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059158', 'tblTempUsageDetail_20' ) end [2024-12-20 00:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:30:21] Production.INFO: ==12089== Releasing lock... [2024-12-20 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:30:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:31:04 [end_date_ymd] => 2024-12-20 00:31:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:31:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:31:16] Production.INFO: count ==135 [2024-12-20 00:31:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:31:04 - End Time 2024-12-20 00:31:04 [2024-12-20 00:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059163', 'tblTempUsageDetail_20' ) start [2024-12-20 00:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059163', 'tblTempUsageDetail_20' ) end [2024-12-20 00:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059163', 'tblTempVendorCDR_20' ) start [2024-12-20 00:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059163', 'tblTempVendorCDR_20' ) end [2024-12-20 00:31:16] Production.INFO: ProcessCDR(1,14059163,1,1,2) [2024-12-20 00:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059163', 'tblTempUsageDetail_20' ) start [2024-12-20 00:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059163', 'tblTempUsageDetail_20' ) end [2024-12-20 00:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:31:19] Production.INFO: ==12187== Releasing lock... [2024-12-20 00:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:31:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:32:05 [end_date_ymd] => 2024-12-20 00:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:32:17] Production.INFO: count ==133 [2024-12-20 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:32:05 - End Time 2024-12-20 00:32:05 [2024-12-20 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059168', 'tblTempUsageDetail_20' ) start [2024-12-20 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059168', 'tblTempUsageDetail_20' ) end [2024-12-20 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059168', 'tblTempVendorCDR_20' ) start [2024-12-20 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059168', 'tblTempVendorCDR_20' ) end [2024-12-20 00:32:17] Production.INFO: ProcessCDR(1,14059168,1,1,2) [2024-12-20 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059168', 'tblTempUsageDetail_20' ) start [2024-12-20 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059168', 'tblTempUsageDetail_20' ) end [2024-12-20 00:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:32:20] Production.INFO: ==12277== Releasing lock... [2024-12-20 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:32:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:33:05 [end_date_ymd] => 2024-12-20 00:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:33:17] Production.INFO: count ==131 [2024-12-20 00:33:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:33:05 - End Time 2024-12-20 00:33:05 [2024-12-20 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059173', 'tblTempUsageDetail_20' ) start [2024-12-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059173', 'tblTempUsageDetail_20' ) end [2024-12-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059173', 'tblTempVendorCDR_20' ) start [2024-12-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059173', 'tblTempVendorCDR_20' ) end [2024-12-20 00:33:17] Production.INFO: ProcessCDR(1,14059173,1,1,2) [2024-12-20 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059173', 'tblTempUsageDetail_20' ) start [2024-12-20 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059173', 'tblTempUsageDetail_20' ) end [2024-12-20 00:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:33:20] Production.INFO: ==12380== Releasing lock... [2024-12-20 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:33:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:34:05 [end_date_ymd] => 2024-12-20 00:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:34:17] Production.INFO: count ==129 [2024-12-20 00:34:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:34:05 - End Time 2024-12-20 00:34:05 [2024-12-20 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059178', 'tblTempUsageDetail_20' ) start [2024-12-20 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059178', 'tblTempUsageDetail_20' ) end [2024-12-20 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059178', 'tblTempVendorCDR_20' ) start [2024-12-20 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059178', 'tblTempVendorCDR_20' ) end [2024-12-20 00:34:17] Production.INFO: ProcessCDR(1,14059178,1,1,2) [2024-12-20 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059178', 'tblTempUsageDetail_20' ) start [2024-12-20 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059178', 'tblTempUsageDetail_20' ) end [2024-12-20 00:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:34:20] Production.INFO: ==12464== Releasing lock... [2024-12-20 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:34:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:35:05 [end_date_ymd] => 2024-12-20 00:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:35:17] Production.INFO: count ==129 [2024-12-20 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:35:05 - End Time 2024-12-20 00:35:05 [2024-12-20 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059183', 'tblTempUsageDetail_20' ) start [2024-12-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059183', 'tblTempUsageDetail_20' ) end [2024-12-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059183', 'tblTempVendorCDR_20' ) start [2024-12-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059183', 'tblTempVendorCDR_20' ) end [2024-12-20 00:35:17] Production.INFO: ProcessCDR(1,14059183,1,1,2) [2024-12-20 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059183', 'tblTempUsageDetail_20' ) start [2024-12-20 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059183', 'tblTempUsageDetail_20' ) end [2024-12-20 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:35:20] Production.INFO: ==12543== Releasing lock... [2024-12-20 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:35:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:36:05 [end_date_ymd] => 2024-12-20 00:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:36:17] Production.INFO: count ==125 [2024-12-20 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:36:05 - End Time 2024-12-20 00:36:05 [2024-12-20 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059188', 'tblTempUsageDetail_20' ) start [2024-12-20 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059188', 'tblTempUsageDetail_20' ) end [2024-12-20 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059188', 'tblTempVendorCDR_20' ) start [2024-12-20 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059188', 'tblTempVendorCDR_20' ) end [2024-12-20 00:36:17] Production.INFO: ProcessCDR(1,14059188,1,1,2) [2024-12-20 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059188', 'tblTempUsageDetail_20' ) start [2024-12-20 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059188', 'tblTempUsageDetail_20' ) end [2024-12-20 00:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:36:20] Production.INFO: ==12617== Releasing lock... [2024-12-20 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:36:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:37:05 [end_date_ymd] => 2024-12-20 00:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:37:16] Production.INFO: count ==125 [2024-12-20 00:37:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:37:05 - End Time 2024-12-20 00:37:05 [2024-12-20 00:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059193', 'tblTempUsageDetail_20' ) start [2024-12-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059193', 'tblTempUsageDetail_20' ) end [2024-12-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059193', 'tblTempVendorCDR_20' ) start [2024-12-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059193', 'tblTempVendorCDR_20' ) end [2024-12-20 00:37:17] Production.INFO: ProcessCDR(1,14059193,1,1,2) [2024-12-20 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059193', 'tblTempUsageDetail_20' ) start [2024-12-20 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059193', 'tblTempUsageDetail_20' ) end [2024-12-20 00:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:37:20] Production.INFO: ==12697== Releasing lock... [2024-12-20 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:37:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:38:05 [end_date_ymd] => 2024-12-20 00:38:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:38:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:38:17] Production.INFO: count ==124 [2024-12-20 00:38:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:38:05 - End Time 2024-12-20 00:38:05 [2024-12-20 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059198', 'tblTempUsageDetail_20' ) start [2024-12-20 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059198', 'tblTempUsageDetail_20' ) end [2024-12-20 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059198', 'tblTempVendorCDR_20' ) start [2024-12-20 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059198', 'tblTempVendorCDR_20' ) end [2024-12-20 00:38:17] Production.INFO: ProcessCDR(1,14059198,1,1,2) [2024-12-20 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059198', 'tblTempUsageDetail_20' ) start [2024-12-20 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059198', 'tblTempUsageDetail_20' ) end [2024-12-20 00:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:38:20] Production.INFO: ==12783== Releasing lock... [2024-12-20 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:38:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:39:05 [end_date_ymd] => 2024-12-20 00:39:05 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:39:05' and `end` < '2024-12-20 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:39:17] Production.INFO: count ==124 [2024-12-20 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:39:05 - End Time 2024-12-20 00:39:05 [2024-12-20 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059203', 'tblTempUsageDetail_20' ) start [2024-12-20 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059203', 'tblTempUsageDetail_20' ) end [2024-12-20 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059203', 'tblTempVendorCDR_20' ) start [2024-12-20 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059203', 'tblTempVendorCDR_20' ) end [2024-12-20 00:39:18] Production.INFO: ProcessCDR(1,14059203,1,1,2) [2024-12-20 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059203', 'tblTempUsageDetail_20' ) start [2024-12-20 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059203', 'tblTempUsageDetail_20' ) end [2024-12-20 00:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:39:21] Production.INFO: ==12881== Releasing lock... [2024-12-20 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:39:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:40:05 [end_date_ymd] => 2024-12-20 00:40:05 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:40:05' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:40:17] Production.INFO: count ==123 [2024-12-20 00:40:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:40:05 - End Time 2024-12-20 00:40:05 [2024-12-20 00:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059209', 'tblTempUsageDetail_20' ) start [2024-12-20 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059209', 'tblTempUsageDetail_20' ) end [2024-12-20 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059209', 'tblTempVendorCDR_20' ) start [2024-12-20 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059209', 'tblTempVendorCDR_20' ) end [2024-12-20 00:40:17] Production.INFO: ProcessCDR(1,14059209,1,1,2) [2024-12-20 00:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059209', 'tblTempUsageDetail_20' ) start [2024-12-20 00:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059209', 'tblTempUsageDetail_20' ) end [2024-12-20 00:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:40:20] Production.INFO: ==13011== Releasing lock... [2024-12-20 00:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:40:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:41:05 [end_date_ymd] => 2024-12-20 00:41:05 [RateCDR] => 1 ) [2024-12-20 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:41:05' and `end` < '2024-12-20 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:41:16] Production.INFO: count ==125 [2024-12-20 00:41:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:41:05 - End Time 2024-12-20 00:41:05 [2024-12-20 00:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059214', 'tblTempUsageDetail_20' ) start [2024-12-20 00:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059214', 'tblTempUsageDetail_20' ) end [2024-12-20 00:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059214', 'tblTempVendorCDR_20' ) start [2024-12-20 00:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059214', 'tblTempVendorCDR_20' ) end [2024-12-20 00:41:16] Production.INFO: ProcessCDR(1,14059214,1,1,2) [2024-12-20 00:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059214', 'tblTempUsageDetail_20' ) start [2024-12-20 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059214', 'tblTempUsageDetail_20' ) end [2024-12-20 00:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:41:20] Production.INFO: ==13102== Releasing lock... [2024-12-20 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:41:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:42:05 [end_date_ymd] => 2024-12-20 00:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:42:16] Production.INFO: count ==125 [2024-12-20 00:42:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:42:05 - End Time 2024-12-20 00:42:05 [2024-12-20 00:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059219', 'tblTempUsageDetail_20' ) start [2024-12-20 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059219', 'tblTempUsageDetail_20' ) end [2024-12-20 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059219', 'tblTempVendorCDR_20' ) start [2024-12-20 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059219', 'tblTempVendorCDR_20' ) end [2024-12-20 00:42:16] Production.INFO: ProcessCDR(1,14059219,1,1,2) [2024-12-20 00:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059219', 'tblTempUsageDetail_20' ) start [2024-12-20 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059219', 'tblTempUsageDetail_20' ) end [2024-12-20 00:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:42:20] Production.INFO: ==13191== Releasing lock... [2024-12-20 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:42:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:43:04 [end_date_ymd] => 2024-12-20 00:43:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:43:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:43:16] Production.INFO: count ==125 [2024-12-20 00:43:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:43:04 - End Time 2024-12-20 00:43:04 [2024-12-20 00:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059224', 'tblTempUsageDetail_20' ) start [2024-12-20 00:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059224', 'tblTempUsageDetail_20' ) end [2024-12-20 00:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059224', 'tblTempVendorCDR_20' ) start [2024-12-20 00:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059224', 'tblTempVendorCDR_20' ) end [2024-12-20 00:43:16] Production.INFO: ProcessCDR(1,14059224,1,1,2) [2024-12-20 00:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059224', 'tblTempUsageDetail_20' ) start [2024-12-20 00:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059224', 'tblTempUsageDetail_20' ) end [2024-12-20 00:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:43:19] Production.INFO: ==13281== Releasing lock... [2024-12-20 00:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:43:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:44:05 [end_date_ymd] => 2024-12-20 00:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:44:17] Production.INFO: count ==124 [2024-12-20 00:44:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:44:05 - End Time 2024-12-20 00:44:05 [2024-12-20 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059229', 'tblTempUsageDetail_20' ) start [2024-12-20 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059229', 'tblTempUsageDetail_20' ) end [2024-12-20 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059229', 'tblTempVendorCDR_20' ) start [2024-12-20 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059229', 'tblTempVendorCDR_20' ) end [2024-12-20 00:44:17] Production.INFO: ProcessCDR(1,14059229,1,1,2) [2024-12-20 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059229', 'tblTempUsageDetail_20' ) start [2024-12-20 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059229', 'tblTempUsageDetail_20' ) end [2024-12-20 00:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:44:20] Production.INFO: ==13371== Releasing lock... [2024-12-20 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:44:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:45:05 [end_date_ymd] => 2024-12-20 00:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:45:17] Production.INFO: count ==124 [2024-12-20 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:45:05 - End Time 2024-12-20 00:45:05 [2024-12-20 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059234', 'tblTempUsageDetail_20' ) start [2024-12-20 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059234', 'tblTempUsageDetail_20' ) end [2024-12-20 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059234', 'tblTempVendorCDR_20' ) start [2024-12-20 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059234', 'tblTempVendorCDR_20' ) end [2024-12-20 00:45:17] Production.INFO: ProcessCDR(1,14059234,1,1,2) [2024-12-20 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059234', 'tblTempUsageDetail_20' ) start [2024-12-20 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059234', 'tblTempUsageDetail_20' ) end [2024-12-20 00:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:45:20] Production.INFO: ==13459== Releasing lock... [2024-12-20 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:45:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:46:05 [end_date_ymd] => 2024-12-20 00:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:46:17] Production.INFO: count ==124 [2024-12-20 00:46:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:46:05 - End Time 2024-12-20 00:46:05 [2024-12-20 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059239', 'tblTempUsageDetail_20' ) start [2024-12-20 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059239', 'tblTempUsageDetail_20' ) end [2024-12-20 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059239', 'tblTempVendorCDR_20' ) start [2024-12-20 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059239', 'tblTempVendorCDR_20' ) end [2024-12-20 00:46:17] Production.INFO: ProcessCDR(1,14059239,1,1,2) [2024-12-20 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059239', 'tblTempUsageDetail_20' ) start [2024-12-20 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059239', 'tblTempUsageDetail_20' ) end [2024-12-20 00:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:46:20] Production.INFO: ==13550== Releasing lock... [2024-12-20 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:46:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:47:04 [end_date_ymd] => 2024-12-20 00:47:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:47:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:47:16] Production.INFO: count ==124 [2024-12-20 00:47:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:47:04 - End Time 2024-12-20 00:47:04 [2024-12-20 00:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059244', 'tblTempUsageDetail_20' ) start [2024-12-20 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059244', 'tblTempUsageDetail_20' ) end [2024-12-20 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059244', 'tblTempVendorCDR_20' ) start [2024-12-20 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059244', 'tblTempVendorCDR_20' ) end [2024-12-20 00:47:16] Production.INFO: ProcessCDR(1,14059244,1,1,2) [2024-12-20 00:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059244', 'tblTempUsageDetail_20' ) start [2024-12-20 00:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059244', 'tblTempUsageDetail_20' ) end [2024-12-20 00:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:47:19] Production.INFO: ==13640== Releasing lock... [2024-12-20 00:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:47:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:48:05 [end_date_ymd] => 2024-12-20 00:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:48:17] Production.INFO: count ==124 [2024-12-20 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:48:05 - End Time 2024-12-20 00:48:05 [2024-12-20 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059249', 'tblTempUsageDetail_20' ) start [2024-12-20 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059249', 'tblTempUsageDetail_20' ) end [2024-12-20 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059249', 'tblTempVendorCDR_20' ) start [2024-12-20 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059249', 'tblTempVendorCDR_20' ) end [2024-12-20 00:48:17] Production.INFO: ProcessCDR(1,14059249,1,1,2) [2024-12-20 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059249', 'tblTempUsageDetail_20' ) start [2024-12-20 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059249', 'tblTempUsageDetail_20' ) end [2024-12-20 00:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:48:20] Production.INFO: ==13731== Releasing lock... [2024-12-20 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:48:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:49:04 [end_date_ymd] => 2024-12-20 00:49:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:49:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:49:17] Production.INFO: count ==124 [2024-12-20 00:49:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:49:04 - End Time 2024-12-20 00:49:04 [2024-12-20 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059254', 'tblTempUsageDetail_20' ) start [2024-12-20 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059254', 'tblTempUsageDetail_20' ) end [2024-12-20 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059254', 'tblTempVendorCDR_20' ) start [2024-12-20 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059254', 'tblTempVendorCDR_20' ) end [2024-12-20 00:49:17] Production.INFO: ProcessCDR(1,14059254,1,1,2) [2024-12-20 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059254', 'tblTempUsageDetail_20' ) start [2024-12-20 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059254', 'tblTempUsageDetail_20' ) end [2024-12-20 00:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:49:20] Production.INFO: ==13818== Releasing lock... [2024-12-20 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:49:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:50:06 [end_date_ymd] => 2024-12-20 00:50:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:50:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:50:19] Production.INFO: count ==130 [2024-12-20 00:50:19] Production.ERROR: pbx CDR StartTime 2024-12-19 21:50:06 - End Time 2024-12-20 00:50:06 [2024-12-20 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059260', 'tblTempUsageDetail_20' ) start [2024-12-20 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059260', 'tblTempUsageDetail_20' ) end [2024-12-20 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059260', 'tblTempVendorCDR_20' ) start [2024-12-20 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059260', 'tblTempVendorCDR_20' ) end [2024-12-20 00:50:19] Production.INFO: ProcessCDR(1,14059260,1,1,2) [2024-12-20 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059260', 'tblTempUsageDetail_20' ) start [2024-12-20 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059260', 'tblTempUsageDetail_20' ) end [2024-12-20 00:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:50:22] Production.INFO: ==13911== Releasing lock... [2024-12-20 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:50:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:51:04 [end_date_ymd] => 2024-12-20 00:51:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:51:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:51:16] Production.INFO: count ==130 [2024-12-20 00:51:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:51:04 - End Time 2024-12-20 00:51:04 [2024-12-20 00:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059265', 'tblTempUsageDetail_20' ) start [2024-12-20 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059265', 'tblTempUsageDetail_20' ) end [2024-12-20 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059265', 'tblTempVendorCDR_20' ) start [2024-12-20 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059265', 'tblTempVendorCDR_20' ) end [2024-12-20 00:51:16] Production.INFO: ProcessCDR(1,14059265,1,1,2) [2024-12-20 00:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059265', 'tblTempUsageDetail_20' ) start [2024-12-20 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059265', 'tblTempUsageDetail_20' ) end [2024-12-20 00:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:51:20] Production.INFO: ==14003== Releasing lock... [2024-12-20 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:51:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:52:05 [end_date_ymd] => 2024-12-20 00:52:05 [RateCDR] => 1 ) [2024-12-20 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:52:05' and `end` < '2024-12-20 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:52:18] Production.INFO: count ==130 [2024-12-20 00:52:18] Production.ERROR: pbx CDR StartTime 2024-12-19 21:52:05 - End Time 2024-12-20 00:52:05 [2024-12-20 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059270', 'tblTempUsageDetail_20' ) start [2024-12-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059270', 'tblTempUsageDetail_20' ) end [2024-12-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059270', 'tblTempVendorCDR_20' ) start [2024-12-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059270', 'tblTempVendorCDR_20' ) end [2024-12-20 00:52:18] Production.INFO: ProcessCDR(1,14059270,1,1,2) [2024-12-20 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059270', 'tblTempUsageDetail_20' ) start [2024-12-20 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059270', 'tblTempUsageDetail_20' ) end [2024-12-20 00:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:52:21] Production.INFO: ==14096== Releasing lock... [2024-12-20 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:52:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:53:04 [end_date_ymd] => 2024-12-20 00:53:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:53:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:53:17] Production.INFO: count ==128 [2024-12-20 00:53:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:53:04 - End Time 2024-12-20 00:53:04 [2024-12-20 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059275', 'tblTempUsageDetail_20' ) start [2024-12-20 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059275', 'tblTempUsageDetail_20' ) end [2024-12-20 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059275', 'tblTempVendorCDR_20' ) start [2024-12-20 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059275', 'tblTempVendorCDR_20' ) end [2024-12-20 00:53:17] Production.INFO: ProcessCDR(1,14059275,1,1,2) [2024-12-20 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059275', 'tblTempUsageDetail_20' ) start [2024-12-20 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059275', 'tblTempUsageDetail_20' ) end [2024-12-20 00:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:53:20] Production.INFO: ==14187== Releasing lock... [2024-12-20 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:53:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:54:05 [end_date_ymd] => 2024-12-20 00:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:54:17] Production.INFO: count ==125 [2024-12-20 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:54:05 - End Time 2024-12-20 00:54:05 [2024-12-20 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059280', 'tblTempUsageDetail_20' ) start [2024-12-20 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059280', 'tblTempUsageDetail_20' ) end [2024-12-20 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059280', 'tblTempVendorCDR_20' ) start [2024-12-20 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059280', 'tblTempVendorCDR_20' ) end [2024-12-20 00:54:17] Production.INFO: ProcessCDR(1,14059280,1,1,2) [2024-12-20 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059280', 'tblTempUsageDetail_20' ) start [2024-12-20 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059280', 'tblTempUsageDetail_20' ) end [2024-12-20 00:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:54:21] Production.INFO: ==14276== Releasing lock... [2024-12-20 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:54:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:55:05 [end_date_ymd] => 2024-12-20 00:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:55:17] Production.INFO: count ==123 [2024-12-20 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:55:05 - End Time 2024-12-20 00:55:05 [2024-12-20 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059285', 'tblTempUsageDetail_20' ) start [2024-12-20 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059285', 'tblTempUsageDetail_20' ) end [2024-12-20 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059285', 'tblTempVendorCDR_20' ) start [2024-12-20 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059285', 'tblTempVendorCDR_20' ) end [2024-12-20 00:55:17] Production.INFO: ProcessCDR(1,14059285,1,1,2) [2024-12-20 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059285', 'tblTempUsageDetail_20' ) start [2024-12-20 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059285', 'tblTempUsageDetail_20' ) end [2024-12-20 00:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:55:20] Production.INFO: ==14407== Releasing lock... [2024-12-20 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:55:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:56:04 [end_date_ymd] => 2024-12-20 00:56:04 [RateCDR] => 1 ) [2024-12-20 00:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:56:04' and `end` < '2024-12-20 00:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:56:17] Production.INFO: count ==123 [2024-12-20 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:56:04 - End Time 2024-12-20 00:56:04 [2024-12-20 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059290', 'tblTempUsageDetail_20' ) start [2024-12-20 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059290', 'tblTempUsageDetail_20' ) end [2024-12-20 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059290', 'tblTempVendorCDR_20' ) start [2024-12-20 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059290', 'tblTempVendorCDR_20' ) end [2024-12-20 00:56:17] Production.INFO: ProcessCDR(1,14059290,1,1,2) [2024-12-20 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059290', 'tblTempUsageDetail_20' ) start [2024-12-20 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059290', 'tblTempUsageDetail_20' ) end [2024-12-20 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:56:20] Production.INFO: ==14496== Releasing lock... [2024-12-20 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:56:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:57:05 [end_date_ymd] => 2024-12-20 00:57:05 [RateCDR] => 1 ) [2024-12-20 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 21:57:05' and `end` < '2024-12-20 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 00:57:17] Production.INFO: count ==123 [2024-12-20 00:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:57:05 - End Time 2024-12-20 00:57:05 [2024-12-20 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059295', 'tblTempUsageDetail_20' ) start [2024-12-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059295', 'tblTempUsageDetail_20' ) end [2024-12-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059295', 'tblTempVendorCDR_20' ) start [2024-12-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059295', 'tblTempVendorCDR_20' ) end [2024-12-20 00:57:17] Production.INFO: ProcessCDR(1,14059295,1,1,2) [2024-12-20 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059295', 'tblTempUsageDetail_20' ) start [2024-12-20 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059295', 'tblTempUsageDetail_20' ) end [2024-12-20 00:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:57:20] Production.INFO: ==14585== Releasing lock... [2024-12-20 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:57:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:58:05 [end_date_ymd] => 2024-12-20 00:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 21:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 00:58:16] Production.INFO: count ==120 [2024-12-20 00:58:16] Production.ERROR: pbx CDR StartTime 2024-12-19 21:58:05 - End Time 2024-12-20 00:58:05 [2024-12-20 00:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059300', 'tblTempUsageDetail_20' ) start [2024-12-20 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059300', 'tblTempUsageDetail_20' ) end [2024-12-20 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059300', 'tblTempVendorCDR_20' ) start [2024-12-20 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059300', 'tblTempVendorCDR_20' ) end [2024-12-20 00:58:17] Production.INFO: ProcessCDR(1,14059300,1,1,2) [2024-12-20 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059300', 'tblTempUsageDetail_20' ) start [2024-12-20 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059300', 'tblTempUsageDetail_20' ) end [2024-12-20 00:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:58:20] Production.INFO: ==14674== Releasing lock... [2024-12-20 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:58:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 21:59:04 [end_date_ymd] => 2024-12-20 00:59:04 [RateCDR] => 1 ) [2024-12-20 00: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` >= '2024-12-19 21:59:04' and `end` < '2024-12-20 00: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 ,'') [2024-12-20 00:59:17] Production.INFO: count ==118 [2024-12-20 00:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 21:59:04 - End Time 2024-12-20 00:59:04 [2024-12-20 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059305', 'tblTempUsageDetail_20' ) start [2024-12-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059305', 'tblTempUsageDetail_20' ) end [2024-12-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059305', 'tblTempVendorCDR_20' ) start [2024-12-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059305', 'tblTempVendorCDR_20' ) end [2024-12-20 00:59:17] Production.INFO: ProcessCDR(1,14059305,1,1,2) [2024-12-20 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059305', 'tblTempUsageDetail_20' ) start [2024-12-20 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059305', 'tblTempUsageDetail_20' ) end [2024-12-20 00:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 00:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 00:59:20] Production.INFO: ==14764== Releasing lock... [2024-12-20 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 00:59:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:00:05 [end_date_ymd] => 2024-12-20 01:00:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:00:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:00:17] Production.INFO: count ==124 [2024-12-20 01:00:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:00:05 - End Time 2024-12-20 01:00:05 [2024-12-20 01:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059310', 'tblTempUsageDetail_20' ) start [2024-12-20 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059310', 'tblTempUsageDetail_20' ) end [2024-12-20 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059310', 'tblTempVendorCDR_20' ) start [2024-12-20 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059310', 'tblTempVendorCDR_20' ) end [2024-12-20 01:00:17] Production.INFO: ProcessCDR(1,14059310,1,1,2) [2024-12-20 01:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059310', 'tblTempUsageDetail_20' ) start [2024-12-20 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059310', 'tblTempUsageDetail_20' ) end [2024-12-20 01:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:00:20] Production.INFO: ==14854== Releasing lock... [2024-12-20 01:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:00:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:01:05 [end_date_ymd] => 2024-12-20 01:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:01:18] Production.INFO: count ==125 [2024-12-20 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:01:05 - End Time 2024-12-20 01:01:05 [2024-12-20 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059316', 'tblTempUsageDetail_20' ) start [2024-12-20 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059316', 'tblTempUsageDetail_20' ) end [2024-12-20 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059316', 'tblTempVendorCDR_20' ) start [2024-12-20 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059316', 'tblTempVendorCDR_20' ) end [2024-12-20 01:01:19] Production.INFO: ProcessCDR(1,14059316,1,1,2) [2024-12-20 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059316', 'tblTempUsageDetail_20' ) start [2024-12-20 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059316', 'tblTempUsageDetail_20' ) end [2024-12-20 01:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:01:22] Production.INFO: ==14959== Releasing lock... [2024-12-20 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:01:22] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:02:04 [end_date_ymd] => 2024-12-20 01:02:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:02:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:02:16] Production.INFO: count ==126 [2024-12-20 01:02:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:02:04 - End Time 2024-12-20 01:02:04 [2024-12-20 01:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059321', 'tblTempUsageDetail_20' ) start [2024-12-20 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059321', 'tblTempUsageDetail_20' ) end [2024-12-20 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059321', 'tblTempVendorCDR_20' ) start [2024-12-20 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059321', 'tblTempVendorCDR_20' ) end [2024-12-20 01:02:16] Production.INFO: ProcessCDR(1,14059321,1,1,2) [2024-12-20 01:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059321', 'tblTempUsageDetail_20' ) start [2024-12-20 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059321', 'tblTempUsageDetail_20' ) end [2024-12-20 01:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:02:21] Production.INFO: ==15047== Releasing lock... [2024-12-20 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:02:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:03:05 [end_date_ymd] => 2024-12-20 01:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:03:18] Production.INFO: count ==128 [2024-12-20 01:03:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:03:05 - End Time 2024-12-20 01:03:05 [2024-12-20 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059326', 'tblTempUsageDetail_20' ) start [2024-12-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059326', 'tblTempUsageDetail_20' ) end [2024-12-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059326', 'tblTempVendorCDR_20' ) start [2024-12-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059326', 'tblTempVendorCDR_20' ) end [2024-12-20 01:03:18] Production.INFO: ProcessCDR(1,14059326,1,1,2) [2024-12-20 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059326', 'tblTempUsageDetail_20' ) start [2024-12-20 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059326', 'tblTempUsageDetail_20' ) end [2024-12-20 01:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:03:23] Production.INFO: ==15135== Releasing lock... [2024-12-20 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:03:23] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:04:05 [end_date_ymd] => 2024-12-20 01:04:05 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:04:05' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:04:16] Production.INFO: count ==128 [2024-12-20 01:04:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:04:05 - End Time 2024-12-20 01:04:05 [2024-12-20 01:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059331', 'tblTempUsageDetail_20' ) start [2024-12-20 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059331', 'tblTempUsageDetail_20' ) end [2024-12-20 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059331', 'tblTempVendorCDR_20' ) start [2024-12-20 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059331', 'tblTempVendorCDR_20' ) end [2024-12-20 01:04:16] Production.INFO: ProcessCDR(1,14059331,1,1,2) [2024-12-20 01:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059331', 'tblTempUsageDetail_20' ) start [2024-12-20 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059331', 'tblTempUsageDetail_20' ) end [2024-12-20 01:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:04:20] Production.INFO: ==15228== Releasing lock... [2024-12-20 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:04:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:05:04 [end_date_ymd] => 2024-12-20 01:05:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:05:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:05:16] Production.INFO: count ==128 [2024-12-20 01:05:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:05:04 - End Time 2024-12-20 01:05:04 [2024-12-20 01:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059336', 'tblTempUsageDetail_20' ) start [2024-12-20 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059336', 'tblTempUsageDetail_20' ) end [2024-12-20 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059336', 'tblTempVendorCDR_20' ) start [2024-12-20 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059336', 'tblTempVendorCDR_20' ) end [2024-12-20 01:05:16] Production.INFO: ProcessCDR(1,14059336,1,1,2) [2024-12-20 01:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059336', 'tblTempUsageDetail_20' ) start [2024-12-20 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059336', 'tblTempUsageDetail_20' ) end [2024-12-20 01:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:05:20] Production.INFO: ==15309== Releasing lock... [2024-12-20 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:05:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:06:04 [end_date_ymd] => 2024-12-20 01:06:04 [RateCDR] => 1 ) [2024-12-20 01:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:06:04' and `end` < '2024-12-20 01:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:06:17] Production.INFO: count ==128 [2024-12-20 01:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:06:04 - End Time 2024-12-20 01:06:04 [2024-12-20 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059341', 'tblTempUsageDetail_20' ) start [2024-12-20 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059341', 'tblTempUsageDetail_20' ) end [2024-12-20 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059341', 'tblTempVendorCDR_20' ) start [2024-12-20 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059341', 'tblTempVendorCDR_20' ) end [2024-12-20 01:06:17] Production.INFO: ProcessCDR(1,14059341,1,1,2) [2024-12-20 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059341', 'tblTempUsageDetail_20' ) start [2024-12-20 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059341', 'tblTempUsageDetail_20' ) end [2024-12-20 01:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:06:20] Production.INFO: ==15378== Releasing lock... [2024-12-20 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:06:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:07:05 [end_date_ymd] => 2024-12-20 01:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:07:17] Production.INFO: count ==128 [2024-12-20 01:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:07:05 - End Time 2024-12-20 01:07:05 [2024-12-20 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059346', 'tblTempUsageDetail_20' ) start [2024-12-20 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059346', 'tblTempUsageDetail_20' ) end [2024-12-20 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059346', 'tblTempVendorCDR_20' ) start [2024-12-20 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059346', 'tblTempVendorCDR_20' ) end [2024-12-20 01:07:17] Production.INFO: ProcessCDR(1,14059346,1,1,2) [2024-12-20 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059346', 'tblTempUsageDetail_20' ) start [2024-12-20 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059346', 'tblTempUsageDetail_20' ) end [2024-12-20 01:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:07:20] Production.INFO: ==15449== Releasing lock... [2024-12-20 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:07:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:08:04 [end_date_ymd] => 2024-12-20 01:08:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:08:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:08:16] Production.INFO: count ==131 [2024-12-20 01:08:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:08:04 - End Time 2024-12-20 01:08:04 [2024-12-20 01:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059351', 'tblTempUsageDetail_20' ) start [2024-12-20 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059351', 'tblTempUsageDetail_20' ) end [2024-12-20 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059351', 'tblTempVendorCDR_20' ) start [2024-12-20 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059351', 'tblTempVendorCDR_20' ) end [2024-12-20 01:08:16] Production.INFO: ProcessCDR(1,14059351,1,1,2) [2024-12-20 01:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059351', 'tblTempUsageDetail_20' ) start [2024-12-20 01:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059351', 'tblTempUsageDetail_20' ) end [2024-12-20 01:08:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:08:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:08:19] Production.INFO: ==15518== Releasing lock... [2024-12-20 01:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:08:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:09:05 [end_date_ymd] => 2024-12-20 01:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:09:17] Production.INFO: count ==131 [2024-12-20 01:09:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:09:05 - End Time 2024-12-20 01:09:05 [2024-12-20 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059356', 'tblTempUsageDetail_20' ) start [2024-12-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059356', 'tblTempUsageDetail_20' ) end [2024-12-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059356', 'tblTempVendorCDR_20' ) start [2024-12-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059356', 'tblTempVendorCDR_20' ) end [2024-12-20 01:09:17] Production.INFO: ProcessCDR(1,14059356,1,1,2) [2024-12-20 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059356', 'tblTempUsageDetail_20' ) start [2024-12-20 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059356', 'tblTempUsageDetail_20' ) end [2024-12-20 01:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:09:21] Production.INFO: ==15595== Releasing lock... [2024-12-20 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:09:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:10:05 [end_date_ymd] => 2024-12-20 01:10:05 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:10:05' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:10:17] Production.INFO: count ==136 [2024-12-20 01:10:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:10:05 - End Time 2024-12-20 01:10:05 [2024-12-20 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059362', 'tblTempUsageDetail_20' ) start [2024-12-20 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059362', 'tblTempUsageDetail_20' ) end [2024-12-20 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059362', 'tblTempVendorCDR_20' ) start [2024-12-20 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059362', 'tblTempVendorCDR_20' ) end [2024-12-20 01:10:17] Production.INFO: ProcessCDR(1,14059362,1,1,2) [2024-12-20 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059362', 'tblTempUsageDetail_20' ) start [2024-12-20 01:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059362', 'tblTempUsageDetail_20' ) end [2024-12-20 01:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:10:20] Production.INFO: ==15674== Releasing lock... [2024-12-20 01:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:10:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:11:05 [end_date_ymd] => 2024-12-20 01:11:05 [RateCDR] => 1 ) [2024-12-20 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:11:05' and `end` < '2024-12-20 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:11:18] Production.INFO: count ==138 [2024-12-20 01:11:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:11:05 - End Time 2024-12-20 01:11:05 [2024-12-20 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059367', 'tblTempUsageDetail_20' ) start [2024-12-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059367', 'tblTempUsageDetail_20' ) end [2024-12-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059367', 'tblTempVendorCDR_20' ) start [2024-12-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059367', 'tblTempVendorCDR_20' ) end [2024-12-20 01:11:18] Production.INFO: ProcessCDR(1,14059367,1,1,2) [2024-12-20 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059367', 'tblTempUsageDetail_20' ) start [2024-12-20 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059367', 'tblTempUsageDetail_20' ) end [2024-12-20 01:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:11:21] Production.INFO: ==15786== Releasing lock... [2024-12-20 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:11:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:12:05 [end_date_ymd] => 2024-12-20 01:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:12:18] Production.INFO: count ==138 [2024-12-20 01:12:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:12:05 - End Time 2024-12-20 01:12:05 [2024-12-20 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059372', 'tblTempUsageDetail_20' ) start [2024-12-20 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059372', 'tblTempUsageDetail_20' ) end [2024-12-20 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059372', 'tblTempVendorCDR_20' ) start [2024-12-20 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059372', 'tblTempVendorCDR_20' ) end [2024-12-20 01:12:18] Production.INFO: ProcessCDR(1,14059372,1,1,2) [2024-12-20 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059372', 'tblTempUsageDetail_20' ) start [2024-12-20 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059372', 'tblTempUsageDetail_20' ) end [2024-12-20 01:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:12:21] Production.INFO: ==15855== Releasing lock... [2024-12-20 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:12:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:13:05 [end_date_ymd] => 2024-12-20 01:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:13:16] Production.INFO: count ==138 [2024-12-20 01:13:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:13:05 - End Time 2024-12-20 01:13:05 [2024-12-20 01:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059377', 'tblTempUsageDetail_20' ) start [2024-12-20 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059377', 'tblTempUsageDetail_20' ) end [2024-12-20 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059377', 'tblTempVendorCDR_20' ) start [2024-12-20 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059377', 'tblTempVendorCDR_20' ) end [2024-12-20 01:13:16] Production.INFO: ProcessCDR(1,14059377,1,1,2) [2024-12-20 01:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059377', 'tblTempUsageDetail_20' ) start [2024-12-20 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059377', 'tblTempUsageDetail_20' ) end [2024-12-20 01:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:13:20] Production.INFO: ==15925== Releasing lock... [2024-12-20 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:13:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:14:05 [end_date_ymd] => 2024-12-20 01:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:14:17] Production.INFO: count ==135 [2024-12-20 01:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:14:05 - End Time 2024-12-20 01:14:05 [2024-12-20 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059382', 'tblTempUsageDetail_20' ) start [2024-12-20 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059382', 'tblTempUsageDetail_20' ) end [2024-12-20 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059382', 'tblTempVendorCDR_20' ) start [2024-12-20 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059382', 'tblTempVendorCDR_20' ) end [2024-12-20 01:14:17] Production.INFO: ProcessCDR(1,14059382,1,1,2) [2024-12-20 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059382', 'tblTempUsageDetail_20' ) start [2024-12-20 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059382', 'tblTempUsageDetail_20' ) end [2024-12-20 01:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:14:20] Production.INFO: ==15997== Releasing lock... [2024-12-20 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:14:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:15:05 [end_date_ymd] => 2024-12-20 01:15:05 [RateCDR] => 1 ) [2024-12-20 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:15:05' and `end` < '2024-12-20 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:15:17] Production.INFO: count ==134 [2024-12-20 01:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:15:05 - End Time 2024-12-20 01:15:05 [2024-12-20 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059387', 'tblTempUsageDetail_20' ) start [2024-12-20 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059387', 'tblTempUsageDetail_20' ) end [2024-12-20 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059387', 'tblTempVendorCDR_20' ) start [2024-12-20 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059387', 'tblTempVendorCDR_20' ) end [2024-12-20 01:15:17] Production.INFO: ProcessCDR(1,14059387,1,1,2) [2024-12-20 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059387', 'tblTempUsageDetail_20' ) start [2024-12-20 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059387', 'tblTempUsageDetail_20' ) end [2024-12-20 01:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:15:20] Production.INFO: ==16067== Releasing lock... [2024-12-20 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:15:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:16:05 [end_date_ymd] => 2024-12-20 01:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:16:17] Production.INFO: count ==134 [2024-12-20 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:16:05 - End Time 2024-12-20 01:16:05 [2024-12-20 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059392', 'tblTempUsageDetail_20' ) start [2024-12-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059392', 'tblTempUsageDetail_20' ) end [2024-12-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059392', 'tblTempVendorCDR_20' ) start [2024-12-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059392', 'tblTempVendorCDR_20' ) end [2024-12-20 01:16:17] Production.INFO: ProcessCDR(1,14059392,1,1,2) [2024-12-20 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059392', 'tblTempUsageDetail_20' ) start [2024-12-20 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059392', 'tblTempUsageDetail_20' ) end [2024-12-20 01:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:16:20] Production.INFO: ==16138== Releasing lock... [2024-12-20 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:16:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:17:04 [end_date_ymd] => 2024-12-20 01:17:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:17:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:17:16] Production.INFO: count ==134 [2024-12-20 01:17:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:17:04 - End Time 2024-12-20 01:17:04 [2024-12-20 01:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059397', 'tblTempUsageDetail_20' ) start [2024-12-20 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059397', 'tblTempUsageDetail_20' ) end [2024-12-20 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059397', 'tblTempVendorCDR_20' ) start [2024-12-20 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059397', 'tblTempVendorCDR_20' ) end [2024-12-20 01:17:16] Production.INFO: ProcessCDR(1,14059397,1,1,2) [2024-12-20 01:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059397', 'tblTempUsageDetail_20' ) start [2024-12-20 01:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059397', 'tblTempUsageDetail_20' ) end [2024-12-20 01:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:17:19] Production.INFO: ==16214== Releasing lock... [2024-12-20 01:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:17:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:18:05 [end_date_ymd] => 2024-12-20 01:18:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:18:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:18:17] Production.INFO: count ==134 [2024-12-20 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:18:05 - End Time 2024-12-20 01:18:05 [2024-12-20 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059402', 'tblTempUsageDetail_20' ) start [2024-12-20 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059402', 'tblTempUsageDetail_20' ) end [2024-12-20 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059402', 'tblTempVendorCDR_20' ) start [2024-12-20 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059402', 'tblTempVendorCDR_20' ) end [2024-12-20 01:18:17] Production.INFO: ProcessCDR(1,14059402,1,1,2) [2024-12-20 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059402', 'tblTempUsageDetail_20' ) start [2024-12-20 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059402', 'tblTempUsageDetail_20' ) end [2024-12-20 01:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:18:20] Production.INFO: ==16286== Releasing lock... [2024-12-20 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:18:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:19:04 [end_date_ymd] => 2024-12-20 01:19:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:19:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:19:16] Production.INFO: count ==134 [2024-12-20 01:19:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:19:04 - End Time 2024-12-20 01:19:04 [2024-12-20 01:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059407', 'tblTempUsageDetail_20' ) start [2024-12-20 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059407', 'tblTempUsageDetail_20' ) end [2024-12-20 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059407', 'tblTempVendorCDR_20' ) start [2024-12-20 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059407', 'tblTempVendorCDR_20' ) end [2024-12-20 01:19:16] Production.INFO: ProcessCDR(1,14059407,1,1,2) [2024-12-20 01:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059407', 'tblTempUsageDetail_20' ) start [2024-12-20 01:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059407', 'tblTempUsageDetail_20' ) end [2024-12-20 01:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:19:19] Production.INFO: ==16357== Releasing lock... [2024-12-20 01:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:19:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:20:05 [end_date_ymd] => 2024-12-20 01:20:05 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:20:05' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:20:18] Production.INFO: count ==140 [2024-12-20 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:20:05 - End Time 2024-12-20 01:20:05 [2024-12-20 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059413', 'tblTempUsageDetail_20' ) start [2024-12-20 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059413', 'tblTempUsageDetail_20' ) end [2024-12-20 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059413', 'tblTempVendorCDR_20' ) start [2024-12-20 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059413', 'tblTempVendorCDR_20' ) end [2024-12-20 01:20:18] Production.INFO: ProcessCDR(1,14059413,1,1,2) [2024-12-20 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059413', 'tblTempUsageDetail_20' ) start [2024-12-20 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059413', 'tblTempUsageDetail_20' ) end [2024-12-20 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:20:21] Production.INFO: ==16429== Releasing lock... [2024-12-20 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:20:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:21:05 [end_date_ymd] => 2024-12-20 01:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:21:18] Production.INFO: count ==140 [2024-12-20 01:21:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:21:05 - End Time 2024-12-20 01:21:05 [2024-12-20 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059418', 'tblTempUsageDetail_20' ) start [2024-12-20 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059418', 'tblTempUsageDetail_20' ) end [2024-12-20 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059418', 'tblTempVendorCDR_20' ) start [2024-12-20 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059418', 'tblTempVendorCDR_20' ) end [2024-12-20 01:21:18] Production.INFO: ProcessCDR(1,14059418,1,1,2) [2024-12-20 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059418', 'tblTempUsageDetail_20' ) start [2024-12-20 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059418', 'tblTempUsageDetail_20' ) end [2024-12-20 01:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:21:21] Production.INFO: ==16502== Releasing lock... [2024-12-20 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:21:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:22:04 [end_date_ymd] => 2024-12-20 01:22:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:22:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:22:17] Production.INFO: count ==140 [2024-12-20 01:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:22:04 - End Time 2024-12-20 01:22:04 [2024-12-20 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059421', 'tblTempUsageDetail_20' ) start [2024-12-20 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059421', 'tblTempUsageDetail_20' ) end [2024-12-20 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059421', 'tblTempVendorCDR_20' ) start [2024-12-20 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059421', 'tblTempVendorCDR_20' ) end [2024-12-20 01:22:17] Production.INFO: ProcessCDR(1,14059421,1,1,2) [2024-12-20 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059421', 'tblTempUsageDetail_20' ) start [2024-12-20 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059421', 'tblTempUsageDetail_20' ) end [2024-12-20 01:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:22:20] Production.INFO: ==16573== Releasing lock... [2024-12-20 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:22:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:23:05 [end_date_ymd] => 2024-12-20 01:23:05 [RateCDR] => 1 ) [2024-12-20 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:23:05' and `end` < '2024-12-20 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:23:17] Production.INFO: count ==140 [2024-12-20 01:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:23:05 - End Time 2024-12-20 01:23:05 [2024-12-20 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059428', 'tblTempUsageDetail_20' ) start [2024-12-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059428', 'tblTempUsageDetail_20' ) end [2024-12-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059428', 'tblTempVendorCDR_20' ) start [2024-12-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059428', 'tblTempVendorCDR_20' ) end [2024-12-20 01:23:17] Production.INFO: ProcessCDR(1,14059428,1,1,2) [2024-12-20 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059428', 'tblTempUsageDetail_20' ) start [2024-12-20 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059428', 'tblTempUsageDetail_20' ) end [2024-12-20 01:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:23:20] Production.INFO: ==16650== Releasing lock... [2024-12-20 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:23:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:24:05 [end_date_ymd] => 2024-12-20 01:24:05 [RateCDR] => 1 ) [2024-12-20 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:24:05' and `end` < '2024-12-20 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:24:18] Production.INFO: count ==140 [2024-12-20 01:24:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:24:05 - End Time 2024-12-20 01:24:05 [2024-12-20 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059433', 'tblTempUsageDetail_20' ) start [2024-12-20 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059433', 'tblTempUsageDetail_20' ) end [2024-12-20 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059433', 'tblTempVendorCDR_20' ) start [2024-12-20 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059433', 'tblTempVendorCDR_20' ) end [2024-12-20 01:24:18] Production.INFO: ProcessCDR(1,14059433,1,1,2) [2024-12-20 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059433', 'tblTempUsageDetail_20' ) start [2024-12-20 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059433', 'tblTempUsageDetail_20' ) end [2024-12-20 01:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:24:21] Production.INFO: ==16722== Releasing lock... [2024-12-20 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:24:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:25:05 [end_date_ymd] => 2024-12-20 01:25:05 [RateCDR] => 1 ) [2024-12-20 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:25:05' and `end` < '2024-12-20 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:25:16] Production.INFO: count ==140 [2024-12-20 01:25:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:25:05 - End Time 2024-12-20 01:25:05 [2024-12-20 01:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059438', 'tblTempUsageDetail_20' ) start [2024-12-20 01:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059438', 'tblTempUsageDetail_20' ) end [2024-12-20 01:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059438', 'tblTempVendorCDR_20' ) start [2024-12-20 01:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059438', 'tblTempVendorCDR_20' ) end [2024-12-20 01:25:16] Production.INFO: ProcessCDR(1,14059438,1,1,2) [2024-12-20 01:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059438', 'tblTempUsageDetail_20' ) start [2024-12-20 01:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059438', 'tblTempUsageDetail_20' ) end [2024-12-20 01:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:25:19] Production.INFO: ==16795== Releasing lock... [2024-12-20 01:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:25:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:26:04 [end_date_ymd] => 2024-12-20 01:26:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:26:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:26:16] Production.INFO: count ==140 [2024-12-20 01:26:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:26:04 - End Time 2024-12-20 01:26:04 [2024-12-20 01:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059443', 'tblTempUsageDetail_20' ) start [2024-12-20 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059443', 'tblTempUsageDetail_20' ) end [2024-12-20 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059443', 'tblTempVendorCDR_20' ) start [2024-12-20 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059443', 'tblTempVendorCDR_20' ) end [2024-12-20 01:26:16] Production.INFO: ProcessCDR(1,14059443,1,1,2) [2024-12-20 01:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059443', 'tblTempUsageDetail_20' ) start [2024-12-20 01:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059443', 'tblTempUsageDetail_20' ) end [2024-12-20 01:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:26:19] Production.INFO: ==16868== Releasing lock... [2024-12-20 01:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:26:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:27:04 [end_date_ymd] => 2024-12-20 01:27:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:27:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:27:17] Production.INFO: count ==140 [2024-12-20 01:27:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:27:04 - End Time 2024-12-20 01:27:04 [2024-12-20 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059448', 'tblTempUsageDetail_20' ) start [2024-12-20 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059448', 'tblTempUsageDetail_20' ) end [2024-12-20 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059448', 'tblTempVendorCDR_20' ) start [2024-12-20 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059448', 'tblTempVendorCDR_20' ) end [2024-12-20 01:27:17] Production.INFO: ProcessCDR(1,14059448,1,1,2) [2024-12-20 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059448', 'tblTempUsageDetail_20' ) start [2024-12-20 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059448', 'tblTempUsageDetail_20' ) end [2024-12-20 01:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:27:20] Production.INFO: ==16985== Releasing lock... [2024-12-20 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:27:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:28:05 [end_date_ymd] => 2024-12-20 01:28:05 [RateCDR] => 1 ) [2024-12-20 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:28:05' and `end` < '2024-12-20 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:28:17] Production.INFO: count ==140 [2024-12-20 01:28:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:28:05 - End Time 2024-12-20 01:28:05 [2024-12-20 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059453', 'tblTempUsageDetail_20' ) start [2024-12-20 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059453', 'tblTempUsageDetail_20' ) end [2024-12-20 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059453', 'tblTempVendorCDR_20' ) start [2024-12-20 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059453', 'tblTempVendorCDR_20' ) end [2024-12-20 01:28:17] Production.INFO: ProcessCDR(1,14059453,1,1,2) [2024-12-20 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059453', 'tblTempUsageDetail_20' ) start [2024-12-20 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059453', 'tblTempUsageDetail_20' ) end [2024-12-20 01:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:28:20] Production.INFO: ==17061== Releasing lock... [2024-12-20 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:28:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:29:04 [end_date_ymd] => 2024-12-20 01:29:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:29:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:29:16] Production.INFO: count ==140 [2024-12-20 01:29:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:29:04 - End Time 2024-12-20 01:29:04 [2024-12-20 01:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059458', 'tblTempUsageDetail_20' ) start [2024-12-20 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059458', 'tblTempUsageDetail_20' ) end [2024-12-20 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059458', 'tblTempVendorCDR_20' ) start [2024-12-20 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059458', 'tblTempVendorCDR_20' ) end [2024-12-20 01:29:16] Production.INFO: ProcessCDR(1,14059458,1,1,2) [2024-12-20 01:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059458', 'tblTempUsageDetail_20' ) start [2024-12-20 01:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059458', 'tblTempUsageDetail_20' ) end [2024-12-20 01:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:29:19] Production.INFO: ==17141== Releasing lock... [2024-12-20 01:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:29:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:30:05 [end_date_ymd] => 2024-12-20 01:30:05 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:30:05' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:30:18] Production.INFO: count ==144 [2024-12-20 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:30:05 - End Time 2024-12-20 01:30:05 [2024-12-20 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059464', 'tblTempUsageDetail_20' ) start [2024-12-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059464', 'tblTempUsageDetail_20' ) end [2024-12-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059464', 'tblTempVendorCDR_20' ) start [2024-12-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059464', 'tblTempVendorCDR_20' ) end [2024-12-20 01:30:18] Production.INFO: ProcessCDR(1,14059464,1,1,2) [2024-12-20 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059464', 'tblTempUsageDetail_20' ) start [2024-12-20 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059464', 'tblTempUsageDetail_20' ) end [2024-12-20 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:30:21] Production.INFO: ==17227== Releasing lock... [2024-12-20 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:30:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:31:04 [end_date_ymd] => 2024-12-20 01:31:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:31:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:31:16] Production.INFO: count ==145 [2024-12-20 01:31:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:31:04 - End Time 2024-12-20 01:31:04 [2024-12-20 01:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059469', 'tblTempUsageDetail_20' ) start [2024-12-20 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059469', 'tblTempUsageDetail_20' ) end [2024-12-20 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059469', 'tblTempVendorCDR_20' ) start [2024-12-20 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059469', 'tblTempVendorCDR_20' ) end [2024-12-20 01:31:16] Production.INFO: ProcessCDR(1,14059469,1,1,2) [2024-12-20 01:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059469', 'tblTempUsageDetail_20' ) start [2024-12-20 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059469', 'tblTempUsageDetail_20' ) end [2024-12-20 01:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:31:20] Production.INFO: ==17307== Releasing lock... [2024-12-20 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:31:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:32:05 [end_date_ymd] => 2024-12-20 01:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:32:18] Production.INFO: count ==145 [2024-12-20 01:32:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:32:05 - End Time 2024-12-20 01:32:05 [2024-12-20 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059474', 'tblTempUsageDetail_20' ) start [2024-12-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059474', 'tblTempUsageDetail_20' ) end [2024-12-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059474', 'tblTempVendorCDR_20' ) start [2024-12-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059474', 'tblTempVendorCDR_20' ) end [2024-12-20 01:32:18] Production.INFO: ProcessCDR(1,14059474,1,1,2) [2024-12-20 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059474', 'tblTempUsageDetail_20' ) start [2024-12-20 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059474', 'tblTempUsageDetail_20' ) end [2024-12-20 01:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:32:21] Production.INFO: ==17388== Releasing lock... [2024-12-20 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:32:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:33:05 [end_date_ymd] => 2024-12-20 01:33:05 [RateCDR] => 1 ) [2024-12-20 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:33:05' and `end` < '2024-12-20 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:33:17] Production.INFO: count ==145 [2024-12-20 01:33:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:33:05 - End Time 2024-12-20 01:33:05 [2024-12-20 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059479', 'tblTempUsageDetail_20' ) start [2024-12-20 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059479', 'tblTempUsageDetail_20' ) end [2024-12-20 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059479', 'tblTempVendorCDR_20' ) start [2024-12-20 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059479', 'tblTempVendorCDR_20' ) end [2024-12-20 01:33:17] Production.INFO: ProcessCDR(1,14059479,1,1,2) [2024-12-20 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059479', 'tblTempUsageDetail_20' ) start [2024-12-20 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059479', 'tblTempUsageDetail_20' ) end [2024-12-20 01:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:33:20] Production.INFO: ==17471== Releasing lock... [2024-12-20 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:33:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:34:05 [end_date_ymd] => 2024-12-20 01:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:34:17] Production.INFO: count ==145 [2024-12-20 01:34:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:34:05 - End Time 2024-12-20 01:34:05 [2024-12-20 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059484', 'tblTempUsageDetail_20' ) start [2024-12-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059484', 'tblTempUsageDetail_20' ) end [2024-12-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059484', 'tblTempVendorCDR_20' ) start [2024-12-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059484', 'tblTempVendorCDR_20' ) end [2024-12-20 01:34:17] Production.INFO: ProcessCDR(1,14059484,1,1,2) [2024-12-20 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059484', 'tblTempUsageDetail_20' ) start [2024-12-20 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059484', 'tblTempUsageDetail_20' ) end [2024-12-20 01:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:34:20] Production.INFO: ==17547== Releasing lock... [2024-12-20 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:34:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:35:05 [end_date_ymd] => 2024-12-20 01:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:35:17] Production.INFO: count ==145 [2024-12-20 01:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:35:05 - End Time 2024-12-20 01:35:05 [2024-12-20 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059489', 'tblTempUsageDetail_20' ) start [2024-12-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059489', 'tblTempUsageDetail_20' ) end [2024-12-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059489', 'tblTempVendorCDR_20' ) start [2024-12-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059489', 'tblTempVendorCDR_20' ) end [2024-12-20 01:35:17] Production.INFO: ProcessCDR(1,14059489,1,1,2) [2024-12-20 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059489', 'tblTempUsageDetail_20' ) start [2024-12-20 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059489', 'tblTempUsageDetail_20' ) end [2024-12-20 01:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:35:20] Production.INFO: ==17627== Releasing lock... [2024-12-20 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:35:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:36:04 [end_date_ymd] => 2024-12-20 01:36:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:36:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:36:16] Production.INFO: count ==145 [2024-12-20 01:36:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:36:04 - End Time 2024-12-20 01:36:04 [2024-12-20 01:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059494', 'tblTempUsageDetail_20' ) start [2024-12-20 01:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059494', 'tblTempUsageDetail_20' ) end [2024-12-20 01:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059494', 'tblTempVendorCDR_20' ) start [2024-12-20 01:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059494', 'tblTempVendorCDR_20' ) end [2024-12-20 01:36:16] Production.INFO: ProcessCDR(1,14059494,1,1,2) [2024-12-20 01:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059494', 'tblTempUsageDetail_20' ) start [2024-12-20 01:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059494', 'tblTempUsageDetail_20' ) end [2024-12-20 01:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:36:19] Production.INFO: ==17708== Releasing lock... [2024-12-20 01:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:36:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:37:06 [end_date_ymd] => 2024-12-20 01:37:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:37:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:37:17] Production.INFO: count ==145 [2024-12-20 01:37:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:37:06 - End Time 2024-12-20 01:37:06 [2024-12-20 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059499', 'tblTempUsageDetail_20' ) start [2024-12-20 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059499', 'tblTempUsageDetail_20' ) end [2024-12-20 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059499', 'tblTempVendorCDR_20' ) start [2024-12-20 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059499', 'tblTempVendorCDR_20' ) end [2024-12-20 01:37:18] Production.INFO: ProcessCDR(1,14059499,1,1,2) [2024-12-20 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059499', 'tblTempUsageDetail_20' ) start [2024-12-20 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059499', 'tblTempUsageDetail_20' ) end [2024-12-20 01:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:37:21] Production.INFO: ==17784== Releasing lock... [2024-12-20 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:37:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:38:04 [end_date_ymd] => 2024-12-20 01:38:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:38:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:38:16] Production.INFO: count ==145 [2024-12-20 01:38:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:38:04 - End Time 2024-12-20 01:38:04 [2024-12-20 01:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059504', 'tblTempUsageDetail_20' ) start [2024-12-20 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059504', 'tblTempUsageDetail_20' ) end [2024-12-20 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059504', 'tblTempVendorCDR_20' ) start [2024-12-20 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059504', 'tblTempVendorCDR_20' ) end [2024-12-20 01:38:16] Production.INFO: ProcessCDR(1,14059504,1,1,2) [2024-12-20 01:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059504', 'tblTempUsageDetail_20' ) start [2024-12-20 01:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059504', 'tblTempUsageDetail_20' ) end [2024-12-20 01:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:38:19] Production.INFO: ==17865== Releasing lock... [2024-12-20 01:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:38:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:39:04 [end_date_ymd] => 2024-12-20 01:39:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:39:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:39:17] Production.INFO: count ==144 [2024-12-20 01:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:39:04 - End Time 2024-12-20 01:39:04 [2024-12-20 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059509', 'tblTempUsageDetail_20' ) start [2024-12-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059509', 'tblTempUsageDetail_20' ) end [2024-12-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059509', 'tblTempVendorCDR_20' ) start [2024-12-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059509', 'tblTempVendorCDR_20' ) end [2024-12-20 01:39:17] Production.INFO: ProcessCDR(1,14059509,1,1,2) [2024-12-20 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059509', 'tblTempUsageDetail_20' ) start [2024-12-20 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059509', 'tblTempUsageDetail_20' ) end [2024-12-20 01:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:39:20] Production.INFO: ==17947== Releasing lock... [2024-12-20 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:39:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:40:05 [end_date_ymd] => 2024-12-20 01:40:05 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:40:05' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:40:17] Production.INFO: count ==146 [2024-12-20 01:40:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:40:05 - End Time 2024-12-20 01:40:05 [2024-12-20 01:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059515', 'tblTempUsageDetail_20' ) start [2024-12-20 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059515', 'tblTempUsageDetail_20' ) end [2024-12-20 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059515', 'tblTempVendorCDR_20' ) start [2024-12-20 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059515', 'tblTempVendorCDR_20' ) end [2024-12-20 01:40:17] Production.INFO: ProcessCDR(1,14059515,1,1,2) [2024-12-20 01:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059515', 'tblTempUsageDetail_20' ) start [2024-12-20 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059515', 'tblTempUsageDetail_20' ) end [2024-12-20 01:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:40:21] Production.INFO: ==18026== Releasing lock... [2024-12-20 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:40:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:41:04 [end_date_ymd] => 2024-12-20 01:41:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:41:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:41:16] Production.INFO: count ==146 [2024-12-20 01:41:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:41:04 - End Time 2024-12-20 01:41:04 [2024-12-20 01:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059520', 'tblTempUsageDetail_20' ) start [2024-12-20 01:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059520', 'tblTempUsageDetail_20' ) end [2024-12-20 01:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059520', 'tblTempVendorCDR_20' ) start [2024-12-20 01:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059520', 'tblTempVendorCDR_20' ) end [2024-12-20 01:41:16] Production.INFO: ProcessCDR(1,14059520,1,1,2) [2024-12-20 01:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059520', 'tblTempUsageDetail_20' ) start [2024-12-20 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059520', 'tblTempUsageDetail_20' ) end [2024-12-20 01:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:41:20] Production.INFO: ==18114== Releasing lock... [2024-12-20 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:41:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:42:05 [end_date_ymd] => 2024-12-20 01:42:05 [RateCDR] => 1 ) [2024-12-20 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:42:05' and `end` < '2024-12-20 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:42:17] Production.INFO: count ==147 [2024-12-20 01:42:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:42:05 - End Time 2024-12-20 01:42:05 [2024-12-20 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059525', 'tblTempUsageDetail_20' ) start [2024-12-20 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059525', 'tblTempUsageDetail_20' ) end [2024-12-20 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059525', 'tblTempVendorCDR_20' ) start [2024-12-20 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059525', 'tblTempVendorCDR_20' ) end [2024-12-20 01:42:17] Production.INFO: ProcessCDR(1,14059525,1,1,2) [2024-12-20 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059525', 'tblTempUsageDetail_20' ) start [2024-12-20 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059525', 'tblTempUsageDetail_20' ) end [2024-12-20 01:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:42:22] Production.INFO: ==18237== Releasing lock... [2024-12-20 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:42:22] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:43:05 [end_date_ymd] => 2024-12-20 01:43:05 [RateCDR] => 1 ) [2024-12-20 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:43:05' and `end` < '2024-12-20 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:43:17] Production.INFO: count ==145 [2024-12-20 01:43:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:43:05 - End Time 2024-12-20 01:43:05 [2024-12-20 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059530', 'tblTempUsageDetail_20' ) start [2024-12-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059530', 'tblTempUsageDetail_20' ) end [2024-12-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059530', 'tblTempVendorCDR_20' ) start [2024-12-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059530', 'tblTempVendorCDR_20' ) end [2024-12-20 01:43:17] Production.INFO: ProcessCDR(1,14059530,1,1,2) [2024-12-20 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059530', 'tblTempUsageDetail_20' ) start [2024-12-20 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059530', 'tblTempUsageDetail_20' ) end [2024-12-20 01:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:43:21] Production.INFO: ==18315== Releasing lock... [2024-12-20 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:43:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:44:05 [end_date_ymd] => 2024-12-20 01:44:05 [RateCDR] => 1 ) [2024-12-20 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:44:05' and `end` < '2024-12-20 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:44:17] Production.INFO: count ==144 [2024-12-20 01:44:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:44:05 - End Time 2024-12-20 01:44:05 [2024-12-20 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059535', 'tblTempUsageDetail_20' ) start [2024-12-20 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059535', 'tblTempUsageDetail_20' ) end [2024-12-20 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059535', 'tblTempVendorCDR_20' ) start [2024-12-20 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059535', 'tblTempVendorCDR_20' ) end [2024-12-20 01:44:17] Production.INFO: ProcessCDR(1,14059535,1,1,2) [2024-12-20 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059535', 'tblTempUsageDetail_20' ) start [2024-12-20 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059535', 'tblTempUsageDetail_20' ) end [2024-12-20 01:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:44:20] Production.INFO: ==18402== Releasing lock... [2024-12-20 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:44:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:45:04 [end_date_ymd] => 2024-12-20 01:45:04 [RateCDR] => 1 ) [2024-12-20 01:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:45:04' and `end` < '2024-12-20 01:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:45:16] Production.INFO: count ==143 [2024-12-20 01:45:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:45:04 - End Time 2024-12-20 01:45:04 [2024-12-20 01:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059540', 'tblTempUsageDetail_20' ) start [2024-12-20 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059540', 'tblTempUsageDetail_20' ) end [2024-12-20 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059540', 'tblTempVendorCDR_20' ) start [2024-12-20 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059540', 'tblTempVendorCDR_20' ) end [2024-12-20 01:45:16] Production.INFO: ProcessCDR(1,14059540,1,1,2) [2024-12-20 01:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059540', 'tblTempUsageDetail_20' ) start [2024-12-20 01:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059540', 'tblTempUsageDetail_20' ) end [2024-12-20 01:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:45:19] Production.INFO: ==18479== Releasing lock... [2024-12-20 01:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:45:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:46:05 [end_date_ymd] => 2024-12-20 01:46:05 [RateCDR] => 1 ) [2024-12-20 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:46:05' and `end` < '2024-12-20 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:46:17] Production.INFO: count ==143 [2024-12-20 01:46:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:46:05 - End Time 2024-12-20 01:46:05 [2024-12-20 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059545', 'tblTempUsageDetail_20' ) start [2024-12-20 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059545', 'tblTempUsageDetail_20' ) end [2024-12-20 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059545', 'tblTempVendorCDR_20' ) start [2024-12-20 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059545', 'tblTempVendorCDR_20' ) end [2024-12-20 01:46:17] Production.INFO: ProcessCDR(1,14059545,1,1,2) [2024-12-20 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059545', 'tblTempUsageDetail_20' ) start [2024-12-20 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059545', 'tblTempUsageDetail_20' ) end [2024-12-20 01:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:46:20] Production.INFO: ==18556== Releasing lock... [2024-12-20 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:46:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:47:04 [end_date_ymd] => 2024-12-20 01:47:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:47:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:47:17] Production.INFO: count ==143 [2024-12-20 01:47:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:47:04 - End Time 2024-12-20 01:47:04 [2024-12-20 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059550', 'tblTempUsageDetail_20' ) start [2024-12-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059550', 'tblTempUsageDetail_20' ) end [2024-12-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059550', 'tblTempVendorCDR_20' ) start [2024-12-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059550', 'tblTempVendorCDR_20' ) end [2024-12-20 01:47:17] Production.INFO: ProcessCDR(1,14059550,1,1,2) [2024-12-20 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059550', 'tblTempUsageDetail_20' ) start [2024-12-20 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059550', 'tblTempUsageDetail_20' ) end [2024-12-20 01:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:47:20] Production.INFO: ==18631== Releasing lock... [2024-12-20 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:47:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:48:05 [end_date_ymd] => 2024-12-20 01:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:48:16] Production.INFO: count ==144 [2024-12-20 01:48:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:48:05 - End Time 2024-12-20 01:48:05 [2024-12-20 01:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059555', 'tblTempUsageDetail_20' ) start [2024-12-20 01:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059555', 'tblTempUsageDetail_20' ) end [2024-12-20 01:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059555', 'tblTempVendorCDR_20' ) start [2024-12-20 01:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059555', 'tblTempVendorCDR_20' ) end [2024-12-20 01:48:16] Production.INFO: ProcessCDR(1,14059555,1,1,2) [2024-12-20 01:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059555', 'tblTempUsageDetail_20' ) start [2024-12-20 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059555', 'tblTempUsageDetail_20' ) end [2024-12-20 01:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:48:21] Production.INFO: ==18713== Releasing lock... [2024-12-20 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:48:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:49:05 [end_date_ymd] => 2024-12-20 01:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:49:17] Production.INFO: count ==144 [2024-12-20 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:49:05 - End Time 2024-12-20 01:49:05 [2024-12-20 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059560', 'tblTempUsageDetail_20' ) start [2024-12-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059560', 'tblTempUsageDetail_20' ) end [2024-12-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059560', 'tblTempVendorCDR_20' ) start [2024-12-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059560', 'tblTempVendorCDR_20' ) end [2024-12-20 01:49:17] Production.INFO: ProcessCDR(1,14059560,1,1,2) [2024-12-20 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059560', 'tblTempUsageDetail_20' ) start [2024-12-20 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059560', 'tblTempUsageDetail_20' ) end [2024-12-20 01:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:49:20] Production.INFO: ==18793== Releasing lock... [2024-12-20 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:49:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:50:06 [end_date_ymd] => 2024-12-20 01:50:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:50:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:50:17] Production.INFO: count ==153 [2024-12-20 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:50:06 - End Time 2024-12-20 01:50:06 [2024-12-20 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059566', 'tblTempUsageDetail_20' ) start [2024-12-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059566', 'tblTempUsageDetail_20' ) end [2024-12-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059566', 'tblTempVendorCDR_20' ) start [2024-12-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059566', 'tblTempVendorCDR_20' ) end [2024-12-20 01:50:18] Production.INFO: ProcessCDR(1,14059566,1,1,2) [2024-12-20 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059566', 'tblTempUsageDetail_20' ) start [2024-12-20 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059566', 'tblTempUsageDetail_20' ) end [2024-12-20 01:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:50:21] Production.INFO: ==18872== Releasing lock... [2024-12-20 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:50:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:51:05 [end_date_ymd] => 2024-12-20 01:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:51:18] Production.INFO: count ==155 [2024-12-20 01:51:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:51:05 - End Time 2024-12-20 01:51:05 [2024-12-20 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059571', 'tblTempUsageDetail_20' ) start [2024-12-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059571', 'tblTempUsageDetail_20' ) end [2024-12-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059571', 'tblTempVendorCDR_20' ) start [2024-12-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059571', 'tblTempVendorCDR_20' ) end [2024-12-20 01:51:18] Production.INFO: ProcessCDR(1,14059571,1,1,2) [2024-12-20 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059571', 'tblTempUsageDetail_20' ) start [2024-12-20 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059571', 'tblTempUsageDetail_20' ) end [2024-12-20 01:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:51:21] Production.INFO: ==18953== Releasing lock... [2024-12-20 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:51:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:52:05 [end_date_ymd] => 2024-12-20 01:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:52:17] Production.INFO: count ==155 [2024-12-20 01:52:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:52:05 - End Time 2024-12-20 01:52:05 [2024-12-20 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059576', 'tblTempUsageDetail_20' ) start [2024-12-20 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059576', 'tblTempUsageDetail_20' ) end [2024-12-20 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059576', 'tblTempVendorCDR_20' ) start [2024-12-20 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059576', 'tblTempVendorCDR_20' ) end [2024-12-20 01:52:17] Production.INFO: ProcessCDR(1,14059576,1,1,2) [2024-12-20 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059576', 'tblTempUsageDetail_20' ) start [2024-12-20 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059576', 'tblTempUsageDetail_20' ) end [2024-12-20 01:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:52:20] Production.INFO: ==19027== Releasing lock... [2024-12-20 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:52:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:53:05 [end_date_ymd] => 2024-12-20 01:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:53:18] Production.INFO: count ==155 [2024-12-20 01:53:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:53:05 - End Time 2024-12-20 01:53:05 [2024-12-20 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059581', 'tblTempUsageDetail_20' ) start [2024-12-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059581', 'tblTempUsageDetail_20' ) end [2024-12-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059581', 'tblTempVendorCDR_20' ) start [2024-12-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059581', 'tblTempVendorCDR_20' ) end [2024-12-20 01:53:18] Production.INFO: ProcessCDR(1,14059581,1,1,2) [2024-12-20 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059581', 'tblTempUsageDetail_20' ) start [2024-12-20 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059581', 'tblTempUsageDetail_20' ) end [2024-12-20 01:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:53:21] Production.INFO: ==19105== Releasing lock... [2024-12-20 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:53:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:54:05 [end_date_ymd] => 2024-12-20 01:54:05 [RateCDR] => 1 ) [2024-12-20 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:54:05' and `end` < '2024-12-20 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:54:17] Production.INFO: count ==155 [2024-12-20 01:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:54:05 - End Time 2024-12-20 01:54:05 [2024-12-20 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059586', 'tblTempUsageDetail_20' ) start [2024-12-20 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059586', 'tblTempUsageDetail_20' ) end [2024-12-20 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059586', 'tblTempVendorCDR_20' ) start [2024-12-20 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059586', 'tblTempVendorCDR_20' ) end [2024-12-20 01:54:17] Production.INFO: ProcessCDR(1,14059586,1,1,2) [2024-12-20 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059586', 'tblTempUsageDetail_20' ) start [2024-12-20 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059586', 'tblTempUsageDetail_20' ) end [2024-12-20 01:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:54:20] Production.INFO: ==19181== Releasing lock... [2024-12-20 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:54:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:55:05 [end_date_ymd] => 2024-12-20 01:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 22:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 01:55:17] Production.INFO: count ==155 [2024-12-20 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:55:05 - End Time 2024-12-20 01:55:05 [2024-12-20 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059591', 'tblTempUsageDetail_20' ) start [2024-12-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059591', 'tblTempUsageDetail_20' ) end [2024-12-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059591', 'tblTempVendorCDR_20' ) start [2024-12-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059591', 'tblTempVendorCDR_20' ) end [2024-12-20 01:55:17] Production.INFO: ProcessCDR(1,14059591,1,1,2) [2024-12-20 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059591', 'tblTempUsageDetail_20' ) start [2024-12-20 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059591', 'tblTempUsageDetail_20' ) end [2024-12-20 01:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:55:20] Production.INFO: ==19260== Releasing lock... [2024-12-20 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:55:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:56:04 [end_date_ymd] => 2024-12-20 01:56:04 [RateCDR] => 1 ) [2024-12-20 01:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:56:04' and `end` < '2024-12-20 01:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:56:16] Production.INFO: count ==155 [2024-12-20 01:56:16] Production.ERROR: pbx CDR StartTime 2024-12-19 22:56:04 - End Time 2024-12-20 01:56:04 [2024-12-20 01:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059596', 'tblTempUsageDetail_20' ) start [2024-12-20 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059596', 'tblTempUsageDetail_20' ) end [2024-12-20 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059596', 'tblTempVendorCDR_20' ) start [2024-12-20 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059596', 'tblTempVendorCDR_20' ) end [2024-12-20 01:56:16] Production.INFO: ProcessCDR(1,14059596,1,1,2) [2024-12-20 01:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059596', 'tblTempUsageDetail_20' ) start [2024-12-20 01:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059596', 'tblTempUsageDetail_20' ) end [2024-12-20 01:56:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:56:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:56:19] Production.INFO: ==19340== Releasing lock... [2024-12-20 01:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:56:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:57:05 [end_date_ymd] => 2024-12-20 01:57:05 [RateCDR] => 1 ) [2024-12-20 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:57:05' and `end` < '2024-12-20 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:57:18] Production.INFO: count ==155 [2024-12-20 01:57:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:57:05 - End Time 2024-12-20 01:57:05 [2024-12-20 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059601', 'tblTempUsageDetail_20' ) start [2024-12-20 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059601', 'tblTempUsageDetail_20' ) end [2024-12-20 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059601', 'tblTempVendorCDR_20' ) start [2024-12-20 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059601', 'tblTempVendorCDR_20' ) end [2024-12-20 01:57:18] Production.INFO: ProcessCDR(1,14059601,1,1,2) [2024-12-20 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059601', 'tblTempUsageDetail_20' ) start [2024-12-20 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059601', 'tblTempUsageDetail_20' ) end [2024-12-20 01:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:57:21] Production.INFO: ==19424== Releasing lock... [2024-12-20 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:57:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:58:05 [end_date_ymd] => 2024-12-20 01:58:05 [RateCDR] => 1 ) [2024-12-20 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 22:58:05' and `end` < '2024-12-20 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 01:58:18] Production.INFO: count ==155 [2024-12-20 01:58:18] Production.ERROR: pbx CDR StartTime 2024-12-19 22:58:05 - End Time 2024-12-20 01:58:05 [2024-12-20 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059606', 'tblTempUsageDetail_20' ) start [2024-12-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059606', 'tblTempUsageDetail_20' ) end [2024-12-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059606', 'tblTempVendorCDR_20' ) start [2024-12-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059606', 'tblTempVendorCDR_20' ) end [2024-12-20 01:58:18] Production.INFO: ProcessCDR(1,14059606,1,1,2) [2024-12-20 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059606', 'tblTempUsageDetail_20' ) start [2024-12-20 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059606', 'tblTempUsageDetail_20' ) end [2024-12-20 01:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:58:21] Production.INFO: ==19547== Releasing lock... [2024-12-20 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:58:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 22:59:04 [end_date_ymd] => 2024-12-20 01:59:04 [RateCDR] => 1 ) [2024-12-20 01: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` >= '2024-12-19 22:59:04' and `end` < '2024-12-20 01: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 ,'') [2024-12-20 01:59:17] Production.INFO: count ==155 [2024-12-20 01:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 22:59:04 - End Time 2024-12-20 01:59:04 [2024-12-20 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059611', 'tblTempUsageDetail_20' ) start [2024-12-20 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059611', 'tblTempUsageDetail_20' ) end [2024-12-20 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059611', 'tblTempVendorCDR_20' ) start [2024-12-20 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059611', 'tblTempVendorCDR_20' ) end [2024-12-20 01:59:17] Production.INFO: ProcessCDR(1,14059611,1,1,2) [2024-12-20 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059611', 'tblTempUsageDetail_20' ) start [2024-12-20 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059611', 'tblTempUsageDetail_20' ) end [2024-12-20 01:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 01:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 01:59:20] Production.INFO: ==19626== Releasing lock... [2024-12-20 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 01:59:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:00:06 [end_date_ymd] => 2024-12-20 02:00:06 [RateCDR] => 1 ) [2024-12-20 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:00:06' and `end` < '2024-12-20 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:00:18] Production.INFO: count ==167 [2024-12-20 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:00:06 - End Time 2024-12-20 02:00:06 [2024-12-20 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059617', 'tblTempUsageDetail_20' ) start [2024-12-20 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059617', 'tblTempUsageDetail_20' ) end [2024-12-20 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059617', 'tblTempVendorCDR_20' ) start [2024-12-20 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059617', 'tblTempVendorCDR_20' ) end [2024-12-20 02:00:18] Production.INFO: ProcessCDR(1,14059617,1,1,2) [2024-12-20 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059617', 'tblTempUsageDetail_20' ) start [2024-12-20 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059617', 'tblTempUsageDetail_20' ) end [2024-12-20 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:00:21] Production.INFO: ==19714== Releasing lock... [2024-12-20 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:00:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:01:04 [end_date_ymd] => 2024-12-20 02:01:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:01:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:01:16] Production.INFO: count ==171 [2024-12-20 02:01:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:01:04 - End Time 2024-12-20 02:01:04 [2024-12-20 02:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059622', 'tblTempUsageDetail_20' ) start [2024-12-20 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059622', 'tblTempUsageDetail_20' ) end [2024-12-20 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059622', 'tblTempVendorCDR_20' ) start [2024-12-20 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059622', 'tblTempVendorCDR_20' ) end [2024-12-20 02:01:16] Production.INFO: ProcessCDR(1,14059622,1,1,2) [2024-12-20 02:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059622', 'tblTempUsageDetail_20' ) start [2024-12-20 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059622', 'tblTempUsageDetail_20' ) end [2024-12-20 02:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:01:20] Production.INFO: ==19892== Releasing lock... [2024-12-20 02:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:01:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:02:05 [end_date_ymd] => 2024-12-20 02:02:05 [RateCDR] => 1 ) [2024-12-20 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:02:05' and `end` < '2024-12-20 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:02:17] Production.INFO: count ==170 [2024-12-20 02:02:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:02:05 - End Time 2024-12-20 02:02:05 [2024-12-20 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059627', 'tblTempUsageDetail_20' ) start [2024-12-20 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059627', 'tblTempUsageDetail_20' ) end [2024-12-20 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059627', 'tblTempVendorCDR_20' ) start [2024-12-20 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059627', 'tblTempVendorCDR_20' ) end [2024-12-20 02:02:17] Production.INFO: ProcessCDR(1,14059627,1,1,2) [2024-12-20 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059627', 'tblTempUsageDetail_20' ) start [2024-12-20 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059627', 'tblTempUsageDetail_20' ) end [2024-12-20 02:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:02:20] Production.INFO: ==19977== Releasing lock... [2024-12-20 02:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:02:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:03:04 [end_date_ymd] => 2024-12-20 02:03:04 [RateCDR] => 1 ) [2024-12-20 02:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:03:04' and `end` < '2024-12-20 02:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:03:16] Production.INFO: count ==170 [2024-12-20 02:03:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:03:04 - End Time 2024-12-20 02:03:04 [2024-12-20 02:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059632', 'tblTempUsageDetail_20' ) start [2024-12-20 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059632', 'tblTempUsageDetail_20' ) end [2024-12-20 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059632', 'tblTempVendorCDR_20' ) start [2024-12-20 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059632', 'tblTempVendorCDR_20' ) end [2024-12-20 02:03:17] Production.INFO: ProcessCDR(1,14059632,1,1,2) [2024-12-20 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059632', 'tblTempUsageDetail_20' ) start [2024-12-20 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059632', 'tblTempUsageDetail_20' ) end [2024-12-20 02:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:03:20] Production.INFO: ==20058== Releasing lock... [2024-12-20 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:03:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:04:05 [end_date_ymd] => 2024-12-20 02:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:04:18] Production.INFO: count ==170 [2024-12-20 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:04:05 - End Time 2024-12-20 02:04:05 [2024-12-20 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059637', 'tblTempUsageDetail_20' ) start [2024-12-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059637', 'tblTempUsageDetail_20' ) end [2024-12-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059637', 'tblTempVendorCDR_20' ) start [2024-12-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059637', 'tblTempVendorCDR_20' ) end [2024-12-20 02:04:18] Production.INFO: ProcessCDR(1,14059637,1,1,2) [2024-12-20 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059637', 'tblTempUsageDetail_20' ) start [2024-12-20 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059637', 'tblTempUsageDetail_20' ) end [2024-12-20 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:04:21] Production.INFO: ==20134== Releasing lock... [2024-12-20 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:04:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:05:05 [end_date_ymd] => 2024-12-20 02:05:05 [RateCDR] => 1 ) [2024-12-20 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:05:05' and `end` < '2024-12-20 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:05:17] Production.INFO: count ==170 [2024-12-20 02:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:05:05 - End Time 2024-12-20 02:05:05 [2024-12-20 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059642', 'tblTempUsageDetail_20' ) start [2024-12-20 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059642', 'tblTempUsageDetail_20' ) end [2024-12-20 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059642', 'tblTempVendorCDR_20' ) start [2024-12-20 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059642', 'tblTempVendorCDR_20' ) end [2024-12-20 02:05:17] Production.INFO: ProcessCDR(1,14059642,1,1,2) [2024-12-20 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059642', 'tblTempUsageDetail_20' ) start [2024-12-20 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059642', 'tblTempUsageDetail_20' ) end [2024-12-20 02:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:05:20] Production.INFO: ==20215== Releasing lock... [2024-12-20 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:05:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:06:05 [end_date_ymd] => 2024-12-20 02:06:05 [RateCDR] => 1 ) [2024-12-20 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:06:05' and `end` < '2024-12-20 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:06:17] Production.INFO: count ==170 [2024-12-20 02:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:06:05 - End Time 2024-12-20 02:06:05 [2024-12-20 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059647', 'tblTempUsageDetail_20' ) start [2024-12-20 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059647', 'tblTempUsageDetail_20' ) end [2024-12-20 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059647', 'tblTempVendorCDR_20' ) start [2024-12-20 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059647', 'tblTempVendorCDR_20' ) end [2024-12-20 02:06:17] Production.INFO: ProcessCDR(1,14059647,1,1,2) [2024-12-20 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059647', 'tblTempUsageDetail_20' ) start [2024-12-20 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059647', 'tblTempUsageDetail_20' ) end [2024-12-20 02:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:06:20] Production.INFO: ==20291== Releasing lock... [2024-12-20 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:06:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:07:05 [end_date_ymd] => 2024-12-20 02:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:07:17] Production.INFO: count ==170 [2024-12-20 02:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:07:05 - End Time 2024-12-20 02:07:05 [2024-12-20 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059652', 'tblTempUsageDetail_20' ) start [2024-12-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059652', 'tblTempUsageDetail_20' ) end [2024-12-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059652', 'tblTempVendorCDR_20' ) start [2024-12-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059652', 'tblTempVendorCDR_20' ) end [2024-12-20 02:07:17] Production.INFO: ProcessCDR(1,14059652,1,1,2) [2024-12-20 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059652', 'tblTempUsageDetail_20' ) start [2024-12-20 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059652', 'tblTempUsageDetail_20' ) end [2024-12-20 02:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:07:20] Production.INFO: ==20372== Releasing lock... [2024-12-20 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:07:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:08:05 [end_date_ymd] => 2024-12-20 02:08:05 [RateCDR] => 1 ) [2024-12-20 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:08:05' and `end` < '2024-12-20 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:08:17] Production.INFO: count ==170 [2024-12-20 02:08:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:08:05 - End Time 2024-12-20 02:08:05 [2024-12-20 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059657', 'tblTempUsageDetail_20' ) start [2024-12-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059657', 'tblTempUsageDetail_20' ) end [2024-12-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059657', 'tblTempVendorCDR_20' ) start [2024-12-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059657', 'tblTempVendorCDR_20' ) end [2024-12-20 02:08:17] Production.INFO: ProcessCDR(1,14059657,1,1,2) [2024-12-20 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059657', 'tblTempUsageDetail_20' ) start [2024-12-20 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059657', 'tblTempUsageDetail_20' ) end [2024-12-20 02:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:08:20] Production.INFO: ==20453== Releasing lock... [2024-12-20 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:08:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:09:05 [end_date_ymd] => 2024-12-20 02:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:09:18] Production.INFO: count ==170 [2024-12-20 02:09:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:09:05 - End Time 2024-12-20 02:09:05 [2024-12-20 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059662', 'tblTempUsageDetail_20' ) start [2024-12-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059662', 'tblTempUsageDetail_20' ) end [2024-12-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059662', 'tblTempVendorCDR_20' ) start [2024-12-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059662', 'tblTempVendorCDR_20' ) end [2024-12-20 02:09:18] Production.INFO: ProcessCDR(1,14059662,1,1,2) [2024-12-20 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059662', 'tblTempUsageDetail_20' ) start [2024-12-20 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059662', 'tblTempUsageDetail_20' ) end [2024-12-20 02:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:09:21] Production.INFO: ==20533== Releasing lock... [2024-12-20 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:09:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:10:05 [end_date_ymd] => 2024-12-20 02:10:05 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:10:05' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:10:21] Production.INFO: count ==168 [2024-12-20 02:10:21] Production.ERROR: pbx CDR StartTime 2024-12-19 23:10:05 - End Time 2024-12-20 02:10:05 [2024-12-20 02:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059667', 'tblTempUsageDetail_20' ) start [2024-12-20 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059667', 'tblTempUsageDetail_20' ) end [2024-12-20 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059667', 'tblTempVendorCDR_20' ) start [2024-12-20 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059667', 'tblTempVendorCDR_20' ) end [2024-12-20 02:10:21] Production.INFO: ProcessCDR(1,14059667,1,1,2) [2024-12-20 02:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059667', 'tblTempUsageDetail_20' ) start [2024-12-20 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059667', 'tblTempUsageDetail_20' ) end [2024-12-20 02:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:10:24] Production.INFO: ==20615== Releasing lock... [2024-12-20 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:10:24] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:11:05 [end_date_ymd] => 2024-12-20 02:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:11:16] Production.INFO: count ==168 [2024-12-20 02:11:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:11:05 - End Time 2024-12-20 02:11:05 [2024-12-20 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059673', 'tblTempUsageDetail_20' ) start [2024-12-20 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059673', 'tblTempUsageDetail_20' ) end [2024-12-20 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059673', 'tblTempVendorCDR_20' ) start [2024-12-20 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059673', 'tblTempVendorCDR_20' ) end [2024-12-20 02:11:17] Production.INFO: ProcessCDR(1,14059673,1,1,2) [2024-12-20 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059673', 'tblTempUsageDetail_20' ) start [2024-12-20 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059673', 'tblTempUsageDetail_20' ) end [2024-12-20 02:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:11:20] Production.INFO: ==20703== Releasing lock... [2024-12-20 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:11:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:12:05 [end_date_ymd] => 2024-12-20 02:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:12:18] Production.INFO: count ==166 [2024-12-20 02:12:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:12:05 - End Time 2024-12-20 02:12:05 [2024-12-20 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059678', 'tblTempUsageDetail_20' ) start [2024-12-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059678', 'tblTempUsageDetail_20' ) end [2024-12-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059678', 'tblTempVendorCDR_20' ) start [2024-12-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059678', 'tblTempVendorCDR_20' ) end [2024-12-20 02:12:18] Production.INFO: ProcessCDR(1,14059678,1,1,2) [2024-12-20 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059678', 'tblTempUsageDetail_20' ) start [2024-12-20 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059678', 'tblTempUsageDetail_20' ) end [2024-12-20 02:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:12:22] Production.INFO: ==20781== Releasing lock... [2024-12-20 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:12:22] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:13:05 [end_date_ymd] => 2024-12-20 02:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:13:17] Production.INFO: count ==165 [2024-12-20 02:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:13:05 - End Time 2024-12-20 02:13:05 [2024-12-20 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059683', 'tblTempUsageDetail_20' ) start [2024-12-20 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059683', 'tblTempUsageDetail_20' ) end [2024-12-20 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059683', 'tblTempVendorCDR_20' ) start [2024-12-20 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059683', 'tblTempVendorCDR_20' ) end [2024-12-20 02:13:17] Production.INFO: ProcessCDR(1,14059683,1,1,2) [2024-12-20 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059683', 'tblTempUsageDetail_20' ) start [2024-12-20 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059683', 'tblTempUsageDetail_20' ) end [2024-12-20 02:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:13:20] Production.INFO: ==20865== Releasing lock... [2024-12-20 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:13:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:14:04 [end_date_ymd] => 2024-12-20 02:14:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:14:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:14:16] Production.INFO: count ==165 [2024-12-20 02:14:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:14:04 - End Time 2024-12-20 02:14:04 [2024-12-20 02:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059688', 'tblTempUsageDetail_20' ) start [2024-12-20 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059688', 'tblTempUsageDetail_20' ) end [2024-12-20 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059688', 'tblTempVendorCDR_20' ) start [2024-12-20 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059688', 'tblTempVendorCDR_20' ) end [2024-12-20 02:14:16] Production.INFO: ProcessCDR(1,14059688,1,1,2) [2024-12-20 02:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059688', 'tblTempUsageDetail_20' ) start [2024-12-20 02:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059688', 'tblTempUsageDetail_20' ) end [2024-12-20 02:14:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:14:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:14:19] Production.INFO: ==20986== Releasing lock... [2024-12-20 02:14:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:14:19] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:15:05 [end_date_ymd] => 2024-12-20 02:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:15:17] Production.INFO: count ==165 [2024-12-20 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:15:05 - End Time 2024-12-20 02:15:05 [2024-12-20 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059693', 'tblTempUsageDetail_20' ) start [2024-12-20 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059693', 'tblTempUsageDetail_20' ) end [2024-12-20 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059693', 'tblTempVendorCDR_20' ) start [2024-12-20 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059693', 'tblTempVendorCDR_20' ) end [2024-12-20 02:15:17] Production.INFO: ProcessCDR(1,14059693,1,1,2) [2024-12-20 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059693', 'tblTempUsageDetail_20' ) start [2024-12-20 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059693', 'tblTempUsageDetail_20' ) end [2024-12-20 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:15:20] Production.INFO: ==21066== Releasing lock... [2024-12-20 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:15:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:16:05 [end_date_ymd] => 2024-12-20 02:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:16:18] Production.INFO: count ==165 [2024-12-20 02:16:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:16:05 - End Time 2024-12-20 02:16:05 [2024-12-20 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059698', 'tblTempUsageDetail_20' ) start [2024-12-20 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059698', 'tblTempUsageDetail_20' ) end [2024-12-20 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059698', 'tblTempVendorCDR_20' ) start [2024-12-20 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059698', 'tblTempVendorCDR_20' ) end [2024-12-20 02:16:18] Production.INFO: ProcessCDR(1,14059698,1,1,2) [2024-12-20 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059698', 'tblTempUsageDetail_20' ) start [2024-12-20 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059698', 'tblTempUsageDetail_20' ) end [2024-12-20 02:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:16:21] Production.INFO: ==21149== Releasing lock... [2024-12-20 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:16:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:17:04 [end_date_ymd] => 2024-12-20 02:17:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:17:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:17:17] Production.INFO: count ==165 [2024-12-20 02:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:17:04 - End Time 2024-12-20 02:17:04 [2024-12-20 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059703', 'tblTempUsageDetail_20' ) start [2024-12-20 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059703', 'tblTempUsageDetail_20' ) end [2024-12-20 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059703', 'tblTempVendorCDR_20' ) start [2024-12-20 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059703', 'tblTempVendorCDR_20' ) end [2024-12-20 02:17:17] Production.INFO: ProcessCDR(1,14059703,1,1,2) [2024-12-20 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059703', 'tblTempUsageDetail_20' ) start [2024-12-20 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059703', 'tblTempUsageDetail_20' ) end [2024-12-20 02:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:17:20] Production.INFO: ==21226== Releasing lock... [2024-12-20 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:17:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:18:05 [end_date_ymd] => 2024-12-20 02:18:05 [RateCDR] => 1 ) [2024-12-20 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:18:05' and `end` < '2024-12-20 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:18:17] Production.INFO: count ==168 [2024-12-20 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:18:05 - End Time 2024-12-20 02:18:05 [2024-12-20 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059708', 'tblTempUsageDetail_20' ) start [2024-12-20 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059708', 'tblTempUsageDetail_20' ) end [2024-12-20 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059708', 'tblTempVendorCDR_20' ) start [2024-12-20 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059708', 'tblTempVendorCDR_20' ) end [2024-12-20 02:18:17] Production.INFO: ProcessCDR(1,14059708,1,1,2) [2024-12-20 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059708', 'tblTempUsageDetail_20' ) start [2024-12-20 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059708', 'tblTempUsageDetail_20' ) end [2024-12-20 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:18:20] Production.INFO: ==21308== Releasing lock... [2024-12-20 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:18:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:19:04 [end_date_ymd] => 2024-12-20 02:19:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:19:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:19:18] Production.INFO: count ==168 [2024-12-20 02:19:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:19:04 - End Time 2024-12-20 02:19:04 [2024-12-20 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059713', 'tblTempUsageDetail_20' ) start [2024-12-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059713', 'tblTempUsageDetail_20' ) end [2024-12-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059713', 'tblTempVendorCDR_20' ) start [2024-12-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059713', 'tblTempVendorCDR_20' ) end [2024-12-20 02:19:18] Production.INFO: ProcessCDR(1,14059713,1,1,2) [2024-12-20 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059713', 'tblTempUsageDetail_20' ) start [2024-12-20 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059713', 'tblTempUsageDetail_20' ) end [2024-12-20 02:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:19:21] Production.INFO: ==21387== Releasing lock... [2024-12-20 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:19:21] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:20:05 [end_date_ymd] => 2024-12-20 02:20:05 [RateCDR] => 1 ) [2024-12-20 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:20:05' and `end` < '2024-12-20 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:20:17] Production.INFO: count ==174 [2024-12-20 02:20:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:20:05 - End Time 2024-12-20 02:20:05 [2024-12-20 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059719', 'tblTempUsageDetail_20' ) start [2024-12-20 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059719', 'tblTempUsageDetail_20' ) end [2024-12-20 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059719', 'tblTempVendorCDR_20' ) start [2024-12-20 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059719', 'tblTempVendorCDR_20' ) end [2024-12-20 02:20:17] Production.INFO: ProcessCDR(1,14059719,1,1,2) [2024-12-20 02:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059719', 'tblTempUsageDetail_20' ) start [2024-12-20 02:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059719', 'tblTempUsageDetail_20' ) end [2024-12-20 02:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:20:20] Production.INFO: ==21467== Releasing lock... [2024-12-20 02:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:20:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:21:05 [end_date_ymd] => 2024-12-20 02:21:05 [RateCDR] => 1 ) [2024-12-20 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:21:05' and `end` < '2024-12-20 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:21:17] Production.INFO: count ==169 [2024-12-20 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:21:05 - End Time 2024-12-20 02:21:05 [2024-12-20 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059724', 'tblTempUsageDetail_20' ) start [2024-12-20 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059724', 'tblTempUsageDetail_20' ) end [2024-12-20 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059724', 'tblTempVendorCDR_20' ) start [2024-12-20 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059724', 'tblTempVendorCDR_20' ) end [2024-12-20 02:21:17] Production.INFO: ProcessCDR(1,14059724,1,1,2) [2024-12-20 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059724', 'tblTempUsageDetail_20' ) start [2024-12-20 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059724', 'tblTempUsageDetail_20' ) end [2024-12-20 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:21:20] Production.INFO: ==21548== Releasing lock... [2024-12-20 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:21:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:22:04 [end_date_ymd] => 2024-12-20 02:22:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:22:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:22:17] Production.INFO: count ==169 [2024-12-20 02:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:22:04 - End Time 2024-12-20 02:22:04 [2024-12-20 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059729', 'tblTempUsageDetail_20' ) start [2024-12-20 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059729', 'tblTempUsageDetail_20' ) end [2024-12-20 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059729', 'tblTempVendorCDR_20' ) start [2024-12-20 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059729', 'tblTempVendorCDR_20' ) end [2024-12-20 02:22:17] Production.INFO: ProcessCDR(1,14059729,1,1,2) [2024-12-20 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059729', 'tblTempUsageDetail_20' ) start [2024-12-20 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059729', 'tblTempUsageDetail_20' ) end [2024-12-20 02:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:22:20] Production.INFO: ==21625== Releasing lock... [2024-12-20 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:22:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:23:05 [end_date_ymd] => 2024-12-20 02:23:05 [RateCDR] => 1 ) [2024-12-20 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:23:05' and `end` < '2024-12-20 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:23:17] Production.INFO: count ==169 [2024-12-20 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:23:05 - End Time 2024-12-20 02:23:05 [2024-12-20 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059734', 'tblTempUsageDetail_20' ) start [2024-12-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059734', 'tblTempUsageDetail_20' ) end [2024-12-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059734', 'tblTempVendorCDR_20' ) start [2024-12-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059734', 'tblTempVendorCDR_20' ) end [2024-12-20 02:23:17] Production.INFO: ProcessCDR(1,14059734,1,1,2) [2024-12-20 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059734', 'tblTempUsageDetail_20' ) start [2024-12-20 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059734', 'tblTempUsageDetail_20' ) end [2024-12-20 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:23:20] Production.INFO: ==21701== Releasing lock... [2024-12-20 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:23:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:24:05 [end_date_ymd] => 2024-12-20 02:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:24:17] Production.INFO: count ==168 [2024-12-20 02:24:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:24:05 - End Time 2024-12-20 02:24:05 [2024-12-20 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059739', 'tblTempUsageDetail_20' ) start [2024-12-20 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059739', 'tblTempUsageDetail_20' ) end [2024-12-20 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059739', 'tblTempVendorCDR_20' ) start [2024-12-20 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059739', 'tblTempVendorCDR_20' ) end [2024-12-20 02:24:17] Production.INFO: ProcessCDR(1,14059739,1,1,2) [2024-12-20 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059739', 'tblTempUsageDetail_20' ) start [2024-12-20 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059739', 'tblTempUsageDetail_20' ) end [2024-12-20 02:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:24:20] Production.INFO: ==21773== Releasing lock... [2024-12-20 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:24:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:25:05 [end_date_ymd] => 2024-12-20 02:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:25:17] Production.INFO: count ==166 [2024-12-20 02:25:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:25:05 - End Time 2024-12-20 02:25:05 [2024-12-20 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059744', 'tblTempUsageDetail_20' ) start [2024-12-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059744', 'tblTempUsageDetail_20' ) end [2024-12-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059744', 'tblTempVendorCDR_20' ) start [2024-12-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059744', 'tblTempVendorCDR_20' ) end [2024-12-20 02:25:17] Production.INFO: ProcessCDR(1,14059744,1,1,2) [2024-12-20 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059744', 'tblTempUsageDetail_20' ) start [2024-12-20 02:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059744', 'tblTempUsageDetail_20' ) end [2024-12-20 02:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:25:20] Production.INFO: ==21846== Releasing lock... [2024-12-20 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:25:20] Production.INFO: 29 MB #Memory Used# [2024-12-20 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:26:05 [end_date_ymd] => 2024-12-20 02:26:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:26:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:26:16] Production.INFO: count ==163 [2024-12-20 02:26:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:26:05 - End Time 2024-12-20 02:26:05 [2024-12-20 02:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059749', 'tblTempUsageDetail_20' ) start [2024-12-20 02:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059749', 'tblTempUsageDetail_20' ) end [2024-12-20 02:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059749', 'tblTempVendorCDR_20' ) start [2024-12-20 02:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059749', 'tblTempVendorCDR_20' ) end [2024-12-20 02:26:16] Production.INFO: ProcessCDR(1,14059749,1,1,2) [2024-12-20 02:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059749', 'tblTempUsageDetail_20' ) start [2024-12-20 02:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059749', 'tblTempUsageDetail_20' ) end [2024-12-20 02:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:26:19] Production.INFO: ==21923== Releasing lock... [2024-12-20 02:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:26:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:27:04 [end_date_ymd] => 2024-12-20 02:27:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:27:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:27:16] Production.INFO: count ==158 [2024-12-20 02:27:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:27:04 - End Time 2024-12-20 02:27:04 [2024-12-20 02:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059754', 'tblTempUsageDetail_20' ) start [2024-12-20 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059754', 'tblTempUsageDetail_20' ) end [2024-12-20 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059754', 'tblTempVendorCDR_20' ) start [2024-12-20 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059754', 'tblTempVendorCDR_20' ) end [2024-12-20 02:27:16] Production.INFO: ProcessCDR(1,14059754,1,1,2) [2024-12-20 02:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059754', 'tblTempUsageDetail_20' ) start [2024-12-20 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059754', 'tblTempUsageDetail_20' ) end [2024-12-20 02:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:27:19] Production.INFO: ==21999== Releasing lock... [2024-12-20 02:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:27:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:28:04 [end_date_ymd] => 2024-12-20 02:28:04 [RateCDR] => 1 ) [2024-12-20 02:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:28:04' and `end` < '2024-12-20 02:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:28:16] Production.INFO: count ==154 [2024-12-20 02:28:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:28:04 - End Time 2024-12-20 02:28:04 [2024-12-20 02:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059759', 'tblTempUsageDetail_20' ) start [2024-12-20 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059759', 'tblTempUsageDetail_20' ) end [2024-12-20 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059759', 'tblTempVendorCDR_20' ) start [2024-12-20 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059759', 'tblTempVendorCDR_20' ) end [2024-12-20 02:28:16] Production.INFO: ProcessCDR(1,14059759,1,1,2) [2024-12-20 02:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059759', 'tblTempUsageDetail_20' ) start [2024-12-20 02:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059759', 'tblTempUsageDetail_20' ) end [2024-12-20 02:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:28:19] Production.INFO: ==22071== Releasing lock... [2024-12-20 02:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:28:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:29:04 [end_date_ymd] => 2024-12-20 02:29:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:29:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:29:16] Production.INFO: count ==151 [2024-12-20 02:29:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:29:04 - End Time 2024-12-20 02:29:04 [2024-12-20 02:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059764', 'tblTempUsageDetail_20' ) start [2024-12-20 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059764', 'tblTempUsageDetail_20' ) end [2024-12-20 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059764', 'tblTempVendorCDR_20' ) start [2024-12-20 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059764', 'tblTempVendorCDR_20' ) end [2024-12-20 02:29:16] Production.INFO: ProcessCDR(1,14059764,1,1,2) [2024-12-20 02:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059764', 'tblTempUsageDetail_20' ) start [2024-12-20 02:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059764', 'tblTempUsageDetail_20' ) end [2024-12-20 02:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:29:19] Production.INFO: ==22183== Releasing lock... [2024-12-20 02:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:29:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:30:05 [end_date_ymd] => 2024-12-20 02:30:05 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:30:05' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:30:17] Production.INFO: count ==155 [2024-12-20 02:30:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:30:05 - End Time 2024-12-20 02:30:05 [2024-12-20 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059769', 'tblTempUsageDetail_20' ) start [2024-12-20 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059769', 'tblTempUsageDetail_20' ) end [2024-12-20 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059769', 'tblTempVendorCDR_20' ) start [2024-12-20 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059769', 'tblTempVendorCDR_20' ) end [2024-12-20 02:30:17] Production.INFO: ProcessCDR(1,14059769,1,1,2) [2024-12-20 02:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059769', 'tblTempUsageDetail_20' ) start [2024-12-20 02:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059769', 'tblTempUsageDetail_20' ) end [2024-12-20 02:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:30:20] Production.INFO: ==22256== Releasing lock... [2024-12-20 02:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:30:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:31:05 [end_date_ymd] => 2024-12-20 02:31:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:31:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:31:17] Production.INFO: count ==155 [2024-12-20 02:31:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:31:05 - End Time 2024-12-20 02:31:05 [2024-12-20 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059775', 'tblTempUsageDetail_20' ) start [2024-12-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059775', 'tblTempUsageDetail_20' ) end [2024-12-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059775', 'tblTempVendorCDR_20' ) start [2024-12-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059775', 'tblTempVendorCDR_20' ) end [2024-12-20 02:31:17] Production.INFO: ProcessCDR(1,14059775,1,1,2) [2024-12-20 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059775', 'tblTempUsageDetail_20' ) start [2024-12-20 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059775', 'tblTempUsageDetail_20' ) end [2024-12-20 02:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:31:20] Production.INFO: ==22329== Releasing lock... [2024-12-20 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:31:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:32:05 [end_date_ymd] => 2024-12-20 02:32:05 [RateCDR] => 1 ) [2024-12-20 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:32:05' and `end` < '2024-12-20 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:32:16] Production.INFO: count ==155 [2024-12-20 02:32:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:32:05 - End Time 2024-12-20 02:32:05 [2024-12-20 02:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059780', 'tblTempUsageDetail_20' ) start [2024-12-20 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059780', 'tblTempUsageDetail_20' ) end [2024-12-20 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059780', 'tblTempVendorCDR_20' ) start [2024-12-20 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059780', 'tblTempVendorCDR_20' ) end [2024-12-20 02:32:16] Production.INFO: ProcessCDR(1,14059780,1,1,2) [2024-12-20 02:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059780', 'tblTempUsageDetail_20' ) start [2024-12-20 02:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059780', 'tblTempUsageDetail_20' ) end [2024-12-20 02:32:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:32:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:32:19] Production.INFO: ==22398== Releasing lock... [2024-12-20 02:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:32:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:33:04 [end_date_ymd] => 2024-12-20 02:33:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:33:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:33:16] Production.INFO: count ==155 [2024-12-20 02:33:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:33:04 - End Time 2024-12-20 02:33:04 [2024-12-20 02:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059785', 'tblTempUsageDetail_20' ) start [2024-12-20 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059785', 'tblTempUsageDetail_20' ) end [2024-12-20 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059785', 'tblTempVendorCDR_20' ) start [2024-12-20 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059785', 'tblTempVendorCDR_20' ) end [2024-12-20 02:33:16] Production.INFO: ProcessCDR(1,14059785,1,1,2) [2024-12-20 02:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059785', 'tblTempUsageDetail_20' ) start [2024-12-20 02:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059785', 'tblTempUsageDetail_20' ) end [2024-12-20 02:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:33:19] Production.INFO: ==22472== Releasing lock... [2024-12-20 02:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:33:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:34:05 [end_date_ymd] => 2024-12-20 02:34:05 [RateCDR] => 1 ) [2024-12-20 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:34:05' and `end` < '2024-12-20 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:34:18] Production.INFO: count ==155 [2024-12-20 02:34:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:34:05 - End Time 2024-12-20 02:34:05 [2024-12-20 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059790', 'tblTempUsageDetail_20' ) start [2024-12-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059790', 'tblTempUsageDetail_20' ) end [2024-12-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059790', 'tblTempVendorCDR_20' ) start [2024-12-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059790', 'tblTempVendorCDR_20' ) end [2024-12-20 02:34:18] Production.INFO: ProcessCDR(1,14059790,1,1,2) [2024-12-20 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059790', 'tblTempUsageDetail_20' ) start [2024-12-20 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059790', 'tblTempUsageDetail_20' ) end [2024-12-20 02:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:34:21] Production.INFO: ==22549== Releasing lock... [2024-12-20 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:34:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:35:05 [end_date_ymd] => 2024-12-20 02:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:35:17] Production.INFO: count ==158 [2024-12-20 02:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:35:05 - End Time 2024-12-20 02:35:05 [2024-12-20 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059795', 'tblTempUsageDetail_20' ) start [2024-12-20 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059795', 'tblTempUsageDetail_20' ) end [2024-12-20 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059795', 'tblTempVendorCDR_20' ) start [2024-12-20 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059795', 'tblTempVendorCDR_20' ) end [2024-12-20 02:35:17] Production.INFO: ProcessCDR(1,14059795,1,1,2) [2024-12-20 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059795', 'tblTempUsageDetail_20' ) start [2024-12-20 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059795', 'tblTempUsageDetail_20' ) end [2024-12-20 02:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:35:20] Production.INFO: ==22622== Releasing lock... [2024-12-20 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:35:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:36:05 [end_date_ymd] => 2024-12-20 02:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:36:16] Production.INFO: count ==158 [2024-12-20 02:36:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:36:05 - End Time 2024-12-20 02:36:05 [2024-12-20 02:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059800', 'tblTempUsageDetail_20' ) start [2024-12-20 02:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059800', 'tblTempUsageDetail_20' ) end [2024-12-20 02:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059800', 'tblTempVendorCDR_20' ) start [2024-12-20 02:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059800', 'tblTempVendorCDR_20' ) end [2024-12-20 02:36:16] Production.INFO: ProcessCDR(1,14059800,1,1,2) [2024-12-20 02:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059800', 'tblTempUsageDetail_20' ) start [2024-12-20 02:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059800', 'tblTempUsageDetail_20' ) end [2024-12-20 02:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:36:19] Production.INFO: ==22699== Releasing lock... [2024-12-20 02:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:36:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:37:05 [end_date_ymd] => 2024-12-20 02:37:05 [RateCDR] => 1 ) [2024-12-20 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:37:05' and `end` < '2024-12-20 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:37:17] Production.INFO: count ==158 [2024-12-20 02:37:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:37:05 - End Time 2024-12-20 02:37:05 [2024-12-20 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059805', 'tblTempUsageDetail_20' ) start [2024-12-20 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059805', 'tblTempUsageDetail_20' ) end [2024-12-20 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059805', 'tblTempVendorCDR_20' ) start [2024-12-20 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059805', 'tblTempVendorCDR_20' ) end [2024-12-20 02:37:17] Production.INFO: ProcessCDR(1,14059805,1,1,2) [2024-12-20 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059805', 'tblTempUsageDetail_20' ) start [2024-12-20 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059805', 'tblTempUsageDetail_20' ) end [2024-12-20 02:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:37:20] Production.INFO: ==22775== Releasing lock... [2024-12-20 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:37:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:38:04 [end_date_ymd] => 2024-12-20 02:38:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:38:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:38:16] Production.INFO: count ==158 [2024-12-20 02:38:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:38:04 - End Time 2024-12-20 02:38:04 [2024-12-20 02:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059810', 'tblTempUsageDetail_20' ) start [2024-12-20 02:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059810', 'tblTempUsageDetail_20' ) end [2024-12-20 02:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059810', 'tblTempVendorCDR_20' ) start [2024-12-20 02:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059810', 'tblTempVendorCDR_20' ) end [2024-12-20 02:38:16] Production.INFO: ProcessCDR(1,14059810,1,1,2) [2024-12-20 02:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059810', 'tblTempUsageDetail_20' ) start [2024-12-20 02:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059810', 'tblTempUsageDetail_20' ) end [2024-12-20 02:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:38:19] Production.INFO: ==22852== Releasing lock... [2024-12-20 02:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:38:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:39:05 [end_date_ymd] => 2024-12-20 02:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:39:16] Production.INFO: count ==158 [2024-12-20 02:39:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:39:05 - End Time 2024-12-20 02:39:05 [2024-12-20 02:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059815', 'tblTempUsageDetail_20' ) start [2024-12-20 02:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059815', 'tblTempUsageDetail_20' ) end [2024-12-20 02:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059815', 'tblTempVendorCDR_20' ) start [2024-12-20 02:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059815', 'tblTempVendorCDR_20' ) end [2024-12-20 02:39:16] Production.INFO: ProcessCDR(1,14059815,1,1,2) [2024-12-20 02:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059815', 'tblTempUsageDetail_20' ) start [2024-12-20 02:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059815', 'tblTempUsageDetail_20' ) end [2024-12-20 02:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:39:19] Production.INFO: ==22924== Releasing lock... [2024-12-20 02:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:39:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:40:05 [end_date_ymd] => 2024-12-20 02:40:05 [RateCDR] => 1 ) [2024-12-20 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:40:05' and `end` < '2024-12-20 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:40:17] Production.INFO: count ==164 [2024-12-20 02:40:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:40:05 - End Time 2024-12-20 02:40:05 [2024-12-20 02:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059821', 'tblTempUsageDetail_20' ) start [2024-12-20 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059821', 'tblTempUsageDetail_20' ) end [2024-12-20 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059821', 'tblTempVendorCDR_20' ) start [2024-12-20 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059821', 'tblTempVendorCDR_20' ) end [2024-12-20 02:40:17] Production.INFO: ProcessCDR(1,14059821,1,1,2) [2024-12-20 02:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059821', 'tblTempUsageDetail_20' ) start [2024-12-20 02:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059821', 'tblTempUsageDetail_20' ) end [2024-12-20 02:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:40:20] Production.INFO: ==22997== Releasing lock... [2024-12-20 02:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:40:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:41:05 [end_date_ymd] => 2024-12-20 02:41:05 [RateCDR] => 1 ) [2024-12-20 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:41:05' and `end` < '2024-12-20 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:41:17] Production.INFO: count ==165 [2024-12-20 02:41:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:41:05 - End Time 2024-12-20 02:41:05 [2024-12-20 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059826', 'tblTempUsageDetail_20' ) start [2024-12-20 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059826', 'tblTempUsageDetail_20' ) end [2024-12-20 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059826', 'tblTempVendorCDR_20' ) start [2024-12-20 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059826', 'tblTempVendorCDR_20' ) end [2024-12-20 02:41:17] Production.INFO: ProcessCDR(1,14059826,1,1,2) [2024-12-20 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059826', 'tblTempUsageDetail_20' ) start [2024-12-20 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059826', 'tblTempUsageDetail_20' ) end [2024-12-20 02:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:41:20] Production.INFO: ==23082== Releasing lock... [2024-12-20 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:41:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:42:05 [end_date_ymd] => 2024-12-20 02:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:42:18] Production.INFO: count ==165 [2024-12-20 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:42:05 - End Time 2024-12-20 02:42:05 [2024-12-20 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059831', 'tblTempUsageDetail_20' ) start [2024-12-20 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059831', 'tblTempUsageDetail_20' ) end [2024-12-20 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059831', 'tblTempVendorCDR_20' ) start [2024-12-20 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059831', 'tblTempVendorCDR_20' ) end [2024-12-20 02:42:18] Production.INFO: ProcessCDR(1,14059831,1,1,2) [2024-12-20 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059831', 'tblTempUsageDetail_20' ) start [2024-12-20 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059831', 'tblTempUsageDetail_20' ) end [2024-12-20 02:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:42:21] Production.INFO: ==23162== Releasing lock... [2024-12-20 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:42:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:43:04 [end_date_ymd] => 2024-12-20 02:43:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:43:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:43:17] Production.INFO: count ==164 [2024-12-20 02:43:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:43:04 - End Time 2024-12-20 02:43:04 [2024-12-20 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059836', 'tblTempUsageDetail_20' ) start [2024-12-20 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059836', 'tblTempUsageDetail_20' ) end [2024-12-20 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059836', 'tblTempVendorCDR_20' ) start [2024-12-20 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059836', 'tblTempVendorCDR_20' ) end [2024-12-20 02:43:17] Production.INFO: ProcessCDR(1,14059836,1,1,2) [2024-12-20 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059836', 'tblTempUsageDetail_20' ) start [2024-12-20 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059836', 'tblTempUsageDetail_20' ) end [2024-12-20 02:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:43:20] Production.INFO: ==23241== Releasing lock... [2024-12-20 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:43:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:44:04 [end_date_ymd] => 2024-12-20 02:44:04 [RateCDR] => 1 ) [2024-12-20 02:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:44:04' and `end` < '2024-12-20 02:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:44:17] Production.INFO: count ==167 [2024-12-20 02:44:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:44:04 - End Time 2024-12-20 02:44:04 [2024-12-20 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059841', 'tblTempUsageDetail_20' ) start [2024-12-20 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059841', 'tblTempUsageDetail_20' ) end [2024-12-20 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059841', 'tblTempVendorCDR_20' ) start [2024-12-20 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059841', 'tblTempVendorCDR_20' ) end [2024-12-20 02:44:17] Production.INFO: ProcessCDR(1,14059841,1,1,2) [2024-12-20 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059841', 'tblTempUsageDetail_20' ) start [2024-12-20 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059841', 'tblTempUsageDetail_20' ) end [2024-12-20 02:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:44:20] Production.INFO: ==23322== Releasing lock... [2024-12-20 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:44:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:45:05 [end_date_ymd] => 2024-12-20 02:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:45:18] Production.INFO: count ==166 [2024-12-20 02:45:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:45:05 - End Time 2024-12-20 02:45:05 [2024-12-20 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059846', 'tblTempUsageDetail_20' ) start [2024-12-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059846', 'tblTempUsageDetail_20' ) end [2024-12-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059846', 'tblTempVendorCDR_20' ) start [2024-12-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059846', 'tblTempVendorCDR_20' ) end [2024-12-20 02:45:18] Production.INFO: ProcessCDR(1,14059846,1,1,2) [2024-12-20 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059846', 'tblTempUsageDetail_20' ) start [2024-12-20 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059846', 'tblTempUsageDetail_20' ) end [2024-12-20 02:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:45:21] Production.INFO: ==23439== Releasing lock... [2024-12-20 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:45:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:46:04 [end_date_ymd] => 2024-12-20 02:46:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:46:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:46:16] Production.INFO: count ==166 [2024-12-20 02:46:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:46:04 - End Time 2024-12-20 02:46:04 [2024-12-20 02:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059851', 'tblTempUsageDetail_20' ) start [2024-12-20 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059851', 'tblTempUsageDetail_20' ) end [2024-12-20 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059851', 'tblTempVendorCDR_20' ) start [2024-12-20 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059851', 'tblTempVendorCDR_20' ) end [2024-12-20 02:46:16] Production.INFO: ProcessCDR(1,14059851,1,1,2) [2024-12-20 02:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059851', 'tblTempUsageDetail_20' ) start [2024-12-20 02:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059851', 'tblTempUsageDetail_20' ) end [2024-12-20 02:46:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:46:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:46:19] Production.INFO: ==23521== Releasing lock... [2024-12-20 02:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:46:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:47:05 [end_date_ymd] => 2024-12-20 02:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:47:17] Production.INFO: count ==165 [2024-12-20 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:47:05 - End Time 2024-12-20 02:47:05 [2024-12-20 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059856', 'tblTempUsageDetail_20' ) start [2024-12-20 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059856', 'tblTempUsageDetail_20' ) end [2024-12-20 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059856', 'tblTempVendorCDR_20' ) start [2024-12-20 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059856', 'tblTempVendorCDR_20' ) end [2024-12-20 02:47:17] Production.INFO: ProcessCDR(1,14059856,1,1,2) [2024-12-20 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059856', 'tblTempUsageDetail_20' ) start [2024-12-20 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059856', 'tblTempUsageDetail_20' ) end [2024-12-20 02:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:47:20] Production.INFO: ==23604== Releasing lock... [2024-12-20 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:47:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:48:04 [end_date_ymd] => 2024-12-20 02:48:04 [RateCDR] => 1 ) [2024-12-20 02:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:48:04' and `end` < '2024-12-20 02:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:48:16] Production.INFO: count ==164 [2024-12-20 02:48:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:48:04 - End Time 2024-12-20 02:48:04 [2024-12-20 02:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059861', 'tblTempUsageDetail_20' ) start [2024-12-20 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059861', 'tblTempUsageDetail_20' ) end [2024-12-20 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059861', 'tblTempVendorCDR_20' ) start [2024-12-20 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059861', 'tblTempVendorCDR_20' ) end [2024-12-20 02:48:16] Production.INFO: ProcessCDR(1,14059861,1,1,2) [2024-12-20 02:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059861', 'tblTempUsageDetail_20' ) start [2024-12-20 02:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059861', 'tblTempUsageDetail_20' ) end [2024-12-20 02:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:48:19] Production.INFO: ==23685== Releasing lock... [2024-12-20 02:48:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:48:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:49:04 [end_date_ymd] => 2024-12-20 02:49:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:49:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:49:18] Production.INFO: count ==164 [2024-12-20 02:49:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:49:04 - End Time 2024-12-20 02:49:04 [2024-12-20 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059866', 'tblTempUsageDetail_20' ) start [2024-12-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059866', 'tblTempUsageDetail_20' ) end [2024-12-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059866', 'tblTempVendorCDR_20' ) start [2024-12-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059866', 'tblTempVendorCDR_20' ) end [2024-12-20 02:49:18] Production.INFO: ProcessCDR(1,14059866,1,1,2) [2024-12-20 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059866', 'tblTempUsageDetail_20' ) start [2024-12-20 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059866', 'tblTempUsageDetail_20' ) end [2024-12-20 02:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:49:21] Production.INFO: ==23763== Releasing lock... [2024-12-20 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:49:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:50:05 [end_date_ymd] => 2024-12-20 02:50:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:50:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:50:18] Production.INFO: count ==167 [2024-12-20 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:50:05 - End Time 2024-12-20 02:50:05 [2024-12-20 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059871', 'tblTempUsageDetail_20' ) start [2024-12-20 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059871', 'tblTempUsageDetail_20' ) end [2024-12-20 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059871', 'tblTempVendorCDR_20' ) start [2024-12-20 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059871', 'tblTempVendorCDR_20' ) end [2024-12-20 02:50:18] Production.INFO: ProcessCDR(1,14059871,1,1,2) [2024-12-20 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059871', 'tblTempUsageDetail_20' ) start [2024-12-20 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059871', 'tblTempUsageDetail_20' ) end [2024-12-20 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:50:21] Production.INFO: ==23845== Releasing lock... [2024-12-20 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:50:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:51:04 [end_date_ymd] => 2024-12-20 02:51:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:51:04' and `end` < '2024-12-20 02:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:51:17] Production.INFO: count ==166 [2024-12-20 02:51:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:51:04 - End Time 2024-12-20 02:51:04 [2024-12-20 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059877', 'tblTempUsageDetail_20' ) start [2024-12-20 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059877', 'tblTempUsageDetail_20' ) end [2024-12-20 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059877', 'tblTempVendorCDR_20' ) start [2024-12-20 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059877', 'tblTempVendorCDR_20' ) end [2024-12-20 02:51:17] Production.INFO: ProcessCDR(1,14059877,1,1,2) [2024-12-20 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059877', 'tblTempUsageDetail_20' ) start [2024-12-20 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059877', 'tblTempUsageDetail_20' ) end [2024-12-20 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:51:20] Production.INFO: ==23930== Releasing lock... [2024-12-20 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:51:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:52:04 [end_date_ymd] => 2024-12-20 02:52:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:52:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:52:16] Production.INFO: count ==165 [2024-12-20 02:52:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:52:04 - End Time 2024-12-20 02:52:04 [2024-12-20 02:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059881', 'tblTempUsageDetail_20' ) start [2024-12-20 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059881', 'tblTempUsageDetail_20' ) end [2024-12-20 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059881', 'tblTempVendorCDR_20' ) start [2024-12-20 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059881', 'tblTempVendorCDR_20' ) end [2024-12-20 02:52:16] Production.INFO: ProcessCDR(1,14059881,1,1,2) [2024-12-20 02:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059881', 'tblTempUsageDetail_20' ) start [2024-12-20 02:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059881', 'tblTempUsageDetail_20' ) end [2024-12-20 02:52:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:52:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:52:19] Production.INFO: ==24021== Releasing lock... [2024-12-20 02:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:52:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:53:04 [end_date_ymd] => 2024-12-20 02:53:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:53:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:53:16] Production.INFO: count ==165 [2024-12-20 02:53:16] Production.ERROR: pbx CDR StartTime 2024-12-19 23:53:04 - End Time 2024-12-20 02:53:04 [2024-12-20 02:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059887', 'tblTempUsageDetail_20' ) start [2024-12-20 02:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059887', 'tblTempUsageDetail_20' ) end [2024-12-20 02:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059887', 'tblTempVendorCDR_20' ) start [2024-12-20 02:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059887', 'tblTempVendorCDR_20' ) end [2024-12-20 02:53:16] Production.INFO: ProcessCDR(1,14059887,1,1,2) [2024-12-20 02:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059887', 'tblTempUsageDetail_20' ) start [2024-12-20 02:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059887', 'tblTempUsageDetail_20' ) end [2024-12-20 02:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:53:19] Production.INFO: ==24111== Releasing lock... [2024-12-20 02:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:53:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:54:05 [end_date_ymd] => 2024-12-20 02:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:54:17] Production.INFO: count ==165 [2024-12-20 02:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:54:05 - End Time 2024-12-20 02:54:05 [2024-12-20 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059892', 'tblTempUsageDetail_20' ) start [2024-12-20 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059892', 'tblTempUsageDetail_20' ) end [2024-12-20 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059892', 'tblTempVendorCDR_20' ) start [2024-12-20 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059892', 'tblTempVendorCDR_20' ) end [2024-12-20 02:54:17] Production.INFO: ProcessCDR(1,14059892,1,1,2) [2024-12-20 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059892', 'tblTempUsageDetail_20' ) start [2024-12-20 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059892', 'tblTempUsageDetail_20' ) end [2024-12-20 02:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:54:20] Production.INFO: ==24218== Releasing lock... [2024-12-20 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:54:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:55:05 [end_date_ymd] => 2024-12-20 02:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:55:17] Production.INFO: count ==165 [2024-12-20 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:55:05 - End Time 2024-12-20 02:55:05 [2024-12-20 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059897', 'tblTempUsageDetail_20' ) start [2024-12-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059897', 'tblTempUsageDetail_20' ) end [2024-12-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059897', 'tblTempVendorCDR_20' ) start [2024-12-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059897', 'tblTempVendorCDR_20' ) end [2024-12-20 02:55:17] Production.INFO: ProcessCDR(1,14059897,1,1,2) [2024-12-20 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059897', 'tblTempUsageDetail_20' ) start [2024-12-20 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059897', 'tblTempUsageDetail_20' ) end [2024-12-20 02:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:55:20] Production.INFO: ==24329== Releasing lock... [2024-12-20 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:55:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:56:05 [end_date_ymd] => 2024-12-20 02:56:05 [RateCDR] => 1 ) [2024-12-20 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:56:05' and `end` < '2024-12-20 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:56:17] Production.INFO: count ==165 [2024-12-20 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:56:05 - End Time 2024-12-20 02:56:05 [2024-12-20 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059902', 'tblTempUsageDetail_20' ) start [2024-12-20 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059902', 'tblTempUsageDetail_20' ) end [2024-12-20 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059902', 'tblTempVendorCDR_20' ) start [2024-12-20 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059902', 'tblTempVendorCDR_20' ) end [2024-12-20 02:56:17] Production.INFO: ProcessCDR(1,14059902,1,1,2) [2024-12-20 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059902', 'tblTempUsageDetail_20' ) start [2024-12-20 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059902', 'tblTempUsageDetail_20' ) end [2024-12-20 02:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:56:20] Production.INFO: ==24437== Releasing lock... [2024-12-20 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:56:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:57:05 [end_date_ymd] => 2024-12-20 02:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-19 23:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 02:57:17] Production.INFO: count ==165 [2024-12-20 02:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:57:05 - End Time 2024-12-20 02:57:05 [2024-12-20 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059907', 'tblTempUsageDetail_20' ) start [2024-12-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059907', 'tblTempUsageDetail_20' ) end [2024-12-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059907', 'tblTempVendorCDR_20' ) start [2024-12-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059907', 'tblTempVendorCDR_20' ) end [2024-12-20 02:57:17] Production.INFO: ProcessCDR(1,14059907,1,1,2) [2024-12-20 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059907', 'tblTempUsageDetail_20' ) start [2024-12-20 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059907', 'tblTempUsageDetail_20' ) end [2024-12-20 02:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:57:20] Production.INFO: ==24553== Releasing lock... [2024-12-20 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:57:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:58:04 [end_date_ymd] => 2024-12-20 02:58:04 [RateCDR] => 1 ) [2024-12-20 02: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` >= '2024-12-19 23:58:04' and `end` < '2024-12-20 02: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 ,'') [2024-12-20 02:58:18] Production.INFO: count ==160 [2024-12-20 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-19 23:58:04 - End Time 2024-12-20 02:58:04 [2024-12-20 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059912', 'tblTempUsageDetail_20' ) start [2024-12-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059912', 'tblTempUsageDetail_20' ) end [2024-12-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059912', 'tblTempVendorCDR_20' ) start [2024-12-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059912', 'tblTempVendorCDR_20' ) end [2024-12-20 02:58:18] Production.INFO: ProcessCDR(1,14059912,1,1,2) [2024-12-20 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059912', 'tblTempUsageDetail_20' ) start [2024-12-20 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059912', 'tblTempUsageDetail_20' ) end [2024-12-20 02:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:58:22] Production.INFO: ==24659== Releasing lock... [2024-12-20 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:58:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 23:59:05 [end_date_ymd] => 2024-12-20 02:59:05 [RateCDR] => 1 ) [2024-12-20 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 23:59:05' and `end` < '2024-12-20 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 02:59:17] Production.INFO: count ==155 [2024-12-20 02:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 23:59:05 - End Time 2024-12-20 02:59:05 [2024-12-20 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059917', 'tblTempUsageDetail_20' ) start [2024-12-20 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059917', 'tblTempUsageDetail_20' ) end [2024-12-20 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059917', 'tblTempVendorCDR_20' ) start [2024-12-20 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059917', 'tblTempVendorCDR_20' ) end [2024-12-20 02:59:17] Production.INFO: ProcessCDR(1,14059917,1,1,2) [2024-12-20 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 02:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 02:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059917', 'tblTempUsageDetail_20' ) start [2024-12-20 02:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059917', 'tblTempUsageDetail_20' ) end [2024-12-20 02:59:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 02:59:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 02:59:20] Production.INFO: ==24775== Releasing lock... [2024-12-20 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 02:59:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:00:05 [end_date_ymd] => 2024-12-20 03:00:05 [RateCDR] => 1 ) [2024-12-20 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:00:05' and `end` < '2024-12-20 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:00:17] Production.INFO: count ==154 [2024-12-20 03:00:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:00:05 - End Time 2024-12-20 03:00:05 [2024-12-20 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059922', 'tblTempUsageDetail_20' ) start [2024-12-20 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059922', 'tblTempUsageDetail_20' ) end [2024-12-20 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059922', 'tblTempVendorCDR_20' ) start [2024-12-20 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059922', 'tblTempVendorCDR_20' ) end [2024-12-20 03:00:17] Production.INFO: ProcessCDR(1,14059922,1,1,2) [2024-12-20 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059922', 'tblTempUsageDetail_20' ) start [2024-12-20 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059922', 'tblTempUsageDetail_20' ) end [2024-12-20 03:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:00:20] Production.INFO: ==24893== Releasing lock... [2024-12-20 03:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:00:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:01:04 [end_date_ymd] => 2024-12-20 03:01:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:01:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:01:17] Production.INFO: count ==154 [2024-12-20 03:01:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:01:04 - End Time 2024-12-20 03:01:04 [2024-12-20 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059928', 'tblTempUsageDetail_20' ) start [2024-12-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059928', 'tblTempUsageDetail_20' ) end [2024-12-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059928', 'tblTempVendorCDR_20' ) start [2024-12-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059928', 'tblTempVendorCDR_20' ) end [2024-12-20 03:01:17] Production.INFO: ProcessCDR(1,14059928,1,1,2) [2024-12-20 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059928', 'tblTempUsageDetail_20' ) start [2024-12-20 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059928', 'tblTempUsageDetail_20' ) end [2024-12-20 03:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:01:20] Production.INFO: ==25055== Releasing lock... [2024-12-20 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:01:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:02:05 [end_date_ymd] => 2024-12-20 03:02:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:02:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:02:19] Production.INFO: count ==153 [2024-12-20 03:02:19] Production.ERROR: pbx CDR StartTime 2024-12-20 00:02:05 - End Time 2024-12-20 03:02:05 [2024-12-20 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059933', 'tblTempUsageDetail_20' ) start [2024-12-20 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059933', 'tblTempUsageDetail_20' ) end [2024-12-20 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059933', 'tblTempVendorCDR_20' ) start [2024-12-20 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059933', 'tblTempVendorCDR_20' ) end [2024-12-20 03:02:19] Production.INFO: ProcessCDR(1,14059933,1,1,2) [2024-12-20 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059933', 'tblTempUsageDetail_20' ) start [2024-12-20 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059933', 'tblTempUsageDetail_20' ) end [2024-12-20 03:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:02:22] Production.INFO: ==25249== Releasing lock... [2024-12-20 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:02:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:03:05 [end_date_ymd] => 2024-12-20 03:03:05 [RateCDR] => 1 ) [2024-12-20 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:03:05' and `end` < '2024-12-20 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:03:16] Production.INFO: count ==153 [2024-12-20 03:03:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:03:05 - End Time 2024-12-20 03:03:05 [2024-12-20 03:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059938', 'tblTempUsageDetail_20' ) start [2024-12-20 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059938', 'tblTempUsageDetail_20' ) end [2024-12-20 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059938', 'tblTempVendorCDR_20' ) start [2024-12-20 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059938', 'tblTempVendorCDR_20' ) end [2024-12-20 03:03:16] Production.INFO: ProcessCDR(1,14059938,1,1,2) [2024-12-20 03:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059938', 'tblTempUsageDetail_20' ) start [2024-12-20 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059938', 'tblTempUsageDetail_20' ) end [2024-12-20 03:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:03:21] Production.INFO: ==25350== Releasing lock... [2024-12-20 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:03:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:04:05 [end_date_ymd] => 2024-12-20 03:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:04:18] Production.INFO: count ==152 [2024-12-20 03:04:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:04:05 - End Time 2024-12-20 03:04:05 [2024-12-20 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059943', 'tblTempUsageDetail_20' ) start [2024-12-20 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059943', 'tblTempUsageDetail_20' ) end [2024-12-20 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059943', 'tblTempVendorCDR_20' ) start [2024-12-20 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059943', 'tblTempVendorCDR_20' ) end [2024-12-20 03:04:18] Production.INFO: ProcessCDR(1,14059943,1,1,2) [2024-12-20 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059943', 'tblTempUsageDetail_20' ) start [2024-12-20 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059943', 'tblTempUsageDetail_20' ) end [2024-12-20 03:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:04:21] Production.INFO: ==25461== Releasing lock... [2024-12-20 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:04:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:05:05 [end_date_ymd] => 2024-12-20 03:05:05 [RateCDR] => 1 ) [2024-12-20 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:05:05' and `end` < '2024-12-20 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:05:17] Production.INFO: count ==152 [2024-12-20 03:05:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:05:05 - End Time 2024-12-20 03:05:05 [2024-12-20 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059948', 'tblTempUsageDetail_20' ) start [2024-12-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059948', 'tblTempUsageDetail_20' ) end [2024-12-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059948', 'tblTempVendorCDR_20' ) start [2024-12-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059948', 'tblTempVendorCDR_20' ) end [2024-12-20 03:05:17] Production.INFO: ProcessCDR(1,14059948,1,1,2) [2024-12-20 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059948', 'tblTempUsageDetail_20' ) start [2024-12-20 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059948', 'tblTempUsageDetail_20' ) end [2024-12-20 03:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:05:20] Production.INFO: ==25568== Releasing lock... [2024-12-20 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:05:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:06:05 [end_date_ymd] => 2024-12-20 03:06:05 [RateCDR] => 1 ) [2024-12-20 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:06:05' and `end` < '2024-12-20 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:06:17] Production.INFO: count ==152 [2024-12-20 03:06:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:06:05 - End Time 2024-12-20 03:06:05 [2024-12-20 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059953', 'tblTempUsageDetail_20' ) start [2024-12-20 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059953', 'tblTempUsageDetail_20' ) end [2024-12-20 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059953', 'tblTempVendorCDR_20' ) start [2024-12-20 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059953', 'tblTempVendorCDR_20' ) end [2024-12-20 03:06:17] Production.INFO: ProcessCDR(1,14059953,1,1,2) [2024-12-20 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059953', 'tblTempUsageDetail_20' ) start [2024-12-20 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059953', 'tblTempUsageDetail_20' ) end [2024-12-20 03:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:06:21] Production.INFO: ==25754== Releasing lock... [2024-12-20 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:06:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:07:04 [end_date_ymd] => 2024-12-20 03:07:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:07:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:07:16] Production.INFO: count ==152 [2024-12-20 03:07:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:07:04 - End Time 2024-12-20 03:07:04 [2024-12-20 03:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059958', 'tblTempUsageDetail_20' ) start [2024-12-20 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059958', 'tblTempUsageDetail_20' ) end [2024-12-20 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059958', 'tblTempVendorCDR_20' ) start [2024-12-20 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059958', 'tblTempVendorCDR_20' ) end [2024-12-20 03:07:16] Production.INFO: ProcessCDR(1,14059958,1,1,2) [2024-12-20 03:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059958', 'tblTempUsageDetail_20' ) start [2024-12-20 03:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059958', 'tblTempUsageDetail_20' ) end [2024-12-20 03:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:07:19] Production.INFO: ==25859== Releasing lock... [2024-12-20 03:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:07:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:08:05 [end_date_ymd] => 2024-12-20 03:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:08:18] Production.INFO: count ==152 [2024-12-20 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:08:05 - End Time 2024-12-20 03:08:05 [2024-12-20 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059963', 'tblTempUsageDetail_20' ) start [2024-12-20 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059963', 'tblTempUsageDetail_20' ) end [2024-12-20 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059963', 'tblTempVendorCDR_20' ) start [2024-12-20 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059963', 'tblTempVendorCDR_20' ) end [2024-12-20 03:08:18] Production.INFO: ProcessCDR(1,14059963,1,1,2) [2024-12-20 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059963', 'tblTempUsageDetail_20' ) start [2024-12-20 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059963', 'tblTempUsageDetail_20' ) end [2024-12-20 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:08:21] Production.INFO: ==25963== Releasing lock... [2024-12-20 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:08:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:09:04 [end_date_ymd] => 2024-12-20 03:09:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:09:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:09:16] Production.INFO: count ==152 [2024-12-20 03:09:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:09:04 - End Time 2024-12-20 03:09:04 [2024-12-20 03:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059968', 'tblTempUsageDetail_20' ) start [2024-12-20 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059968', 'tblTempUsageDetail_20' ) end [2024-12-20 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059968', 'tblTempVendorCDR_20' ) start [2024-12-20 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059968', 'tblTempVendorCDR_20' ) end [2024-12-20 03:09:16] Production.INFO: ProcessCDR(1,14059968,1,1,2) [2024-12-20 03:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059968', 'tblTempUsageDetail_20' ) start [2024-12-20 03:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059968', 'tblTempUsageDetail_20' ) end [2024-12-20 03:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:09:19] Production.INFO: ==26149== Releasing lock... [2024-12-20 03:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:09:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:10:06 [end_date_ymd] => 2024-12-20 03:10:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:10:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:10:18] Production.INFO: count ==154 [2024-12-20 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:10:06 - End Time 2024-12-20 03:10:06 [2024-12-20 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059974', 'tblTempUsageDetail_20' ) start [2024-12-20 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059974', 'tblTempUsageDetail_20' ) end [2024-12-20 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059974', 'tblTempVendorCDR_20' ) start [2024-12-20 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059974', 'tblTempVendorCDR_20' ) end [2024-12-20 03:10:18] Production.INFO: ProcessCDR(1,14059974,1,1,2) [2024-12-20 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059974', 'tblTempUsageDetail_20' ) start [2024-12-20 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059974', 'tblTempUsageDetail_20' ) end [2024-12-20 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:10:21] Production.INFO: ==26260== Releasing lock... [2024-12-20 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:10:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:11:05 [end_date_ymd] => 2024-12-20 03:11:05 [RateCDR] => 1 ) [2024-12-20 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:11:05' and `end` < '2024-12-20 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:11:16] Production.INFO: count ==154 [2024-12-20 03:11:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:11:05 - End Time 2024-12-20 03:11:05 [2024-12-20 03:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059979', 'tblTempUsageDetail_20' ) start [2024-12-20 03:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059979', 'tblTempUsageDetail_20' ) end [2024-12-20 03:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059979', 'tblTempVendorCDR_20' ) start [2024-12-20 03:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059979', 'tblTempVendorCDR_20' ) end [2024-12-20 03:11:16] Production.INFO: ProcessCDR(1,14059979,1,1,2) [2024-12-20 03:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059979', 'tblTempUsageDetail_20' ) start [2024-12-20 03:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059979', 'tblTempUsageDetail_20' ) end [2024-12-20 03:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:11:19] Production.INFO: ==26356== Releasing lock... [2024-12-20 03:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:11:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:12:05 [end_date_ymd] => 2024-12-20 03:12:05 [RateCDR] => 1 ) [2024-12-20 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:12:05' and `end` < '2024-12-20 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:12:17] Production.INFO: count ==154 [2024-12-20 03:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:12:05 - End Time 2024-12-20 03:12:05 [2024-12-20 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059984', 'tblTempUsageDetail_20' ) start [2024-12-20 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059984', 'tblTempUsageDetail_20' ) end [2024-12-20 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059984', 'tblTempVendorCDR_20' ) start [2024-12-20 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059984', 'tblTempVendorCDR_20' ) end [2024-12-20 03:12:17] Production.INFO: ProcessCDR(1,14059984,1,1,2) [2024-12-20 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059984', 'tblTempUsageDetail_20' ) start [2024-12-20 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059984', 'tblTempUsageDetail_20' ) end [2024-12-20 03:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:12:20] Production.INFO: ==26441== Releasing lock... [2024-12-20 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:12:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:13:04 [end_date_ymd] => 2024-12-20 03:13:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:13:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:13:17] Production.INFO: count ==154 [2024-12-20 03:13:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:13:04 - End Time 2024-12-20 03:13:04 [2024-12-20 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059989', 'tblTempUsageDetail_20' ) start [2024-12-20 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059989', 'tblTempUsageDetail_20' ) end [2024-12-20 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059989', 'tblTempVendorCDR_20' ) start [2024-12-20 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059989', 'tblTempVendorCDR_20' ) end [2024-12-20 03:13:17] Production.INFO: ProcessCDR(1,14059989,1,1,2) [2024-12-20 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059989', 'tblTempUsageDetail_20' ) start [2024-12-20 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059989', 'tblTempUsageDetail_20' ) end [2024-12-20 03:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:13:20] Production.INFO: ==26595== Releasing lock... [2024-12-20 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:13:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:14:05 [end_date_ymd] => 2024-12-20 03:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:14:16] Production.INFO: count ==154 [2024-12-20 03:14:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:14:05 - End Time 2024-12-20 03:14:05 [2024-12-20 03:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059994', 'tblTempUsageDetail_20' ) start [2024-12-20 03:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059994', 'tblTempUsageDetail_20' ) end [2024-12-20 03:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059994', 'tblTempVendorCDR_20' ) start [2024-12-20 03:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059994', 'tblTempVendorCDR_20' ) end [2024-12-20 03:14:16] Production.INFO: ProcessCDR(1,14059994,1,1,2) [2024-12-20 03:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059994', 'tblTempUsageDetail_20' ) start [2024-12-20 03:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059994', 'tblTempUsageDetail_20' ) end [2024-12-20 03:14:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:14:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:14:19] Production.INFO: ==26672== Releasing lock... [2024-12-20 03:14:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:14:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:15:05 [end_date_ymd] => 2024-12-20 03:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:15:17] Production.INFO: count ==155 [2024-12-20 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:15:05 - End Time 2024-12-20 03:15:05 [2024-12-20 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059999', 'tblTempUsageDetail_20' ) start [2024-12-20 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14059999', 'tblTempUsageDetail_20' ) end [2024-12-20 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059999', 'tblTempVendorCDR_20' ) start [2024-12-20 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14059999', 'tblTempVendorCDR_20' ) end [2024-12-20 03:15:18] Production.INFO: ProcessCDR(1,14059999,1,1,2) [2024-12-20 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14059999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14059999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14059999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14059999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059999', 'tblTempUsageDetail_20' ) start [2024-12-20 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14059999', 'tblTempUsageDetail_20' ) end [2024-12-20 03:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:15:22] Production.INFO: ==26746== Releasing lock... [2024-12-20 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:15:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:16:05 [end_date_ymd] => 2024-12-20 03:16:05 [RateCDR] => 1 ) [2024-12-20 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:16:05' and `end` < '2024-12-20 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:16:18] Production.INFO: count ==156 [2024-12-20 03:16:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:16:05 - End Time 2024-12-20 03:16:05 [2024-12-20 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060004', 'tblTempUsageDetail_20' ) start [2024-12-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060004', 'tblTempUsageDetail_20' ) end [2024-12-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060004', 'tblTempVendorCDR_20' ) start [2024-12-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060004', 'tblTempVendorCDR_20' ) end [2024-12-20 03:16:18] Production.INFO: ProcessCDR(1,14060004,1,1,2) [2024-12-20 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060004', 'tblTempUsageDetail_20' ) start [2024-12-20 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060004', 'tblTempUsageDetail_20' ) end [2024-12-20 03:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:16:22] Production.INFO: ==26859== Releasing lock... [2024-12-20 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:16:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:17:05 [end_date_ymd] => 2024-12-20 03:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:17:17] Production.INFO: count ==156 [2024-12-20 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:17:05 - End Time 2024-12-20 03:17:05 [2024-12-20 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060009', 'tblTempUsageDetail_20' ) start [2024-12-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060009', 'tblTempUsageDetail_20' ) end [2024-12-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060009', 'tblTempVendorCDR_20' ) start [2024-12-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060009', 'tblTempVendorCDR_20' ) end [2024-12-20 03:17:17] Production.INFO: ProcessCDR(1,14060009,1,1,2) [2024-12-20 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060009', 'tblTempUsageDetail_20' ) start [2024-12-20 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060009', 'tblTempUsageDetail_20' ) end [2024-12-20 03:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:17:20] Production.INFO: ==27009== Releasing lock... [2024-12-20 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:17:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:18:04 [end_date_ymd] => 2024-12-20 03:18:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:18:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:18:16] Production.INFO: count ==156 [2024-12-20 03:18:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:18:04 - End Time 2024-12-20 03:18:04 [2024-12-20 03:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060014', 'tblTempUsageDetail_20' ) start [2024-12-20 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060014', 'tblTempUsageDetail_20' ) end [2024-12-20 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060014', 'tblTempVendorCDR_20' ) start [2024-12-20 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060014', 'tblTempVendorCDR_20' ) end [2024-12-20 03:18:16] Production.INFO: ProcessCDR(1,14060014,1,1,2) [2024-12-20 03:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060014', 'tblTempUsageDetail_20' ) start [2024-12-20 03:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060014', 'tblTempUsageDetail_20' ) end [2024-12-20 03:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:18:19] Production.INFO: ==27082== Releasing lock... [2024-12-20 03:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:18:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:19:04 [end_date_ymd] => 2024-12-20 03:19:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:19:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:19:16] Production.INFO: count ==156 [2024-12-20 03:19:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:19:04 - End Time 2024-12-20 03:19:04 [2024-12-20 03:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060018', 'tblTempUsageDetail_20' ) start [2024-12-20 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060018', 'tblTempUsageDetail_20' ) end [2024-12-20 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060018', 'tblTempVendorCDR_20' ) start [2024-12-20 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060018', 'tblTempVendorCDR_20' ) end [2024-12-20 03:19:16] Production.INFO: ProcessCDR(1,14060018,1,1,2) [2024-12-20 03:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060018', 'tblTempUsageDetail_20' ) start [2024-12-20 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060018', 'tblTempUsageDetail_20' ) end [2024-12-20 03:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:19:20] Production.INFO: ==27160== Releasing lock... [2024-12-20 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:19:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:20:06 [end_date_ymd] => 2024-12-20 03:20:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:20:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:20:17] Production.INFO: count ==154 [2024-12-20 03:20:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:20:06 - End Time 2024-12-20 03:20:06 [2024-12-20 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060025', 'tblTempUsageDetail_20' ) start [2024-12-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060025', 'tblTempUsageDetail_20' ) end [2024-12-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060025', 'tblTempVendorCDR_20' ) start [2024-12-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060025', 'tblTempVendorCDR_20' ) end [2024-12-20 03:20:18] Production.INFO: ProcessCDR(1,14060025,1,1,2) [2024-12-20 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060025', 'tblTempUsageDetail_20' ) start [2024-12-20 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060025', 'tblTempUsageDetail_20' ) end [2024-12-20 03:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:20:21] Production.INFO: ==27235== Releasing lock... [2024-12-20 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:20:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:21:05 [end_date_ymd] => 2024-12-20 03:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:21:16] Production.INFO: count ==154 [2024-12-20 03:21:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:21:05 - End Time 2024-12-20 03:21:05 [2024-12-20 03:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060030', 'tblTempUsageDetail_20' ) start [2024-12-20 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060030', 'tblTempUsageDetail_20' ) end [2024-12-20 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060030', 'tblTempVendorCDR_20' ) start [2024-12-20 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060030', 'tblTempVendorCDR_20' ) end [2024-12-20 03:21:16] Production.INFO: ProcessCDR(1,14060030,1,1,2) [2024-12-20 03:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060030', 'tblTempUsageDetail_20' ) start [2024-12-20 03:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060030', 'tblTempUsageDetail_20' ) end [2024-12-20 03:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:21:19] Production.INFO: ==27311== Releasing lock... [2024-12-20 03:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:21:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:22:05 [end_date_ymd] => 2024-12-20 03:22:05 [RateCDR] => 1 ) [2024-12-20 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:22:05' and `end` < '2024-12-20 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:22:18] Production.INFO: count ==154 [2024-12-20 03:22:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:22:05 - End Time 2024-12-20 03:22:05 [2024-12-20 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060035', 'tblTempUsageDetail_20' ) start [2024-12-20 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060035', 'tblTempUsageDetail_20' ) end [2024-12-20 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060035', 'tblTempVendorCDR_20' ) start [2024-12-20 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060035', 'tblTempVendorCDR_20' ) end [2024-12-20 03:22:18] Production.INFO: ProcessCDR(1,14060035,1,1,2) [2024-12-20 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060035', 'tblTempUsageDetail_20' ) start [2024-12-20 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060035', 'tblTempUsageDetail_20' ) end [2024-12-20 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:22:21] Production.INFO: ==27400== Releasing lock... [2024-12-20 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:22:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:23:05 [end_date_ymd] => 2024-12-20 03:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:23:17] Production.INFO: count ==153 [2024-12-20 03:23:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:23:05 - End Time 2024-12-20 03:23:05 [2024-12-20 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060040', 'tblTempUsageDetail_20' ) start [2024-12-20 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060040', 'tblTempUsageDetail_20' ) end [2024-12-20 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060040', 'tblTempVendorCDR_20' ) start [2024-12-20 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060040', 'tblTempVendorCDR_20' ) end [2024-12-20 03:23:17] Production.INFO: ProcessCDR(1,14060040,1,1,2) [2024-12-20 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060040', 'tblTempUsageDetail_20' ) start [2024-12-20 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060040', 'tblTempUsageDetail_20' ) end [2024-12-20 03:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:23:20] Production.INFO: ==27514== Releasing lock... [2024-12-20 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:23:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:24:05 [end_date_ymd] => 2024-12-20 03:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:24:17] Production.INFO: count ==153 [2024-12-20 03:24:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:24:05 - End Time 2024-12-20 03:24:05 [2024-12-20 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060045', 'tblTempUsageDetail_20' ) start [2024-12-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060045', 'tblTempUsageDetail_20' ) end [2024-12-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060045', 'tblTempVendorCDR_20' ) start [2024-12-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060045', 'tblTempVendorCDR_20' ) end [2024-12-20 03:24:17] Production.INFO: ProcessCDR(1,14060045,1,1,2) [2024-12-20 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060045', 'tblTempUsageDetail_20' ) start [2024-12-20 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060045', 'tblTempUsageDetail_20' ) end [2024-12-20 03:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:24:20] Production.INFO: ==27635== Releasing lock... [2024-12-20 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:24:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:25:04 [end_date_ymd] => 2024-12-20 03:25:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:25:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:25:16] Production.INFO: count ==154 [2024-12-20 03:25:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:25:04 - End Time 2024-12-20 03:25:04 [2024-12-20 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060050', 'tblTempUsageDetail_20' ) start [2024-12-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060050', 'tblTempUsageDetail_20' ) end [2024-12-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060050', 'tblTempVendorCDR_20' ) start [2024-12-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060050', 'tblTempVendorCDR_20' ) end [2024-12-20 03:25:16] Production.INFO: ProcessCDR(1,14060050,1,1,2) [2024-12-20 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060050', 'tblTempUsageDetail_20' ) start [2024-12-20 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060050', 'tblTempUsageDetail_20' ) end [2024-12-20 03:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:25:20] Production.INFO: ==27753== Releasing lock... [2024-12-20 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:25:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:26:05 [end_date_ymd] => 2024-12-20 03:26:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:26:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:26:18] Production.INFO: count ==154 [2024-12-20 03:26:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:26:05 - End Time 2024-12-20 03:26:05 [2024-12-20 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060055', 'tblTempUsageDetail_20' ) start [2024-12-20 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060055', 'tblTempUsageDetail_20' ) end [2024-12-20 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060055', 'tblTempVendorCDR_20' ) start [2024-12-20 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060055', 'tblTempVendorCDR_20' ) end [2024-12-20 03:26:18] Production.INFO: ProcessCDR(1,14060055,1,1,2) [2024-12-20 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060055', 'tblTempUsageDetail_20' ) start [2024-12-20 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060055', 'tblTempUsageDetail_20' ) end [2024-12-20 03:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:26:21] Production.INFO: ==27869== Releasing lock... [2024-12-20 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:26:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:27:04 [end_date_ymd] => 2024-12-20 03:27:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:27:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:27:16] Production.INFO: count ==154 [2024-12-20 03:27:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:27:04 - End Time 2024-12-20 03:27:04 [2024-12-20 03:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060060', 'tblTempUsageDetail_20' ) start [2024-12-20 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060060', 'tblTempUsageDetail_20' ) end [2024-12-20 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060060', 'tblTempVendorCDR_20' ) start [2024-12-20 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060060', 'tblTempVendorCDR_20' ) end [2024-12-20 03:27:16] Production.INFO: ProcessCDR(1,14060060,1,1,2) [2024-12-20 03:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060060', 'tblTempUsageDetail_20' ) start [2024-12-20 03:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060060', 'tblTempUsageDetail_20' ) end [2024-12-20 03:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:27:19] Production.INFO: ==27981== Releasing lock... [2024-12-20 03:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:27:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:28:05 [end_date_ymd] => 2024-12-20 03:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:28:18] Production.INFO: count ==154 [2024-12-20 03:28:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:28:05 - End Time 2024-12-20 03:28:05 [2024-12-20 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060065', 'tblTempUsageDetail_20' ) start [2024-12-20 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060065', 'tblTempUsageDetail_20' ) end [2024-12-20 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060065', 'tblTempVendorCDR_20' ) start [2024-12-20 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060065', 'tblTempVendorCDR_20' ) end [2024-12-20 03:28:18] Production.INFO: ProcessCDR(1,14060065,1,1,2) [2024-12-20 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060065', 'tblTempUsageDetail_20' ) start [2024-12-20 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060065', 'tblTempUsageDetail_20' ) end [2024-12-20 03:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:28:21] Production.INFO: ==28104== Releasing lock... [2024-12-20 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:28:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:29:05 [end_date_ymd] => 2024-12-20 03:29:05 [RateCDR] => 1 ) [2024-12-20 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:29:05' and `end` < '2024-12-20 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:29:17] Production.INFO: count ==153 [2024-12-20 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:29:05 - End Time 2024-12-20 03:29:05 [2024-12-20 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060070', 'tblTempUsageDetail_20' ) start [2024-12-20 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060070', 'tblTempUsageDetail_20' ) end [2024-12-20 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060070', 'tblTempVendorCDR_20' ) start [2024-12-20 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060070', 'tblTempVendorCDR_20' ) end [2024-12-20 03:29:17] Production.INFO: ProcessCDR(1,14060070,1,1,2) [2024-12-20 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060070', 'tblTempUsageDetail_20' ) start [2024-12-20 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060070', 'tblTempUsageDetail_20' ) end [2024-12-20 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:29:20] Production.INFO: ==28215== Releasing lock... [2024-12-20 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:29:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:30:05 [end_date_ymd] => 2024-12-20 03:30:05 [RateCDR] => 1 ) [2024-12-20 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:30:05' and `end` < '2024-12-20 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:30:17] Production.INFO: count ==149 [2024-12-20 03:30:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:30:05 - End Time 2024-12-20 03:30:05 [2024-12-20 03:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060076', 'tblTempUsageDetail_20' ) start [2024-12-20 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060076', 'tblTempUsageDetail_20' ) end [2024-12-20 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060076', 'tblTempVendorCDR_20' ) start [2024-12-20 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060076', 'tblTempVendorCDR_20' ) end [2024-12-20 03:30:17] Production.INFO: ProcessCDR(1,14060076,1,1,2) [2024-12-20 03:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060076', 'tblTempUsageDetail_20' ) start [2024-12-20 03:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060076', 'tblTempUsageDetail_20' ) end [2024-12-20 03:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:30:20] Production.INFO: ==28335== Releasing lock... [2024-12-20 03:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:30:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:31:04 [end_date_ymd] => 2024-12-20 03:31:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:31:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:31:16] Production.INFO: count ==143 [2024-12-20 03:31:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:31:04 - End Time 2024-12-20 03:31:04 [2024-12-20 03:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060081', 'tblTempUsageDetail_20' ) start [2024-12-20 03:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060081', 'tblTempUsageDetail_20' ) end [2024-12-20 03:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060081', 'tblTempVendorCDR_20' ) start [2024-12-20 03:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060081', 'tblTempVendorCDR_20' ) end [2024-12-20 03:31:16] Production.INFO: ProcessCDR(1,14060081,1,1,2) [2024-12-20 03:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060081', 'tblTempUsageDetail_20' ) start [2024-12-20 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060081', 'tblTempUsageDetail_20' ) end [2024-12-20 03:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:31:20] Production.INFO: ==28452== Releasing lock... [2024-12-20 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:31:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:32:05 [end_date_ymd] => 2024-12-20 03:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:32:18] Production.INFO: count ==143 [2024-12-20 03:32:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:32:05 - End Time 2024-12-20 03:32:05 [2024-12-20 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060086', 'tblTempUsageDetail_20' ) start [2024-12-20 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060086', 'tblTempUsageDetail_20' ) end [2024-12-20 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060086', 'tblTempVendorCDR_20' ) start [2024-12-20 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060086', 'tblTempVendorCDR_20' ) end [2024-12-20 03:32:18] Production.INFO: ProcessCDR(1,14060086,1,1,2) [2024-12-20 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060086', 'tblTempUsageDetail_20' ) start [2024-12-20 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060086', 'tblTempUsageDetail_20' ) end [2024-12-20 03:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:32:21] Production.INFO: ==28568== Releasing lock... [2024-12-20 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:32:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:33:06 [end_date_ymd] => 2024-12-20 03:33:06 [RateCDR] => 1 ) [2024-12-20 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:33:06' and `end` < '2024-12-20 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:33:19] Production.INFO: count ==143 [2024-12-20 03:33:19] Production.ERROR: pbx CDR StartTime 2024-12-20 00:33:06 - End Time 2024-12-20 03:33:06 [2024-12-20 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060091', 'tblTempUsageDetail_20' ) start [2024-12-20 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060091', 'tblTempUsageDetail_20' ) end [2024-12-20 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060091', 'tblTempVendorCDR_20' ) start [2024-12-20 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060091', 'tblTempVendorCDR_20' ) end [2024-12-20 03:33:19] Production.INFO: ProcessCDR(1,14060091,1,1,2) [2024-12-20 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060091', 'tblTempUsageDetail_20' ) start [2024-12-20 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060091', 'tblTempUsageDetail_20' ) end [2024-12-20 03:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:33:22] Production.INFO: ==28685== Releasing lock... [2024-12-20 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:33:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:34:05 [end_date_ymd] => 2024-12-20 03:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:34:17] Production.INFO: count ==143 [2024-12-20 03:34:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:34:05 - End Time 2024-12-20 03:34:05 [2024-12-20 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060096', 'tblTempUsageDetail_20' ) start [2024-12-20 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060096', 'tblTempUsageDetail_20' ) end [2024-12-20 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060096', 'tblTempVendorCDR_20' ) start [2024-12-20 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060096', 'tblTempVendorCDR_20' ) end [2024-12-20 03:34:17] Production.INFO: ProcessCDR(1,14060096,1,1,2) [2024-12-20 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060096', 'tblTempUsageDetail_20' ) start [2024-12-20 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060096', 'tblTempUsageDetail_20' ) end [2024-12-20 03:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:34:20] Production.INFO: ==28813== Releasing lock... [2024-12-20 03:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:34:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:35:05 [end_date_ymd] => 2024-12-20 03:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:35:17] Production.INFO: count ==143 [2024-12-20 03:35:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:35:05 - End Time 2024-12-20 03:35:05 [2024-12-20 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060101', 'tblTempUsageDetail_20' ) start [2024-12-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060101', 'tblTempUsageDetail_20' ) end [2024-12-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060101', 'tblTempVendorCDR_20' ) start [2024-12-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060101', 'tblTempVendorCDR_20' ) end [2024-12-20 03:35:17] Production.INFO: ProcessCDR(1,14060101,1,1,2) [2024-12-20 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060101', 'tblTempUsageDetail_20' ) start [2024-12-20 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060101', 'tblTempUsageDetail_20' ) end [2024-12-20 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:35:20] Production.INFO: ==28887== Releasing lock... [2024-12-20 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:35:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:36:04 [end_date_ymd] => 2024-12-20 03:36:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:36:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:36:17] Production.INFO: count ==143 [2024-12-20 03:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:36:04 - End Time 2024-12-20 03:36:04 [2024-12-20 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060106', 'tblTempUsageDetail_20' ) start [2024-12-20 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060106', 'tblTempUsageDetail_20' ) end [2024-12-20 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060106', 'tblTempVendorCDR_20' ) start [2024-12-20 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060106', 'tblTempVendorCDR_20' ) end [2024-12-20 03:36:17] Production.INFO: ProcessCDR(1,14060106,1,1,2) [2024-12-20 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060106', 'tblTempUsageDetail_20' ) start [2024-12-20 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060106', 'tblTempUsageDetail_20' ) end [2024-12-20 03:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:36:20] Production.INFO: ==28954== Releasing lock... [2024-12-20 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:36:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:37:05 [end_date_ymd] => 2024-12-20 03:37:05 [RateCDR] => 1 ) [2024-12-20 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:37:05' and `end` < '2024-12-20 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:37:18] Production.INFO: count ==143 [2024-12-20 03:37:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:37:05 - End Time 2024-12-20 03:37:05 [2024-12-20 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060111', 'tblTempUsageDetail_20' ) start [2024-12-20 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060111', 'tblTempUsageDetail_20' ) end [2024-12-20 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060111', 'tblTempVendorCDR_20' ) start [2024-12-20 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060111', 'tblTempVendorCDR_20' ) end [2024-12-20 03:37:18] Production.INFO: ProcessCDR(1,14060111,1,1,2) [2024-12-20 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060111', 'tblTempUsageDetail_20' ) start [2024-12-20 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060111', 'tblTempUsageDetail_20' ) end [2024-12-20 03:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:37:21] Production.INFO: ==29030== Releasing lock... [2024-12-20 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:37:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:38:05 [end_date_ymd] => 2024-12-20 03:38:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:38:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:38:17] Production.INFO: count ==143 [2024-12-20 03:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:38:05 - End Time 2024-12-20 03:38:05 [2024-12-20 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060116', 'tblTempUsageDetail_20' ) start [2024-12-20 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060116', 'tblTempUsageDetail_20' ) end [2024-12-20 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060116', 'tblTempVendorCDR_20' ) start [2024-12-20 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060116', 'tblTempVendorCDR_20' ) end [2024-12-20 03:38:17] Production.INFO: ProcessCDR(1,14060116,1,1,2) [2024-12-20 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060116', 'tblTempUsageDetail_20' ) start [2024-12-20 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060116', 'tblTempUsageDetail_20' ) end [2024-12-20 03:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:38:20] Production.INFO: ==29107== Releasing lock... [2024-12-20 03:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:38:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:39:05 [end_date_ymd] => 2024-12-20 03:39:05 [RateCDR] => 1 ) [2024-12-20 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:39:05' and `end` < '2024-12-20 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:39:17] Production.INFO: count ==143 [2024-12-20 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:39:05 - End Time 2024-12-20 03:39:05 [2024-12-20 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060121', 'tblTempUsageDetail_20' ) start [2024-12-20 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060121', 'tblTempUsageDetail_20' ) end [2024-12-20 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060121', 'tblTempVendorCDR_20' ) start [2024-12-20 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060121', 'tblTempVendorCDR_20' ) end [2024-12-20 03:39:17] Production.INFO: ProcessCDR(1,14060121,1,1,2) [2024-12-20 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060121', 'tblTempUsageDetail_20' ) start [2024-12-20 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060121', 'tblTempUsageDetail_20' ) end [2024-12-20 03:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:39:21] Production.INFO: ==29175== Releasing lock... [2024-12-20 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:39:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:40:05 [end_date_ymd] => 2024-12-20 03:40:05 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:40:05' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:40:17] Production.INFO: count ==143 [2024-12-20 03:40:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:40:05 - End Time 2024-12-20 03:40:05 [2024-12-20 03:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060126', 'tblTempUsageDetail_20' ) start [2024-12-20 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060126', 'tblTempUsageDetail_20' ) end [2024-12-20 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060126', 'tblTempVendorCDR_20' ) start [2024-12-20 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060126', 'tblTempVendorCDR_20' ) end [2024-12-20 03:40:17] Production.INFO: ProcessCDR(1,14060126,1,1,2) [2024-12-20 03:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060126', 'tblTempUsageDetail_20' ) start [2024-12-20 03:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060126', 'tblTempUsageDetail_20' ) end [2024-12-20 03:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:40:20] Production.INFO: ==29252== Releasing lock... [2024-12-20 03:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:40:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:41:05 [end_date_ymd] => 2024-12-20 03:41:05 [RateCDR] => 1 ) [2024-12-20 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:41:05' and `end` < '2024-12-20 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:41:16] Production.INFO: count ==147 [2024-12-20 03:41:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:41:05 - End Time 2024-12-20 03:41:05 [2024-12-20 03:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060132', 'tblTempUsageDetail_20' ) start [2024-12-20 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060132', 'tblTempUsageDetail_20' ) end [2024-12-20 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060132', 'tblTempVendorCDR_20' ) start [2024-12-20 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060132', 'tblTempVendorCDR_20' ) end [2024-12-20 03:41:16] Production.INFO: ProcessCDR(1,14060132,1,1,2) [2024-12-20 03:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060132', 'tblTempUsageDetail_20' ) start [2024-12-20 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060132', 'tblTempUsageDetail_20' ) end [2024-12-20 03:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:41:20] Production.INFO: ==29325== Releasing lock... [2024-12-20 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:41:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:42:04 [end_date_ymd] => 2024-12-20 03:42:04 [RateCDR] => 1 ) [2024-12-20 03:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:42:04' and `end` < '2024-12-20 03:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:42:16] Production.INFO: count ==152 [2024-12-20 03:42:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:42:04 - End Time 2024-12-20 03:42:04 [2024-12-20 03:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060137', 'tblTempUsageDetail_20' ) start [2024-12-20 03:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060137', 'tblTempUsageDetail_20' ) end [2024-12-20 03:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060137', 'tblTempVendorCDR_20' ) start [2024-12-20 03:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060137', 'tblTempVendorCDR_20' ) end [2024-12-20 03:42:16] Production.INFO: ProcessCDR(1,14060137,1,1,2) [2024-12-20 03:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060137', 'tblTempUsageDetail_20' ) start [2024-12-20 03:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060137', 'tblTempUsageDetail_20' ) end [2024-12-20 03:42:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:42:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:42:19] Production.INFO: ==29396== Releasing lock... [2024-12-20 03:42:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:42:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:43:05 [end_date_ymd] => 2024-12-20 03:43:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:43:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:43:18] Production.INFO: count ==152 [2024-12-20 03:43:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:43:05 - End Time 2024-12-20 03:43:05 [2024-12-20 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060142', 'tblTempUsageDetail_20' ) start [2024-12-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060142', 'tblTempUsageDetail_20' ) end [2024-12-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060142', 'tblTempVendorCDR_20' ) start [2024-12-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060142', 'tblTempVendorCDR_20' ) end [2024-12-20 03:43:18] Production.INFO: ProcessCDR(1,14060142,1,1,2) [2024-12-20 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060142', 'tblTempUsageDetail_20' ) start [2024-12-20 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060142', 'tblTempUsageDetail_20' ) end [2024-12-20 03:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:43:22] Production.INFO: ==29478== Releasing lock... [2024-12-20 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:43:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:44:05 [end_date_ymd] => 2024-12-20 03:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:44:17] Production.INFO: count ==152 [2024-12-20 03:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:44:05 - End Time 2024-12-20 03:44:05 [2024-12-20 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060147', 'tblTempUsageDetail_20' ) start [2024-12-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060147', 'tblTempUsageDetail_20' ) end [2024-12-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060147', 'tblTempVendorCDR_20' ) start [2024-12-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060147', 'tblTempVendorCDR_20' ) end [2024-12-20 03:44:17] Production.INFO: ProcessCDR(1,14060147,1,1,2) [2024-12-20 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060147', 'tblTempUsageDetail_20' ) start [2024-12-20 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060147', 'tblTempUsageDetail_20' ) end [2024-12-20 03:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:44:20] Production.INFO: ==29559== Releasing lock... [2024-12-20 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:44:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:45:05 [end_date_ymd] => 2024-12-20 03:45:05 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:45:05' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:45:17] Production.INFO: count ==152 [2024-12-20 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:45:05 - End Time 2024-12-20 03:45:05 [2024-12-20 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060152', 'tblTempUsageDetail_20' ) start [2024-12-20 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060152', 'tblTempUsageDetail_20' ) end [2024-12-20 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060152', 'tblTempVendorCDR_20' ) start [2024-12-20 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060152', 'tblTempVendorCDR_20' ) end [2024-12-20 03:45:17] Production.INFO: ProcessCDR(1,14060152,1,1,2) [2024-12-20 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060152', 'tblTempUsageDetail_20' ) start [2024-12-20 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060152', 'tblTempUsageDetail_20' ) end [2024-12-20 03:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:45:21] Production.INFO: ==29662== Releasing lock... [2024-12-20 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:46:04 [end_date_ymd] => 2024-12-20 03:46:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:46:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:46:16] Production.INFO: count ==152 [2024-12-20 03:46:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:46:04 - End Time 2024-12-20 03:46:04 [2024-12-20 03:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060157', 'tblTempUsageDetail_20' ) start [2024-12-20 03:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060157', 'tblTempUsageDetail_20' ) end [2024-12-20 03:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060157', 'tblTempVendorCDR_20' ) start [2024-12-20 03:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060157', 'tblTempVendorCDR_20' ) end [2024-12-20 03:46:16] Production.INFO: ProcessCDR(1,14060157,1,1,2) [2024-12-20 03:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060157', 'tblTempUsageDetail_20' ) start [2024-12-20 03:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060157', 'tblTempUsageDetail_20' ) end [2024-12-20 03:46:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:46:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:46:19] Production.INFO: ==29732== Releasing lock... [2024-12-20 03:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:46:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:47:05 [end_date_ymd] => 2024-12-20 03:47:05 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:47:05' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:47:17] Production.INFO: count ==152 [2024-12-20 03:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:47:05 - End Time 2024-12-20 03:47:05 [2024-12-20 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060162', 'tblTempUsageDetail_20' ) start [2024-12-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060162', 'tblTempUsageDetail_20' ) end [2024-12-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060162', 'tblTempVendorCDR_20' ) start [2024-12-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060162', 'tblTempVendorCDR_20' ) end [2024-12-20 03:47:17] Production.INFO: ProcessCDR(1,14060162,1,1,2) [2024-12-20 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060162', 'tblTempUsageDetail_20' ) start [2024-12-20 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060162', 'tblTempUsageDetail_20' ) end [2024-12-20 03:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:47:20] Production.INFO: ==29804== Releasing lock... [2024-12-20 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:47:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:48:05 [end_date_ymd] => 2024-12-20 03:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:48:18] Production.INFO: count ==152 [2024-12-20 03:48:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:48:05 - End Time 2024-12-20 03:48:05 [2024-12-20 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060167', 'tblTempUsageDetail_20' ) start [2024-12-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060167', 'tblTempUsageDetail_20' ) end [2024-12-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060167', 'tblTempVendorCDR_20' ) start [2024-12-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060167', 'tblTempVendorCDR_20' ) end [2024-12-20 03:48:18] Production.INFO: ProcessCDR(1,14060167,1,1,2) [2024-12-20 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060167', 'tblTempUsageDetail_20' ) start [2024-12-20 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060167', 'tblTempUsageDetail_20' ) end [2024-12-20 03:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:48:21] Production.INFO: ==29872== Releasing lock... [2024-12-20 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:48:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:49:05 [end_date_ymd] => 2024-12-20 03:49:05 [RateCDR] => 1 ) [2024-12-20 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:49:05' and `end` < '2024-12-20 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:49:17] Production.INFO: count ==152 [2024-12-20 03:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:49:05 - End Time 2024-12-20 03:49:05 [2024-12-20 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060172', 'tblTempUsageDetail_20' ) start [2024-12-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060172', 'tblTempUsageDetail_20' ) end [2024-12-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060172', 'tblTempVendorCDR_20' ) start [2024-12-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060172', 'tblTempVendorCDR_20' ) end [2024-12-20 03:49:17] Production.INFO: ProcessCDR(1,14060172,1,1,2) [2024-12-20 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060172', 'tblTempUsageDetail_20' ) start [2024-12-20 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060172', 'tblTempUsageDetail_20' ) end [2024-12-20 03:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:49:20] Production.INFO: ==29981== Releasing lock... [2024-12-20 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:49:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:50:05 [end_date_ymd] => 2024-12-20 03:50:05 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:50:05' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:50:18] Production.INFO: count ==148 [2024-12-20 03:50:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:50:05 - End Time 2024-12-20 03:50:05 [2024-12-20 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060178', 'tblTempUsageDetail_20' ) start [2024-12-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060178', 'tblTempUsageDetail_20' ) end [2024-12-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060178', 'tblTempVendorCDR_20' ) start [2024-12-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060178', 'tblTempVendorCDR_20' ) end [2024-12-20 03:50:18] Production.INFO: ProcessCDR(1,14060178,1,1,2) [2024-12-20 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060178', 'tblTempUsageDetail_20' ) start [2024-12-20 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060178', 'tblTempUsageDetail_20' ) end [2024-12-20 03:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:50:21] Production.INFO: ==30068== Releasing lock... [2024-12-20 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:50:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:51:05 [end_date_ymd] => 2024-12-20 03:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:51:17] Production.INFO: count ==148 [2024-12-20 03:51:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:51:05 - End Time 2024-12-20 03:51:05 [2024-12-20 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060183', 'tblTempUsageDetail_20' ) start [2024-12-20 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060183', 'tblTempUsageDetail_20' ) end [2024-12-20 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060183', 'tblTempVendorCDR_20' ) start [2024-12-20 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060183', 'tblTempVendorCDR_20' ) end [2024-12-20 03:51:17] Production.INFO: ProcessCDR(1,14060183,1,1,2) [2024-12-20 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060183', 'tblTempUsageDetail_20' ) start [2024-12-20 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060183', 'tblTempUsageDetail_20' ) end [2024-12-20 03:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:51:20] Production.INFO: ==30139== Releasing lock... [2024-12-20 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:51:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:52:05 [end_date_ymd] => 2024-12-20 03:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:52:17] Production.INFO: count ==148 [2024-12-20 03:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:52:05 - End Time 2024-12-20 03:52:05 [2024-12-20 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060188', 'tblTempUsageDetail_20' ) start [2024-12-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060188', 'tblTempUsageDetail_20' ) end [2024-12-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060188', 'tblTempVendorCDR_20' ) start [2024-12-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060188', 'tblTempVendorCDR_20' ) end [2024-12-20 03:52:17] Production.INFO: ProcessCDR(1,14060188,1,1,2) [2024-12-20 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060188', 'tblTempUsageDetail_20' ) start [2024-12-20 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060188', 'tblTempUsageDetail_20' ) end [2024-12-20 03:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:52:20] Production.INFO: ==30213== Releasing lock... [2024-12-20 03:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:52:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:53:05 [end_date_ymd] => 2024-12-20 03:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:53:17] Production.INFO: count ==148 [2024-12-20 03:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:53:05 - End Time 2024-12-20 03:53:05 [2024-12-20 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060193', 'tblTempUsageDetail_20' ) start [2024-12-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060193', 'tblTempUsageDetail_20' ) end [2024-12-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060193', 'tblTempVendorCDR_20' ) start [2024-12-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060193', 'tblTempVendorCDR_20' ) end [2024-12-20 03:53:17] Production.INFO: ProcessCDR(1,14060193,1,1,2) [2024-12-20 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060193', 'tblTempUsageDetail_20' ) start [2024-12-20 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060193', 'tblTempUsageDetail_20' ) end [2024-12-20 03:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:53:20] Production.INFO: ==30283== Releasing lock... [2024-12-20 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:53:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:54:05 [end_date_ymd] => 2024-12-20 03:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:54:17] Production.INFO: count ==148 [2024-12-20 03:54:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:54:05 - End Time 2024-12-20 03:54:05 [2024-12-20 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060198', 'tblTempUsageDetail_20' ) start [2024-12-20 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060198', 'tblTempUsageDetail_20' ) end [2024-12-20 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060198', 'tblTempVendorCDR_20' ) start [2024-12-20 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060198', 'tblTempVendorCDR_20' ) end [2024-12-20 03:54:17] Production.INFO: ProcessCDR(1,14060198,1,1,2) [2024-12-20 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060198', 'tblTempUsageDetail_20' ) start [2024-12-20 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060198', 'tblTempUsageDetail_20' ) end [2024-12-20 03:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:54:20] Production.INFO: ==30356== Releasing lock... [2024-12-20 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:54:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:55:04 [end_date_ymd] => 2024-12-20 03:55:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:55:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:55:16] Production.INFO: count ==148 [2024-12-20 03:55:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:55:04 - End Time 2024-12-20 03:55:04 [2024-12-20 03:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060203', 'tblTempUsageDetail_20' ) start [2024-12-20 03:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060203', 'tblTempUsageDetail_20' ) end [2024-12-20 03:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060203', 'tblTempVendorCDR_20' ) start [2024-12-20 03:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060203', 'tblTempVendorCDR_20' ) end [2024-12-20 03:55:16] Production.INFO: ProcessCDR(1,14060203,1,1,2) [2024-12-20 03:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060203', 'tblTempUsageDetail_20' ) start [2024-12-20 03:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060203', 'tblTempUsageDetail_20' ) end [2024-12-20 03:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:55:19] Production.INFO: ==30428== Releasing lock... [2024-12-20 03:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:55:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:56:05 [end_date_ymd] => 2024-12-20 03:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:56:17] Production.INFO: count ==148 [2024-12-20 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:56:05 - End Time 2024-12-20 03:56:05 [2024-12-20 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060208', 'tblTempUsageDetail_20' ) start [2024-12-20 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060208', 'tblTempUsageDetail_20' ) end [2024-12-20 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060208', 'tblTempVendorCDR_20' ) start [2024-12-20 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060208', 'tblTempVendorCDR_20' ) end [2024-12-20 03:56:17] Production.INFO: ProcessCDR(1,14060208,1,1,2) [2024-12-20 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060208', 'tblTempUsageDetail_20' ) start [2024-12-20 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060208', 'tblTempUsageDetail_20' ) end [2024-12-20 03:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:56:20] Production.INFO: ==30498== Releasing lock... [2024-12-20 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:56:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:57:04 [end_date_ymd] => 2024-12-20 03:57:04 [RateCDR] => 1 ) [2024-12-20 03:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 00:57:04' and `end` < '2024-12-20 03:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 03:57:17] Production.INFO: count ==148 [2024-12-20 03:57:17] Production.ERROR: pbx CDR StartTime 2024-12-20 00:57:04 - End Time 2024-12-20 03:57:04 [2024-12-20 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060211', 'tblTempUsageDetail_20' ) start [2024-12-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060211', 'tblTempUsageDetail_20' ) end [2024-12-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060211', 'tblTempVendorCDR_20' ) start [2024-12-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060211', 'tblTempVendorCDR_20' ) end [2024-12-20 03:57:17] Production.INFO: ProcessCDR(1,14060211,1,1,2) [2024-12-20 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060211', 'tblTempUsageDetail_20' ) start [2024-12-20 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060211', 'tblTempUsageDetail_20' ) end [2024-12-20 03:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:57:20] Production.INFO: ==30572== Releasing lock... [2024-12-20 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:57:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:58:05 [end_date_ymd] => 2024-12-20 03:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 00:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 03:58:18] Production.INFO: count ==148 [2024-12-20 03:58:18] Production.ERROR: pbx CDR StartTime 2024-12-20 00:58:05 - End Time 2024-12-20 03:58:05 [2024-12-20 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060218', 'tblTempUsageDetail_20' ) start [2024-12-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060218', 'tblTempUsageDetail_20' ) end [2024-12-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060218', 'tblTempVendorCDR_20' ) start [2024-12-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060218', 'tblTempVendorCDR_20' ) end [2024-12-20 03:58:18] Production.INFO: ProcessCDR(1,14060218,1,1,2) [2024-12-20 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060218', 'tblTempUsageDetail_20' ) start [2024-12-20 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060218', 'tblTempUsageDetail_20' ) end [2024-12-20 03:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:58:21] Production.INFO: ==30646== Releasing lock... [2024-12-20 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:58:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 00:59:04 [end_date_ymd] => 2024-12-20 03:59:04 [RateCDR] => 1 ) [2024-12-20 03: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` >= '2024-12-20 00:59:04' and `end` < '2024-12-20 03: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 ,'') [2024-12-20 03:59:16] Production.INFO: count ==148 [2024-12-20 03:59:16] Production.ERROR: pbx CDR StartTime 2024-12-20 00:59:04 - End Time 2024-12-20 03:59:04 [2024-12-20 03:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 03:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060223', 'tblTempUsageDetail_20' ) start [2024-12-20 03:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060223', 'tblTempUsageDetail_20' ) end [2024-12-20 03:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060223', 'tblTempVendorCDR_20' ) start [2024-12-20 03:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060223', 'tblTempVendorCDR_20' ) end [2024-12-20 03:59:16] Production.INFO: ProcessCDR(1,14060223,1,1,2) [2024-12-20 03:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 03:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 03:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060223', 'tblTempUsageDetail_20' ) start [2024-12-20 03:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060223', 'tblTempUsageDetail_20' ) end [2024-12-20 03:59:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 03:59:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 03:59:19] Production.INFO: ==30720== Releasing lock... [2024-12-20 03:59:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 03:59:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:00:06 [end_date_ymd] => 2024-12-20 04:00:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:00:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:00:18] Production.INFO: count ==140 [2024-12-20 04:00:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:00:06 - End Time 2024-12-20 04:00:06 [2024-12-20 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060230', 'tblTempUsageDetail_20' ) start [2024-12-20 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060230', 'tblTempUsageDetail_20' ) end [2024-12-20 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060230', 'tblTempVendorCDR_20' ) start [2024-12-20 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060230', 'tblTempVendorCDR_20' ) end [2024-12-20 04:00:18] Production.INFO: ProcessCDR(1,14060230,1,1,2) [2024-12-20 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060230', 'tblTempUsageDetail_20' ) start [2024-12-20 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060230', 'tblTempUsageDetail_20' ) end [2024-12-20 04:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:00:21] Production.INFO: ==30797== Releasing lock... [2024-12-20 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:00:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:01:06 [end_date_ymd] => 2024-12-20 04:01:06 [RateCDR] => 1 ) [2024-12-20 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:01:06' and `end` < '2024-12-20 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:01:18] Production.INFO: count ==140 [2024-12-20 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:01:06 - End Time 2024-12-20 04:01:06 [2024-12-20 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060235', 'tblTempUsageDetail_20' ) start [2024-12-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060235', 'tblTempUsageDetail_20' ) end [2024-12-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060235', 'tblTempVendorCDR_20' ) start [2024-12-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060235', 'tblTempVendorCDR_20' ) end [2024-12-20 04:01:18] Production.INFO: ProcessCDR(1,14060235,1,1,2) [2024-12-20 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060235', 'tblTempUsageDetail_20' ) start [2024-12-20 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060235', 'tblTempUsageDetail_20' ) end [2024-12-20 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:01:21] Production.INFO: ==30884== Releasing lock... [2024-12-20 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:01:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:02:04 [end_date_ymd] => 2024-12-20 04:02:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:02:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:02:17] Production.INFO: count ==139 [2024-12-20 04:02:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:02:04 - End Time 2024-12-20 04:02:04 [2024-12-20 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060240', 'tblTempUsageDetail_20' ) start [2024-12-20 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060240', 'tblTempUsageDetail_20' ) end [2024-12-20 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060240', 'tblTempVendorCDR_20' ) start [2024-12-20 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060240', 'tblTempVendorCDR_20' ) end [2024-12-20 04:02:17] Production.INFO: ProcessCDR(1,14060240,1,1,2) [2024-12-20 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060240', 'tblTempUsageDetail_20' ) start [2024-12-20 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060240', 'tblTempUsageDetail_20' ) end [2024-12-20 04:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:02:20] Production.INFO: ==30954== Releasing lock... [2024-12-20 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:02:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:03:05 [end_date_ymd] => 2024-12-20 04:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:03:17] Production.INFO: count ==137 [2024-12-20 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:03:05 - End Time 2024-12-20 04:03:05 [2024-12-20 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060245', 'tblTempUsageDetail_20' ) start [2024-12-20 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060245', 'tblTempUsageDetail_20' ) end [2024-12-20 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060245', 'tblTempVendorCDR_20' ) start [2024-12-20 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060245', 'tblTempVendorCDR_20' ) end [2024-12-20 04:03:17] Production.INFO: ProcessCDR(1,14060245,1,1,2) [2024-12-20 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060245', 'tblTempUsageDetail_20' ) start [2024-12-20 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060245', 'tblTempUsageDetail_20' ) end [2024-12-20 04:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:03:21] Production.INFO: ==31030== Releasing lock... [2024-12-20 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:03:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:04:04 [end_date_ymd] => 2024-12-20 04:04:04 [RateCDR] => 1 ) [2024-12-20 04:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:04:04' and `end` < '2024-12-20 04:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:04:17] Production.INFO: count ==137 [2024-12-20 04:04:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:04:04 - End Time 2024-12-20 04:04:04 [2024-12-20 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060250', 'tblTempUsageDetail_20' ) start [2024-12-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060250', 'tblTempUsageDetail_20' ) end [2024-12-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060250', 'tblTempVendorCDR_20' ) start [2024-12-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060250', 'tblTempVendorCDR_20' ) end [2024-12-20 04:04:17] Production.INFO: ProcessCDR(1,14060250,1,1,2) [2024-12-20 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060250', 'tblTempUsageDetail_20' ) start [2024-12-20 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060250', 'tblTempUsageDetail_20' ) end [2024-12-20 04:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:04:20] Production.INFO: ==31100== Releasing lock... [2024-12-20 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:04:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:05:05 [end_date_ymd] => 2024-12-20 04:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:05:17] Production.INFO: count ==137 [2024-12-20 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:05:05 - End Time 2024-12-20 04:05:05 [2024-12-20 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060255', 'tblTempUsageDetail_20' ) start [2024-12-20 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060255', 'tblTempUsageDetail_20' ) end [2024-12-20 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060255', 'tblTempVendorCDR_20' ) start [2024-12-20 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060255', 'tblTempVendorCDR_20' ) end [2024-12-20 04:05:17] Production.INFO: ProcessCDR(1,14060255,1,1,2) [2024-12-20 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060255', 'tblTempUsageDetail_20' ) start [2024-12-20 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060255', 'tblTempUsageDetail_20' ) end [2024-12-20 04:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:05:20] Production.INFO: ==31210== Releasing lock... [2024-12-20 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:05:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:06:05 [end_date_ymd] => 2024-12-20 04:06:05 [RateCDR] => 1 ) [2024-12-20 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:06:05' and `end` < '2024-12-20 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:06:17] Production.INFO: count ==137 [2024-12-20 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:06:05 - End Time 2024-12-20 04:06:05 [2024-12-20 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060260', 'tblTempUsageDetail_20' ) start [2024-12-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060260', 'tblTempUsageDetail_20' ) end [2024-12-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060260', 'tblTempVendorCDR_20' ) start [2024-12-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060260', 'tblTempVendorCDR_20' ) end [2024-12-20 04:06:17] Production.INFO: ProcessCDR(1,14060260,1,1,2) [2024-12-20 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060260', 'tblTempUsageDetail_20' ) start [2024-12-20 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060260', 'tblTempUsageDetail_20' ) end [2024-12-20 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:06:20] Production.INFO: ==31283== Releasing lock... [2024-12-20 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:06:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:07:04 [end_date_ymd] => 2024-12-20 04:07:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:07:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:07:17] Production.INFO: count ==135 [2024-12-20 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:07:04 - End Time 2024-12-20 04:07:04 [2024-12-20 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060265', 'tblTempUsageDetail_20' ) start [2024-12-20 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060265', 'tblTempUsageDetail_20' ) end [2024-12-20 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060265', 'tblTempVendorCDR_20' ) start [2024-12-20 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060265', 'tblTempVendorCDR_20' ) end [2024-12-20 04:07:17] Production.INFO: ProcessCDR(1,14060265,1,1,2) [2024-12-20 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060265', 'tblTempUsageDetail_20' ) start [2024-12-20 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060265', 'tblTempUsageDetail_20' ) end [2024-12-20 04:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:07:20] Production.INFO: ==31353== Releasing lock... [2024-12-20 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:07:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:08:05 [end_date_ymd] => 2024-12-20 04:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:08:17] Production.INFO: count ==134 [2024-12-20 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:08:05 - End Time 2024-12-20 04:08:05 [2024-12-20 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060270', 'tblTempUsageDetail_20' ) start [2024-12-20 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060270', 'tblTempUsageDetail_20' ) end [2024-12-20 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060270', 'tblTempVendorCDR_20' ) start [2024-12-20 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060270', 'tblTempVendorCDR_20' ) end [2024-12-20 04:08:17] Production.INFO: ProcessCDR(1,14060270,1,1,2) [2024-12-20 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060270', 'tblTempUsageDetail_20' ) start [2024-12-20 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060270', 'tblTempUsageDetail_20' ) end [2024-12-20 04:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:08:20] Production.INFO: ==31423== Releasing lock... [2024-12-20 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:08:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:09:04 [end_date_ymd] => 2024-12-20 04:09:04 [RateCDR] => 1 ) [2024-12-20 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:09:04' and `end` < '2024-12-20 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:09:17] Production.INFO: count ==134 [2024-12-20 04:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:09:04 - End Time 2024-12-20 04:09:04 [2024-12-20 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060275', 'tblTempUsageDetail_20' ) start [2024-12-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060275', 'tblTempUsageDetail_20' ) end [2024-12-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060275', 'tblTempVendorCDR_20' ) start [2024-12-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060275', 'tblTempVendorCDR_20' ) end [2024-12-20 04:09:17] Production.INFO: ProcessCDR(1,14060275,1,1,2) [2024-12-20 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060275', 'tblTempUsageDetail_20' ) start [2024-12-20 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060275', 'tblTempUsageDetail_20' ) end [2024-12-20 04:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:09:20] Production.INFO: ==31498== Releasing lock... [2024-12-20 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:09:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:10:06 [end_date_ymd] => 2024-12-20 04:10:06 [RateCDR] => 1 ) [2024-12-20 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:10:06' and `end` < '2024-12-20 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:10:18] Production.INFO: count ==126 [2024-12-20 04:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:10:06 - End Time 2024-12-20 04:10:06 [2024-12-20 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060281', 'tblTempUsageDetail_20' ) start [2024-12-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060281', 'tblTempUsageDetail_20' ) end [2024-12-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060281', 'tblTempVendorCDR_20' ) start [2024-12-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060281', 'tblTempVendorCDR_20' ) end [2024-12-20 04:10:18] Production.INFO: ProcessCDR(1,14060281,1,1,2) [2024-12-20 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060281', 'tblTempUsageDetail_20' ) start [2024-12-20 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060281', 'tblTempUsageDetail_20' ) end [2024-12-20 04:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:10:21] Production.INFO: ==31574== Releasing lock... [2024-12-20 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:10:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:11:04 [end_date_ymd] => 2024-12-20 04:11:04 [RateCDR] => 1 ) [2024-12-20 04:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:11:04' and `end` < '2024-12-20 04:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:11:16] Production.INFO: count ==126 [2024-12-20 04:11:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:11:04 - End Time 2024-12-20 04:11:04 [2024-12-20 04:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060286', 'tblTempUsageDetail_20' ) start [2024-12-20 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060286', 'tblTempUsageDetail_20' ) end [2024-12-20 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060286', 'tblTempVendorCDR_20' ) start [2024-12-20 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060286', 'tblTempVendorCDR_20' ) end [2024-12-20 04:11:16] Production.INFO: ProcessCDR(1,14060286,1,1,2) [2024-12-20 04:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060286', 'tblTempUsageDetail_20' ) start [2024-12-20 04:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060286', 'tblTempUsageDetail_20' ) end [2024-12-20 04:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:11:19] Production.INFO: ==31645== Releasing lock... [2024-12-20 04:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:11:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:12:05 [end_date_ymd] => 2024-12-20 04:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:12:17] Production.INFO: count ==126 [2024-12-20 04:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:12:05 - End Time 2024-12-20 04:12:05 [2024-12-20 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060291', 'tblTempUsageDetail_20' ) start [2024-12-20 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060291', 'tblTempUsageDetail_20' ) end [2024-12-20 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060291', 'tblTempVendorCDR_20' ) start [2024-12-20 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060291', 'tblTempVendorCDR_20' ) end [2024-12-20 04:12:17] Production.INFO: ProcessCDR(1,14060291,1,1,2) [2024-12-20 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060291', 'tblTempUsageDetail_20' ) start [2024-12-20 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060291', 'tblTempUsageDetail_20' ) end [2024-12-20 04:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:12:20] Production.INFO: ==31722== Releasing lock... [2024-12-20 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:12:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:13:04 [end_date_ymd] => 2024-12-20 04:13:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:13:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:13:17] Production.INFO: count ==126 [2024-12-20 04:13:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:13:04 - End Time 2024-12-20 04:13:04 [2024-12-20 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060296', 'tblTempUsageDetail_20' ) start [2024-12-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060296', 'tblTempUsageDetail_20' ) end [2024-12-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060296', 'tblTempVendorCDR_20' ) start [2024-12-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060296', 'tblTempVendorCDR_20' ) end [2024-12-20 04:13:17] Production.INFO: ProcessCDR(1,14060296,1,1,2) [2024-12-20 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060296', 'tblTempUsageDetail_20' ) start [2024-12-20 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060296', 'tblTempUsageDetail_20' ) end [2024-12-20 04:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:13:20] Production.INFO: ==31797== Releasing lock... [2024-12-20 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:13:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:14:05 [end_date_ymd] => 2024-12-20 04:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:14:17] Production.INFO: count ==126 [2024-12-20 04:14:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:14:05 - End Time 2024-12-20 04:14:05 [2024-12-20 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060301', 'tblTempUsageDetail_20' ) start [2024-12-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060301', 'tblTempUsageDetail_20' ) end [2024-12-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060301', 'tblTempVendorCDR_20' ) start [2024-12-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060301', 'tblTempVendorCDR_20' ) end [2024-12-20 04:14:17] Production.INFO: ProcessCDR(1,14060301,1,1,2) [2024-12-20 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060301', 'tblTempUsageDetail_20' ) start [2024-12-20 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060301', 'tblTempUsageDetail_20' ) end [2024-12-20 04:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:14:20] Production.INFO: ==31874== Releasing lock... [2024-12-20 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:14:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:15:05 [end_date_ymd] => 2024-12-20 04:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:15:16] Production.INFO: count ==126 [2024-12-20 04:15:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:15:05 - End Time 2024-12-20 04:15:05 [2024-12-20 04:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060304', 'tblTempUsageDetail_20' ) start [2024-12-20 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060304', 'tblTempUsageDetail_20' ) end [2024-12-20 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060304', 'tblTempVendorCDR_20' ) start [2024-12-20 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060304', 'tblTempVendorCDR_20' ) end [2024-12-20 04:15:16] Production.INFO: ProcessCDR(1,14060304,1,1,2) [2024-12-20 04:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060304', 'tblTempUsageDetail_20' ) start [2024-12-20 04:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060304', 'tblTempUsageDetail_20' ) end [2024-12-20 04:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:15:19] Production.INFO: ==31955== Releasing lock... [2024-12-20 04:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:15:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:16:05 [end_date_ymd] => 2024-12-20 04:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:16:17] Production.INFO: count ==126 [2024-12-20 04:16:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:16:05 - End Time 2024-12-20 04:16:05 [2024-12-20 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060311', 'tblTempUsageDetail_20' ) start [2024-12-20 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060311', 'tblTempUsageDetail_20' ) end [2024-12-20 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060311', 'tblTempVendorCDR_20' ) start [2024-12-20 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060311', 'tblTempVendorCDR_20' ) end [2024-12-20 04:16:17] Production.INFO: ProcessCDR(1,14060311,1,1,2) [2024-12-20 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060311', 'tblTempUsageDetail_20' ) start [2024-12-20 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060311', 'tblTempUsageDetail_20' ) end [2024-12-20 04:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:16:20] Production.INFO: ==32029== Releasing lock... [2024-12-20 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:16:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:17:05 [end_date_ymd] => 2024-12-20 04:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:17:17] Production.INFO: count ==126 [2024-12-20 04:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:17:05 - End Time 2024-12-20 04:17:05 [2024-12-20 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060316', 'tblTempUsageDetail_20' ) start [2024-12-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060316', 'tblTempUsageDetail_20' ) end [2024-12-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060316', 'tblTempVendorCDR_20' ) start [2024-12-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060316', 'tblTempVendorCDR_20' ) end [2024-12-20 04:17:17] Production.INFO: ProcessCDR(1,14060316,1,1,2) [2024-12-20 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060316', 'tblTempUsageDetail_20' ) start [2024-12-20 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060316', 'tblTempUsageDetail_20' ) end [2024-12-20 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:17:20] Production.INFO: ==32118== Releasing lock... [2024-12-20 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:17:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:18:04 [end_date_ymd] => 2024-12-20 04:18:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:18:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:18:17] Production.INFO: count ==126 [2024-12-20 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:18:04 - End Time 2024-12-20 04:18:04 [2024-12-20 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060321', 'tblTempUsageDetail_20' ) start [2024-12-20 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060321', 'tblTempUsageDetail_20' ) end [2024-12-20 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060321', 'tblTempVendorCDR_20' ) start [2024-12-20 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060321', 'tblTempVendorCDR_20' ) end [2024-12-20 04:18:17] Production.INFO: ProcessCDR(1,14060321,1,1,2) [2024-12-20 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060321', 'tblTempUsageDetail_20' ) start [2024-12-20 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060321', 'tblTempUsageDetail_20' ) end [2024-12-20 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:18:20] Production.INFO: ==32193== Releasing lock... [2024-12-20 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:18:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:19:04 [end_date_ymd] => 2024-12-20 04:19:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:19:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:19:16] Production.INFO: count ==126 [2024-12-20 04:19:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:19:04 - End Time 2024-12-20 04:19:04 [2024-12-20 04:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060326', 'tblTempUsageDetail_20' ) start [2024-12-20 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060326', 'tblTempUsageDetail_20' ) end [2024-12-20 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060326', 'tblTempVendorCDR_20' ) start [2024-12-20 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060326', 'tblTempVendorCDR_20' ) end [2024-12-20 04:19:16] Production.INFO: ProcessCDR(1,14060326,1,1,2) [2024-12-20 04:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060326', 'tblTempUsageDetail_20' ) start [2024-12-20 04:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060326', 'tblTempUsageDetail_20' ) end [2024-12-20 04:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:19:19] Production.INFO: ==32270== Releasing lock... [2024-12-20 04:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:19:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:20:05 [end_date_ymd] => 2024-12-20 04:20:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:20:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:20:17] Production.INFO: count ==120 [2024-12-20 04:20:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:20:05 - End Time 2024-12-20 04:20:05 [2024-12-20 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060331', 'tblTempUsageDetail_20' ) start [2024-12-20 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060331', 'tblTempUsageDetail_20' ) end [2024-12-20 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060331', 'tblTempVendorCDR_20' ) start [2024-12-20 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060331', 'tblTempVendorCDR_20' ) end [2024-12-20 04:20:17] Production.INFO: ProcessCDR(1,14060331,1,1,2) [2024-12-20 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060331', 'tblTempUsageDetail_20' ) start [2024-12-20 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060331', 'tblTempUsageDetail_20' ) end [2024-12-20 04:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:20:20] Production.INFO: ==32346== Releasing lock... [2024-12-20 04:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:20:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:21:04 [end_date_ymd] => 2024-12-20 04:21:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:21:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:21:16] Production.INFO: count ==120 [2024-12-20 04:21:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:21:04 - End Time 2024-12-20 04:21:04 [2024-12-20 04:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060337', 'tblTempUsageDetail_20' ) start [2024-12-20 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060337', 'tblTempUsageDetail_20' ) end [2024-12-20 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060337', 'tblTempVendorCDR_20' ) start [2024-12-20 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060337', 'tblTempVendorCDR_20' ) end [2024-12-20 04:21:16] Production.INFO: ProcessCDR(1,14060337,1,1,2) [2024-12-20 04:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060337', 'tblTempUsageDetail_20' ) start [2024-12-20 04:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060337', 'tblTempUsageDetail_20' ) end [2024-12-20 04:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:21:19] Production.INFO: ==32462== Releasing lock... [2024-12-20 04:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:21:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:22:05 [end_date_ymd] => 2024-12-20 04:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:22:16] Production.INFO: count ==120 [2024-12-20 04:22:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:22:05 - End Time 2024-12-20 04:22:05 [2024-12-20 04:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060342', 'tblTempUsageDetail_20' ) start [2024-12-20 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060342', 'tblTempUsageDetail_20' ) end [2024-12-20 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060342', 'tblTempVendorCDR_20' ) start [2024-12-20 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060342', 'tblTempVendorCDR_20' ) end [2024-12-20 04:22:16] Production.INFO: ProcessCDR(1,14060342,1,1,2) [2024-12-20 04:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060342', 'tblTempUsageDetail_20' ) start [2024-12-20 04:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060342', 'tblTempUsageDetail_20' ) end [2024-12-20 04:22:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:22:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:22:19] Production.INFO: ==32542== Releasing lock... [2024-12-20 04:22:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:22:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:23:05 [end_date_ymd] => 2024-12-20 04:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:23:17] Production.INFO: count ==120 [2024-12-20 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:23:05 - End Time 2024-12-20 04:23:05 [2024-12-20 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060347', 'tblTempUsageDetail_20' ) start [2024-12-20 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060347', 'tblTempUsageDetail_20' ) end [2024-12-20 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060347', 'tblTempVendorCDR_20' ) start [2024-12-20 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060347', 'tblTempVendorCDR_20' ) end [2024-12-20 04:23:17] Production.INFO: ProcessCDR(1,14060347,1,1,2) [2024-12-20 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060347', 'tblTempUsageDetail_20' ) start [2024-12-20 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060347', 'tblTempUsageDetail_20' ) end [2024-12-20 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:23:20] Production.INFO: ==32612== Releasing lock... [2024-12-20 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:23:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:24:05 [end_date_ymd] => 2024-12-20 04:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:24:17] Production.INFO: count ==120 [2024-12-20 04:24:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:24:05 - End Time 2024-12-20 04:24:05 [2024-12-20 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060352', 'tblTempUsageDetail_20' ) start [2024-12-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060352', 'tblTempUsageDetail_20' ) end [2024-12-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060352', 'tblTempVendorCDR_20' ) start [2024-12-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060352', 'tblTempVendorCDR_20' ) end [2024-12-20 04:24:17] Production.INFO: ProcessCDR(1,14060352,1,1,2) [2024-12-20 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060352', 'tblTempUsageDetail_20' ) start [2024-12-20 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060352', 'tblTempUsageDetail_20' ) end [2024-12-20 04:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:24:20] Production.INFO: ==32693== Releasing lock... [2024-12-20 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:25:05 [end_date_ymd] => 2024-12-20 04:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:25:17] Production.INFO: count ==120 [2024-12-20 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:25:05 - End Time 2024-12-20 04:25:05 [2024-12-20 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060357', 'tblTempUsageDetail_20' ) start [2024-12-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060357', 'tblTempUsageDetail_20' ) end [2024-12-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060357', 'tblTempVendorCDR_20' ) start [2024-12-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060357', 'tblTempVendorCDR_20' ) end [2024-12-20 04:25:17] Production.INFO: ProcessCDR(1,14060357,1,1,2) [2024-12-20 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060357', 'tblTempUsageDetail_20' ) start [2024-12-20 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060357', 'tblTempUsageDetail_20' ) end [2024-12-20 04:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:25:20] Production.INFO: ==304== Releasing lock... [2024-12-20 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:25:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:26:04 [end_date_ymd] => 2024-12-20 04:26:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:26:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:26:17] Production.INFO: count ==120 [2024-12-20 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:26:04 - End Time 2024-12-20 04:26:04 [2024-12-20 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060362', 'tblTempUsageDetail_20' ) start [2024-12-20 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060362', 'tblTempUsageDetail_20' ) end [2024-12-20 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060362', 'tblTempVendorCDR_20' ) start [2024-12-20 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060362', 'tblTempVendorCDR_20' ) end [2024-12-20 04:26:17] Production.INFO: ProcessCDR(1,14060362,1,1,2) [2024-12-20 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060362', 'tblTempUsageDetail_20' ) start [2024-12-20 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060362', 'tblTempUsageDetail_20' ) end [2024-12-20 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:26:20] Production.INFO: ==398== Releasing lock... [2024-12-20 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:26:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:27:05 [end_date_ymd] => 2024-12-20 04:27:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:27:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:27:18] Production.INFO: count ==120 [2024-12-20 04:27:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:27:05 - End Time 2024-12-20 04:27:05 [2024-12-20 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060367', 'tblTempUsageDetail_20' ) start [2024-12-20 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060367', 'tblTempUsageDetail_20' ) end [2024-12-20 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060367', 'tblTempVendorCDR_20' ) start [2024-12-20 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060367', 'tblTempVendorCDR_20' ) end [2024-12-20 04:27:18] Production.INFO: ProcessCDR(1,14060367,1,1,2) [2024-12-20 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060367', 'tblTempUsageDetail_20' ) start [2024-12-20 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060367', 'tblTempUsageDetail_20' ) end [2024-12-20 04:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:27:21] Production.INFO: ==482== Releasing lock... [2024-12-20 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:28:05 [end_date_ymd] => 2024-12-20 04:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:28:16] Production.INFO: count ==120 [2024-12-20 04:28:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:28:05 - End Time 2024-12-20 04:28:05 [2024-12-20 04:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060372', 'tblTempUsageDetail_20' ) start [2024-12-20 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060372', 'tblTempUsageDetail_20' ) end [2024-12-20 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060372', 'tblTempVendorCDR_20' ) start [2024-12-20 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060372', 'tblTempVendorCDR_20' ) end [2024-12-20 04:28:16] Production.INFO: ProcessCDR(1,14060372,1,1,2) [2024-12-20 04:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060372', 'tblTempUsageDetail_20' ) start [2024-12-20 04:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060372', 'tblTempUsageDetail_20' ) end [2024-12-20 04:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:28:19] Production.INFO: ==563== Releasing lock... [2024-12-20 04:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:28:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:29:05 [end_date_ymd] => 2024-12-20 04:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:29:17] Production.INFO: count ==120 [2024-12-20 04:29:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:29:05 - End Time 2024-12-20 04:29:05 [2024-12-20 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060377', 'tblTempUsageDetail_20' ) start [2024-12-20 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060377', 'tblTempUsageDetail_20' ) end [2024-12-20 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060377', 'tblTempVendorCDR_20' ) start [2024-12-20 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060377', 'tblTempVendorCDR_20' ) end [2024-12-20 04:29:17] Production.INFO: ProcessCDR(1,14060377,1,1,2) [2024-12-20 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060377', 'tblTempUsageDetail_20' ) start [2024-12-20 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060377', 'tblTempUsageDetail_20' ) end [2024-12-20 04:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:29:20] Production.INFO: ==652== Releasing lock... [2024-12-20 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:29:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:30:05 [end_date_ymd] => 2024-12-20 04:30:05 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:30:05' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:30:17] Production.INFO: count ==116 [2024-12-20 04:30:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:30:05 - End Time 2024-12-20 04:30:05 [2024-12-20 04:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060384', 'tblTempUsageDetail_20' ) start [2024-12-20 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060384', 'tblTempUsageDetail_20' ) end [2024-12-20 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060384', 'tblTempVendorCDR_20' ) start [2024-12-20 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060384', 'tblTempVendorCDR_20' ) end [2024-12-20 04:30:17] Production.INFO: ProcessCDR(1,14060384,1,1,2) [2024-12-20 04:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060384', 'tblTempUsageDetail_20' ) start [2024-12-20 04:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060384', 'tblTempUsageDetail_20' ) end [2024-12-20 04:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:30:20] Production.INFO: ==758== Releasing lock... [2024-12-20 04:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:30:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:31:04 [end_date_ymd] => 2024-12-20 04:31:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:31:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:31:16] Production.INFO: count ==114 [2024-12-20 04:31:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:31:04 - End Time 2024-12-20 04:31:04 [2024-12-20 04:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060389', 'tblTempUsageDetail_20' ) start [2024-12-20 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060389', 'tblTempUsageDetail_20' ) end [2024-12-20 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060389', 'tblTempVendorCDR_20' ) start [2024-12-20 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060389', 'tblTempVendorCDR_20' ) end [2024-12-20 04:31:16] Production.INFO: ProcessCDR(1,14060389,1,1,2) [2024-12-20 04:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060389', 'tblTempUsageDetail_20' ) start [2024-12-20 04:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060389', 'tblTempUsageDetail_20' ) end [2024-12-20 04:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:31:19] Production.INFO: ==870== Releasing lock... [2024-12-20 04:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:31:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:32:05 [end_date_ymd] => 2024-12-20 04:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:32:17] Production.INFO: count ==114 [2024-12-20 04:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:32:05 - End Time 2024-12-20 04:32:05 [2024-12-20 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060394', 'tblTempUsageDetail_20' ) start [2024-12-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060394', 'tblTempUsageDetail_20' ) end [2024-12-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060394', 'tblTempVendorCDR_20' ) start [2024-12-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060394', 'tblTempVendorCDR_20' ) end [2024-12-20 04:32:17] Production.INFO: ProcessCDR(1,14060394,1,1,2) [2024-12-20 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060394', 'tblTempUsageDetail_20' ) start [2024-12-20 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060394', 'tblTempUsageDetail_20' ) end [2024-12-20 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:32:20] Production.INFO: ==953== Releasing lock... [2024-12-20 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:32:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:33:04 [end_date_ymd] => 2024-12-20 04:33:04 [RateCDR] => 1 ) [2024-12-20 04:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:33:04' and `end` < '2024-12-20 04:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:33:17] Production.INFO: count ==114 [2024-12-20 04:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:33:04 - End Time 2024-12-20 04:33:04 [2024-12-20 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060399', 'tblTempUsageDetail_20' ) start [2024-12-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060399', 'tblTempUsageDetail_20' ) end [2024-12-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060399', 'tblTempVendorCDR_20' ) start [2024-12-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060399', 'tblTempVendorCDR_20' ) end [2024-12-20 04:33:17] Production.INFO: ProcessCDR(1,14060399,1,1,2) [2024-12-20 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060399', 'tblTempUsageDetail_20' ) start [2024-12-20 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060399', 'tblTempUsageDetail_20' ) end [2024-12-20 04:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:33:20] Production.INFO: ==1031== Releasing lock... [2024-12-20 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:33:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:34:05 [end_date_ymd] => 2024-12-20 04:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:34:16] Production.INFO: count ==114 [2024-12-20 04:34:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:34:05 - End Time 2024-12-20 04:34:05 [2024-12-20 04:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060404', 'tblTempUsageDetail_20' ) start [2024-12-20 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060404', 'tblTempUsageDetail_20' ) end [2024-12-20 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060404', 'tblTempVendorCDR_20' ) start [2024-12-20 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060404', 'tblTempVendorCDR_20' ) end [2024-12-20 04:34:16] Production.INFO: ProcessCDR(1,14060404,1,1,2) [2024-12-20 04:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060404', 'tblTempUsageDetail_20' ) start [2024-12-20 04:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060404', 'tblTempUsageDetail_20' ) end [2024-12-20 04:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:34:19] Production.INFO: ==1107== Releasing lock... [2024-12-20 04:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:34:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:35:04 [end_date_ymd] => 2024-12-20 04:35:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:35:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:35:16] Production.INFO: count ==114 [2024-12-20 04:35:16] Production.ERROR: pbx CDR StartTime 2024-12-20 01:35:04 - End Time 2024-12-20 04:35:04 [2024-12-20 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060409', 'tblTempUsageDetail_20' ) start [2024-12-20 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060409', 'tblTempUsageDetail_20' ) end [2024-12-20 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060409', 'tblTempVendorCDR_20' ) start [2024-12-20 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060409', 'tblTempVendorCDR_20' ) end [2024-12-20 04:35:16] Production.INFO: ProcessCDR(1,14060409,1,1,2) [2024-12-20 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060409', 'tblTempUsageDetail_20' ) start [2024-12-20 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060409', 'tblTempUsageDetail_20' ) end [2024-12-20 04:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:35:19] Production.INFO: ==1190== Releasing lock... [2024-12-20 04:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:35:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:36:05 [end_date_ymd] => 2024-12-20 04:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:36:17] Production.INFO: count ==114 [2024-12-20 04:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:36:05 - End Time 2024-12-20 04:36:05 [2024-12-20 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060414', 'tblTempUsageDetail_20' ) start [2024-12-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060414', 'tblTempUsageDetail_20' ) end [2024-12-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060414', 'tblTempVendorCDR_20' ) start [2024-12-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060414', 'tblTempVendorCDR_20' ) end [2024-12-20 04:36:17] Production.INFO: ProcessCDR(1,14060414,1,1,2) [2024-12-20 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060414', 'tblTempUsageDetail_20' ) start [2024-12-20 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060414', 'tblTempUsageDetail_20' ) end [2024-12-20 04:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:36:20] Production.INFO: ==1318== Releasing lock... [2024-12-20 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:36:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:37:05 [end_date_ymd] => 2024-12-20 04:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:37:17] Production.INFO: count ==114 [2024-12-20 04:37:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:37:05 - End Time 2024-12-20 04:37:05 [2024-12-20 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060419', 'tblTempUsageDetail_20' ) start [2024-12-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060419', 'tblTempUsageDetail_20' ) end [2024-12-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060419', 'tblTempVendorCDR_20' ) start [2024-12-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060419', 'tblTempVendorCDR_20' ) end [2024-12-20 04:37:17] Production.INFO: ProcessCDR(1,14060419,1,1,2) [2024-12-20 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060419', 'tblTempUsageDetail_20' ) start [2024-12-20 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060419', 'tblTempUsageDetail_20' ) end [2024-12-20 04:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:37:20] Production.INFO: ==1396== Releasing lock... [2024-12-20 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:37:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:38:05 [end_date_ymd] => 2024-12-20 04:38:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:38:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:38:17] Production.INFO: count ==114 [2024-12-20 04:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:38:05 - End Time 2024-12-20 04:38:05 [2024-12-20 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060424', 'tblTempUsageDetail_20' ) start [2024-12-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060424', 'tblTempUsageDetail_20' ) end [2024-12-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060424', 'tblTempVendorCDR_20' ) start [2024-12-20 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060424', 'tblTempVendorCDR_20' ) end [2024-12-20 04:38:18] Production.INFO: ProcessCDR(1,14060424,1,1,2) [2024-12-20 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060424', 'tblTempUsageDetail_20' ) start [2024-12-20 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060424', 'tblTempUsageDetail_20' ) end [2024-12-20 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:38:21] Production.INFO: ==1472== Releasing lock... [2024-12-20 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:39:05 [end_date_ymd] => 2024-12-20 04:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:39:18] Production.INFO: count ==114 [2024-12-20 04:39:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:39:05 - End Time 2024-12-20 04:39:05 [2024-12-20 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060429', 'tblTempUsageDetail_20' ) start [2024-12-20 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060429', 'tblTempUsageDetail_20' ) end [2024-12-20 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060429', 'tblTempVendorCDR_20' ) start [2024-12-20 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060429', 'tblTempVendorCDR_20' ) end [2024-12-20 04:39:18] Production.INFO: ProcessCDR(1,14060429,1,1,2) [2024-12-20 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060429', 'tblTempUsageDetail_20' ) start [2024-12-20 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060429', 'tblTempUsageDetail_20' ) end [2024-12-20 04:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:39:21] Production.INFO: ==1587== Releasing lock... [2024-12-20 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:39:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:40:05 [end_date_ymd] => 2024-12-20 04:40:05 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:40:05' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:40:17] Production.INFO: count ==112 [2024-12-20 04:40:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:40:05 - End Time 2024-12-20 04:40:05 [2024-12-20 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060434', 'tblTempUsageDetail_20' ) start [2024-12-20 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060434', 'tblTempUsageDetail_20' ) end [2024-12-20 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060434', 'tblTempVendorCDR_20' ) start [2024-12-20 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060434', 'tblTempVendorCDR_20' ) end [2024-12-20 04:40:17] Production.INFO: ProcessCDR(1,14060434,1,1,2) [2024-12-20 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060434', 'tblTempUsageDetail_20' ) start [2024-12-20 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060434', 'tblTempUsageDetail_20' ) end [2024-12-20 04:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:40:20] Production.INFO: ==1663== Releasing lock... [2024-12-20 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:40:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:41:05 [end_date_ymd] => 2024-12-20 04:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:41:17] Production.INFO: count ==112 [2024-12-20 04:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:41:05 - End Time 2024-12-20 04:41:05 [2024-12-20 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060440', 'tblTempUsageDetail_20' ) start [2024-12-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060440', 'tblTempUsageDetail_20' ) end [2024-12-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060440', 'tblTempVendorCDR_20' ) start [2024-12-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060440', 'tblTempVendorCDR_20' ) end [2024-12-20 04:41:17] Production.INFO: ProcessCDR(1,14060440,1,1,2) [2024-12-20 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060440', 'tblTempUsageDetail_20' ) start [2024-12-20 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060440', 'tblTempUsageDetail_20' ) end [2024-12-20 04:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:41:20] Production.INFO: ==1743== Releasing lock... [2024-12-20 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:41:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:42:04 [end_date_ymd] => 2024-12-20 04:42:04 [RateCDR] => 1 ) [2024-12-20 04:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:42:04' and `end` < '2024-12-20 04:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:42:17] Production.INFO: count ==111 [2024-12-20 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:42:04 - End Time 2024-12-20 04:42:04 [2024-12-20 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060445', 'tblTempUsageDetail_20' ) start [2024-12-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060445', 'tblTempUsageDetail_20' ) end [2024-12-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060445', 'tblTempVendorCDR_20' ) start [2024-12-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060445', 'tblTempVendorCDR_20' ) end [2024-12-20 04:42:17] Production.INFO: ProcessCDR(1,14060445,1,1,2) [2024-12-20 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060445', 'tblTempUsageDetail_20' ) start [2024-12-20 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060445', 'tblTempUsageDetail_20' ) end [2024-12-20 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:42:20] Production.INFO: ==1818== Releasing lock... [2024-12-20 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:42:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:43:05 [end_date_ymd] => 2024-12-20 04:43:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:43:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:43:18] Production.INFO: count ==111 [2024-12-20 04:43:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:43:05 - End Time 2024-12-20 04:43:05 [2024-12-20 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060450', 'tblTempUsageDetail_20' ) start [2024-12-20 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060450', 'tblTempUsageDetail_20' ) end [2024-12-20 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060450', 'tblTempVendorCDR_20' ) start [2024-12-20 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060450', 'tblTempVendorCDR_20' ) end [2024-12-20 04:43:18] Production.INFO: ProcessCDR(1,14060450,1,1,2) [2024-12-20 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060450', 'tblTempUsageDetail_20' ) start [2024-12-20 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060450', 'tblTempUsageDetail_20' ) end [2024-12-20 04:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:43:21] Production.INFO: ==1892== Releasing lock... [2024-12-20 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:44:05 [end_date_ymd] => 2024-12-20 04:44:05 [RateCDR] => 1 ) [2024-12-20 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:44:05' and `end` < '2024-12-20 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:44:17] Production.INFO: count ==111 [2024-12-20 04:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:44:05 - End Time 2024-12-20 04:44:05 [2024-12-20 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060455', 'tblTempUsageDetail_20' ) start [2024-12-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060455', 'tblTempUsageDetail_20' ) end [2024-12-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060455', 'tblTempVendorCDR_20' ) start [2024-12-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060455', 'tblTempVendorCDR_20' ) end [2024-12-20 04:44:17] Production.INFO: ProcessCDR(1,14060455,1,1,2) [2024-12-20 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060455', 'tblTempUsageDetail_20' ) start [2024-12-20 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060455', 'tblTempUsageDetail_20' ) end [2024-12-20 04:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:44:20] Production.INFO: ==1965== Releasing lock... [2024-12-20 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:44:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:45:04 [end_date_ymd] => 2024-12-20 04:45:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:45:04' and `end` < '2024-12-20 04:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:45:17] Production.INFO: count ==111 [2024-12-20 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:45:04 - End Time 2024-12-20 04:45:04 [2024-12-20 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060460', 'tblTempUsageDetail_20' ) start [2024-12-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060460', 'tblTempUsageDetail_20' ) end [2024-12-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060460', 'tblTempVendorCDR_20' ) start [2024-12-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060460', 'tblTempVendorCDR_20' ) end [2024-12-20 04:45:17] Production.INFO: ProcessCDR(1,14060460,1,1,2) [2024-12-20 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060460', 'tblTempUsageDetail_20' ) start [2024-12-20 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060460', 'tblTempUsageDetail_20' ) end [2024-12-20 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:45:20] Production.INFO: ==2041== Releasing lock... [2024-12-20 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:45:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:46:04 [end_date_ymd] => 2024-12-20 04:46:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:46:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:46:17] Production.INFO: count ==111 [2024-12-20 04:46:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:46:04 - End Time 2024-12-20 04:46:04 [2024-12-20 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060465', 'tblTempUsageDetail_20' ) start [2024-12-20 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060465', 'tblTempUsageDetail_20' ) end [2024-12-20 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060465', 'tblTempVendorCDR_20' ) start [2024-12-20 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060465', 'tblTempVendorCDR_20' ) end [2024-12-20 04:46:17] Production.INFO: ProcessCDR(1,14060465,1,1,2) [2024-12-20 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060465', 'tblTempUsageDetail_20' ) start [2024-12-20 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060465', 'tblTempUsageDetail_20' ) end [2024-12-20 04:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:46:20] Production.INFO: ==2111== Releasing lock... [2024-12-20 04:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:46:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:47:04 [end_date_ymd] => 2024-12-20 04:47:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:47:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:47:19] Production.INFO: count ==111 [2024-12-20 04:47:19] Production.ERROR: pbx CDR StartTime 2024-12-20 01:47:04 - End Time 2024-12-20 04:47:04 [2024-12-20 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060470', 'tblTempUsageDetail_20' ) start [2024-12-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060470', 'tblTempUsageDetail_20' ) end [2024-12-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060470', 'tblTempVendorCDR_20' ) start [2024-12-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060470', 'tblTempVendorCDR_20' ) end [2024-12-20 04:47:19] Production.INFO: ProcessCDR(1,14060470,1,1,2) [2024-12-20 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060470', 'tblTempUsageDetail_20' ) start [2024-12-20 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060470', 'tblTempUsageDetail_20' ) end [2024-12-20 04:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:47:22] Production.INFO: ==2180== Releasing lock... [2024-12-20 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:47:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:48:05 [end_date_ymd] => 2024-12-20 04:48:05 [RateCDR] => 1 ) [2024-12-20 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:48:05' and `end` < '2024-12-20 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:48:19] Production.INFO: count ==110 [2024-12-20 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-20 01:48:05 - End Time 2024-12-20 04:48:05 [2024-12-20 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060475', 'tblTempUsageDetail_20' ) start [2024-12-20 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060475', 'tblTempUsageDetail_20' ) end [2024-12-20 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060475', 'tblTempVendorCDR_20' ) start [2024-12-20 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060475', 'tblTempVendorCDR_20' ) end [2024-12-20 04:48:19] Production.INFO: ProcessCDR(1,14060475,1,1,2) [2024-12-20 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060475', 'tblTempUsageDetail_20' ) start [2024-12-20 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060475', 'tblTempUsageDetail_20' ) end [2024-12-20 04:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:48:22] Production.INFO: ==2265== Releasing lock... [2024-12-20 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:49:05 [end_date_ymd] => 2024-12-20 04:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:49:23] Production.INFO: count ==111 [2024-12-20 04:49:23] Production.ERROR: pbx CDR StartTime 2024-12-20 01:49:05 - End Time 2024-12-20 04:49:05 [2024-12-20 04:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060480', 'tblTempUsageDetail_20' ) start [2024-12-20 04:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060480', 'tblTempUsageDetail_20' ) end [2024-12-20 04:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060480', 'tblTempVendorCDR_20' ) start [2024-12-20 04:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060480', 'tblTempVendorCDR_20' ) end [2024-12-20 04:49:23] Production.INFO: ProcessCDR(1,14060480,1,1,2) [2024-12-20 04:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060480', 'tblTempUsageDetail_20' ) start [2024-12-20 04:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060480', 'tblTempUsageDetail_20' ) end [2024-12-20 04:49:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:49:26] Production.INFO: ==2336== Releasing lock... [2024-12-20 04:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:49:26] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:50:05 [end_date_ymd] => 2024-12-20 04:50:05 [RateCDR] => 1 ) [2024-12-20 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:50:05' and `end` < '2024-12-20 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:50:19] Production.INFO: count ==105 [2024-12-20 04:50:19] Production.ERROR: pbx CDR StartTime 2024-12-20 01:50:05 - End Time 2024-12-20 04:50:05 [2024-12-20 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060486', 'tblTempUsageDetail_20' ) start [2024-12-20 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060486', 'tblTempUsageDetail_20' ) end [2024-12-20 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060486', 'tblTempVendorCDR_20' ) start [2024-12-20 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060486', 'tblTempVendorCDR_20' ) end [2024-12-20 04:50:19] Production.INFO: ProcessCDR(1,14060486,1,1,2) [2024-12-20 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060486', 'tblTempUsageDetail_20' ) start [2024-12-20 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060486', 'tblTempUsageDetail_20' ) end [2024-12-20 04:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:50:22] Production.INFO: ==2411== Releasing lock... [2024-12-20 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:50:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:51:05 [end_date_ymd] => 2024-12-20 04:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:51:18] Production.INFO: count ==99 [2024-12-20 04:51:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:51:05 - End Time 2024-12-20 04:51:05 [2024-12-20 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060491', 'tblTempUsageDetail_20' ) start [2024-12-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060491', 'tblTempUsageDetail_20' ) end [2024-12-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060491', 'tblTempVendorCDR_20' ) start [2024-12-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060491', 'tblTempVendorCDR_20' ) end [2024-12-20 04:51:18] Production.INFO: ProcessCDR(1,14060491,1,1,2) [2024-12-20 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060491', 'tblTempUsageDetail_20' ) start [2024-12-20 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060491', 'tblTempUsageDetail_20' ) end [2024-12-20 04:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:51:21] Production.INFO: ==2483== Releasing lock... [2024-12-20 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:51:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:52:04 [end_date_ymd] => 2024-12-20 04:52:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:52:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:52:17] Production.INFO: count ==98 [2024-12-20 04:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 01:52:04 - End Time 2024-12-20 04:52:04 [2024-12-20 04:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060496', 'tblTempUsageDetail_20' ) start [2024-12-20 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060496', 'tblTempUsageDetail_20' ) end [2024-12-20 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060496', 'tblTempVendorCDR_20' ) start [2024-12-20 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060496', 'tblTempVendorCDR_20' ) end [2024-12-20 04:52:17] Production.INFO: ProcessCDR(1,14060496,1,1,2) [2024-12-20 04:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060496', 'tblTempUsageDetail_20' ) start [2024-12-20 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060496', 'tblTempUsageDetail_20' ) end [2024-12-20 04:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:52:20] Production.INFO: ==2591== Releasing lock... [2024-12-20 04:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:52:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:53:05 [end_date_ymd] => 2024-12-20 04:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:53:20] Production.INFO: count ==98 [2024-12-20 04:53:20] Production.ERROR: pbx CDR StartTime 2024-12-20 01:53:05 - End Time 2024-12-20 04:53:05 [2024-12-20 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060501', 'tblTempUsageDetail_20' ) start [2024-12-20 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060501', 'tblTempUsageDetail_20' ) end [2024-12-20 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060501', 'tblTempVendorCDR_20' ) start [2024-12-20 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060501', 'tblTempVendorCDR_20' ) end [2024-12-20 04:53:20] Production.INFO: ProcessCDR(1,14060501,1,1,2) [2024-12-20 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060501', 'tblTempUsageDetail_20' ) start [2024-12-20 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060501', 'tblTempUsageDetail_20' ) end [2024-12-20 04:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:53:23] Production.INFO: ==2664== Releasing lock... [2024-12-20 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:53:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:54:04 [end_date_ymd] => 2024-12-20 04:54:04 [RateCDR] => 1 ) [2024-12-20 04:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:54:04' and `end` < '2024-12-20 04:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:54:20] Production.INFO: count ==98 [2024-12-20 04:54:20] Production.ERROR: pbx CDR StartTime 2024-12-20 01:54:04 - End Time 2024-12-20 04:54:04 [2024-12-20 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060506', 'tblTempUsageDetail_20' ) start [2024-12-20 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060506', 'tblTempUsageDetail_20' ) end [2024-12-20 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060506', 'tblTempVendorCDR_20' ) start [2024-12-20 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060506', 'tblTempVendorCDR_20' ) end [2024-12-20 04:54:20] Production.INFO: ProcessCDR(1,14060506,1,1,2) [2024-12-20 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060506', 'tblTempUsageDetail_20' ) start [2024-12-20 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060506', 'tblTempUsageDetail_20' ) end [2024-12-20 04:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:54:23] Production.INFO: ==2757== Releasing lock... [2024-12-20 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:54:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:55:04 [end_date_ymd] => 2024-12-20 04:55:04 [RateCDR] => 1 ) [2024-12-20 04:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:55:04' and `end` < '2024-12-20 04:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:55:18] Production.INFO: count ==98 [2024-12-20 04:55:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:55:04 - End Time 2024-12-20 04:55:04 [2024-12-20 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060511', 'tblTempUsageDetail_20' ) start [2024-12-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060511', 'tblTempUsageDetail_20' ) end [2024-12-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060511', 'tblTempVendorCDR_20' ) start [2024-12-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060511', 'tblTempVendorCDR_20' ) end [2024-12-20 04:55:18] Production.INFO: ProcessCDR(1,14060511,1,1,2) [2024-12-20 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060511', 'tblTempUsageDetail_20' ) start [2024-12-20 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060511', 'tblTempUsageDetail_20' ) end [2024-12-20 04:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:55:21] Production.INFO: ==2828== Releasing lock... [2024-12-20 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:55:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:56:04 [end_date_ymd] => 2024-12-20 04:56:04 [RateCDR] => 1 ) [2024-12-20 04:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:56:04' and `end` < '2024-12-20 04:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:56:18] Production.INFO: count ==98 [2024-12-20 04:56:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:56:04 - End Time 2024-12-20 04:56:04 [2024-12-20 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060516', 'tblTempUsageDetail_20' ) start [2024-12-20 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060516', 'tblTempUsageDetail_20' ) end [2024-12-20 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060516', 'tblTempVendorCDR_20' ) start [2024-12-20 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060516', 'tblTempVendorCDR_20' ) end [2024-12-20 04:56:18] Production.INFO: ProcessCDR(1,14060516,1,1,2) [2024-12-20 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060516', 'tblTempUsageDetail_20' ) start [2024-12-20 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060516', 'tblTempUsageDetail_20' ) end [2024-12-20 04:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:56:21] Production.INFO: ==2898== Releasing lock... [2024-12-20 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:56:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:57:05 [end_date_ymd] => 2024-12-20 04:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 01:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 04:57:18] Production.INFO: count ==98 [2024-12-20 04:57:18] Production.ERROR: pbx CDR StartTime 2024-12-20 01:57:05 - End Time 2024-12-20 04:57:05 [2024-12-20 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060521', 'tblTempUsageDetail_20' ) start [2024-12-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060521', 'tblTempUsageDetail_20' ) end [2024-12-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060521', 'tblTempVendorCDR_20' ) start [2024-12-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060521', 'tblTempVendorCDR_20' ) end [2024-12-20 04:57:18] Production.INFO: ProcessCDR(1,14060521,1,1,2) [2024-12-20 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060521', 'tblTempUsageDetail_20' ) start [2024-12-20 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060521', 'tblTempUsageDetail_20' ) end [2024-12-20 04:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:57:21] Production.INFO: ==2969== Releasing lock... [2024-12-20 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:57:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:58:04 [end_date_ymd] => 2024-12-20 04:58:04 [RateCDR] => 1 ) [2024-12-20 04: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` >= '2024-12-20 01:58:04' and `end` < '2024-12-20 04: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 ,'') [2024-12-20 04:58:19] Production.INFO: count ==98 [2024-12-20 04:58:19] Production.ERROR: pbx CDR StartTime 2024-12-20 01:58:04 - End Time 2024-12-20 04:58:04 [2024-12-20 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060526', 'tblTempUsageDetail_20' ) start [2024-12-20 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060526', 'tblTempUsageDetail_20' ) end [2024-12-20 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060526', 'tblTempVendorCDR_20' ) start [2024-12-20 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060526', 'tblTempVendorCDR_20' ) end [2024-12-20 04:58:19] Production.INFO: ProcessCDR(1,14060526,1,1,2) [2024-12-20 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060526', 'tblTempUsageDetail_20' ) start [2024-12-20 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060526', 'tblTempUsageDetail_20' ) end [2024-12-20 04:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:58:22] Production.INFO: ==3040== Releasing lock... [2024-12-20 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:58:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 01:59:05 [end_date_ymd] => 2024-12-20 04:59:05 [RateCDR] => 1 ) [2024-12-20 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 01:59:05' and `end` < '2024-12-20 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 04:59:19] Production.INFO: count ==98 [2024-12-20 04:59:19] Production.ERROR: pbx CDR StartTime 2024-12-20 01:59:05 - End Time 2024-12-20 04:59:05 [2024-12-20 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060531', 'tblTempUsageDetail_20' ) start [2024-12-20 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060531', 'tblTempUsageDetail_20' ) end [2024-12-20 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060531', 'tblTempVendorCDR_20' ) start [2024-12-20 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060531', 'tblTempVendorCDR_20' ) end [2024-12-20 04:59:19] Production.INFO: ProcessCDR(1,14060531,1,1,2) [2024-12-20 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060531', 'tblTempUsageDetail_20' ) start [2024-12-20 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060531', 'tblTempUsageDetail_20' ) end [2024-12-20 04:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 04:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 04:59:22] Production.INFO: ==3112== Releasing lock... [2024-12-20 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 04:59:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:00:05 [end_date_ymd] => 2024-12-20 05:00:05 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:00:05' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:00:18] Production.INFO: count ==88 [2024-12-20 05:00:18] Production.ERROR: pbx CDR StartTime 2024-12-20 02:00:05 - End Time 2024-12-20 05:00:05 [2024-12-20 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060537', 'tblTempUsageDetail_20' ) start [2024-12-20 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060537', 'tblTempUsageDetail_20' ) end [2024-12-20 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060537', 'tblTempVendorCDR_20' ) start [2024-12-20 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060537', 'tblTempVendorCDR_20' ) end [2024-12-20 05:00:18] Production.INFO: ProcessCDR(1,14060537,1,1,2) [2024-12-20 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060537', 'tblTempUsageDetail_20' ) start [2024-12-20 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060537', 'tblTempUsageDetail_20' ) end [2024-12-20 05:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:00:21] Production.INFO: ==3191== Releasing lock... [2024-12-20 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:00:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:01:04 [end_date_ymd] => 2024-12-20 05:01:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:01:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:01:19] Production.INFO: count ==82 [2024-12-20 05:01:19] Production.ERROR: pbx CDR StartTime 2024-12-20 02:01:04 - End Time 2024-12-20 05:01:04 [2024-12-20 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060542', 'tblTempUsageDetail_20' ) start [2024-12-20 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060542', 'tblTempUsageDetail_20' ) end [2024-12-20 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060542', 'tblTempVendorCDR_20' ) start [2024-12-20 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060542', 'tblTempVendorCDR_20' ) end [2024-12-20 05:01:19] Production.INFO: ProcessCDR(1,14060542,1,1,2) [2024-12-20 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060542', 'tblTempUsageDetail_20' ) start [2024-12-20 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060542', 'tblTempUsageDetail_20' ) end [2024-12-20 05:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:01:22] Production.INFO: ==3275== Releasing lock... [2024-12-20 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:01:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:02:05 [end_date_ymd] => 2024-12-20 05:02:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:02:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:02:20] Production.INFO: count ==82 [2024-12-20 05:02:20] Production.ERROR: pbx CDR StartTime 2024-12-20 02:02:05 - End Time 2024-12-20 05:02:05 [2024-12-20 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060547', 'tblTempUsageDetail_20' ) start [2024-12-20 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060547', 'tblTempUsageDetail_20' ) end [2024-12-20 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060547', 'tblTempVendorCDR_20' ) start [2024-12-20 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060547', 'tblTempVendorCDR_20' ) end [2024-12-20 05:02:20] Production.INFO: ProcessCDR(1,14060547,1,1,2) [2024-12-20 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060547', 'tblTempUsageDetail_20' ) start [2024-12-20 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060547', 'tblTempUsageDetail_20' ) end [2024-12-20 05:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:02:23] Production.INFO: ==3347== Releasing lock... [2024-12-20 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:02:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:03:04 [end_date_ymd] => 2024-12-20 05:03:04 [RateCDR] => 1 ) [2024-12-20 05:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:03:04' and `end` < '2024-12-20 05:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:03:17] Production.INFO: count ==82 [2024-12-20 05:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:03:04 - End Time 2024-12-20 05:03:04 [2024-12-20 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060552', 'tblTempUsageDetail_20' ) start [2024-12-20 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060552', 'tblTempUsageDetail_20' ) end [2024-12-20 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060552', 'tblTempVendorCDR_20' ) start [2024-12-20 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060552', 'tblTempVendorCDR_20' ) end [2024-12-20 05:03:17] Production.INFO: ProcessCDR(1,14060552,1,1,2) [2024-12-20 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060552', 'tblTempUsageDetail_20' ) start [2024-12-20 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060552', 'tblTempUsageDetail_20' ) end [2024-12-20 05:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:03:20] Production.INFO: ==3418== Releasing lock... [2024-12-20 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:03:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:04:05 [end_date_ymd] => 2024-12-20 05:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:04:18] Production.INFO: count ==82 [2024-12-20 05:04:18] Production.ERROR: pbx CDR StartTime 2024-12-20 02:04:05 - End Time 2024-12-20 05:04:05 [2024-12-20 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060557', 'tblTempUsageDetail_20' ) start [2024-12-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060557', 'tblTempUsageDetail_20' ) end [2024-12-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060557', 'tblTempVendorCDR_20' ) start [2024-12-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060557', 'tblTempVendorCDR_20' ) end [2024-12-20 05:04:18] Production.INFO: ProcessCDR(1,14060557,1,1,2) [2024-12-20 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060557', 'tblTempUsageDetail_20' ) start [2024-12-20 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060557', 'tblTempUsageDetail_20' ) end [2024-12-20 05:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:04:21] Production.INFO: ==3487== Releasing lock... [2024-12-20 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:04:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:05:04 [end_date_ymd] => 2024-12-20 05:05:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:05:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:05:16] Production.INFO: count ==82 [2024-12-20 05:05:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:05:04 - End Time 2024-12-20 05:05:04 [2024-12-20 05:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060562', 'tblTempUsageDetail_20' ) start [2024-12-20 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060562', 'tblTempUsageDetail_20' ) end [2024-12-20 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060562', 'tblTempVendorCDR_20' ) start [2024-12-20 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060562', 'tblTempVendorCDR_20' ) end [2024-12-20 05:05:16] Production.INFO: ProcessCDR(1,14060562,1,1,2) [2024-12-20 05:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060562', 'tblTempUsageDetail_20' ) start [2024-12-20 05:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060562', 'tblTempUsageDetail_20' ) end [2024-12-20 05:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:05:19] Production.INFO: ==3560== Releasing lock... [2024-12-20 05:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:05:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:06:05 [end_date_ymd] => 2024-12-20 05:06:05 [RateCDR] => 1 ) [2024-12-20 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:06:05' and `end` < '2024-12-20 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:06:36] Production.INFO: count ==82 [2024-12-20 05:06:36] Production.ERROR: pbx CDR StartTime 2024-12-20 02:06:05 - End Time 2024-12-20 05:06:05 [2024-12-20 05:06:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060567', 'tblTempUsageDetail_20' ) start [2024-12-20 05:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060567', 'tblTempUsageDetail_20' ) end [2024-12-20 05:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060567', 'tblTempVendorCDR_20' ) start [2024-12-20 05:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060567', 'tblTempVendorCDR_20' ) end [2024-12-20 05:06:36] Production.INFO: ProcessCDR(1,14060567,1,1,2) [2024-12-20 05:06:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:06:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:06:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060567', 'tblTempUsageDetail_20' ) start [2024-12-20 05:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060567', 'tblTempUsageDetail_20' ) end [2024-12-20 05:06:39] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:06:39] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:06:39] Production.INFO: ==3631== Releasing lock... [2024-12-20 05:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:06:39] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:07:04 [end_date_ymd] => 2024-12-20 05:07:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:07:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:07:17] Production.INFO: count ==82 [2024-12-20 05:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:07:04 - End Time 2024-12-20 05:07:04 [2024-12-20 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060572', 'tblTempUsageDetail_20' ) start [2024-12-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060572', 'tblTempUsageDetail_20' ) end [2024-12-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060572', 'tblTempVendorCDR_20' ) start [2024-12-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060572', 'tblTempVendorCDR_20' ) end [2024-12-20 05:07:17] Production.INFO: ProcessCDR(1,14060572,1,1,2) [2024-12-20 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060572', 'tblTempUsageDetail_20' ) start [2024-12-20 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060572', 'tblTempUsageDetail_20' ) end [2024-12-20 05:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:07:20] Production.INFO: ==3701== Releasing lock... [2024-12-20 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:07:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:08:04 [end_date_ymd] => 2024-12-20 05:08:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:08:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:08:17] Production.INFO: count ==82 [2024-12-20 05:08:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:08:04 - End Time 2024-12-20 05:08:04 [2024-12-20 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060577', 'tblTempUsageDetail_20' ) start [2024-12-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060577', 'tblTempUsageDetail_20' ) end [2024-12-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060577', 'tblTempVendorCDR_20' ) start [2024-12-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060577', 'tblTempVendorCDR_20' ) end [2024-12-20 05:08:17] Production.INFO: ProcessCDR(1,14060577,1,1,2) [2024-12-20 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060577', 'tblTempUsageDetail_20' ) start [2024-12-20 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060577', 'tblTempUsageDetail_20' ) end [2024-12-20 05:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:08:20] Production.INFO: ==3814== Releasing lock... [2024-12-20 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:09:05 [end_date_ymd] => 2024-12-20 05:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:09:17] Production.INFO: count ==82 [2024-12-20 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:09:05 - End Time 2024-12-20 05:09:05 [2024-12-20 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060582', 'tblTempUsageDetail_20' ) start [2024-12-20 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060582', 'tblTempUsageDetail_20' ) end [2024-12-20 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060582', 'tblTempVendorCDR_20' ) start [2024-12-20 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060582', 'tblTempVendorCDR_20' ) end [2024-12-20 05:09:17] Production.INFO: ProcessCDR(1,14060582,1,1,2) [2024-12-20 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060582', 'tblTempUsageDetail_20' ) start [2024-12-20 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060582', 'tblTempUsageDetail_20' ) end [2024-12-20 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:09:20] Production.INFO: ==3884== Releasing lock... [2024-12-20 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:10:04 [end_date_ymd] => 2024-12-20 05:10:04 [RateCDR] => 1 ) [2024-12-20 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:10:04' and `end` < '2024-12-20 05:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:10:17] Production.INFO: count ==82 [2024-12-20 05:10:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:10:04 - End Time 2024-12-20 05:10:04 [2024-12-20 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060587', 'tblTempUsageDetail_20' ) start [2024-12-20 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060587', 'tblTempUsageDetail_20' ) end [2024-12-20 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060587', 'tblTempVendorCDR_20' ) start [2024-12-20 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060587', 'tblTempVendorCDR_20' ) end [2024-12-20 05:10:17] Production.INFO: ProcessCDR(1,14060587,1,1,2) [2024-12-20 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060587', 'tblTempUsageDetail_20' ) start [2024-12-20 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060587', 'tblTempUsageDetail_20' ) end [2024-12-20 05:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:10:20] Production.INFO: ==3955== Releasing lock... [2024-12-20 05:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:10:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:11:05 [end_date_ymd] => 2024-12-20 05:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:11:17] Production.INFO: count ==82 [2024-12-20 05:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:11:05 - End Time 2024-12-20 05:11:05 [2024-12-20 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060593', 'tblTempUsageDetail_20' ) start [2024-12-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060593', 'tblTempUsageDetail_20' ) end [2024-12-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060593', 'tblTempVendorCDR_20' ) start [2024-12-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060593', 'tblTempVendorCDR_20' ) end [2024-12-20 05:11:17] Production.INFO: ProcessCDR(1,14060593,1,1,2) [2024-12-20 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060593', 'tblTempUsageDetail_20' ) start [2024-12-20 05:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060593', 'tblTempUsageDetail_20' ) end [2024-12-20 05:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:11:19] Production.INFO: ==4028== Releasing lock... [2024-12-20 05:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:11:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:12:05 [end_date_ymd] => 2024-12-20 05:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:12:17] Production.INFO: count ==81 [2024-12-20 05:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:12:05 - End Time 2024-12-20 05:12:05 [2024-12-20 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060598', 'tblTempUsageDetail_20' ) start [2024-12-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060598', 'tblTempUsageDetail_20' ) end [2024-12-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060598', 'tblTempVendorCDR_20' ) start [2024-12-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060598', 'tblTempVendorCDR_20' ) end [2024-12-20 05:12:17] Production.INFO: ProcessCDR(1,14060598,1,1,2) [2024-12-20 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060598', 'tblTempUsageDetail_20' ) start [2024-12-20 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060598', 'tblTempUsageDetail_20' ) end [2024-12-20 05:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:12:20] Production.INFO: ==4099== Releasing lock... [2024-12-20 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:12:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:13:04 [end_date_ymd] => 2024-12-20 05:13:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:13:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:13:17] Production.INFO: count ==81 [2024-12-20 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:13:04 - End Time 2024-12-20 05:13:04 [2024-12-20 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060603', 'tblTempUsageDetail_20' ) start [2024-12-20 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060603', 'tblTempUsageDetail_20' ) end [2024-12-20 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060603', 'tblTempVendorCDR_20' ) start [2024-12-20 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060603', 'tblTempVendorCDR_20' ) end [2024-12-20 05:13:17] Production.INFO: ProcessCDR(1,14060603,1,1,2) [2024-12-20 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060603', 'tblTempUsageDetail_20' ) start [2024-12-20 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060603', 'tblTempUsageDetail_20' ) end [2024-12-20 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:13:20] Production.INFO: ==4171== Releasing lock... [2024-12-20 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:13:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:14:05 [end_date_ymd] => 2024-12-20 05:14:05 [RateCDR] => 1 ) [2024-12-20 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:14:05' and `end` < '2024-12-20 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:14:16] Production.INFO: count ==81 [2024-12-20 05:14:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:14:05 - End Time 2024-12-20 05:14:05 [2024-12-20 05:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060608', 'tblTempUsageDetail_20' ) start [2024-12-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060608', 'tblTempUsageDetail_20' ) end [2024-12-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060608', 'tblTempVendorCDR_20' ) start [2024-12-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060608', 'tblTempVendorCDR_20' ) end [2024-12-20 05:14:17] Production.INFO: ProcessCDR(1,14060608,1,1,2) [2024-12-20 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060608', 'tblTempUsageDetail_20' ) start [2024-12-20 05:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060608', 'tblTempUsageDetail_20' ) end [2024-12-20 05:14:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:14:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:14:19] Production.INFO: ==4243== Releasing lock... [2024-12-20 05:14:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:14:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:15:04 [end_date_ymd] => 2024-12-20 05:15:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:15:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:15:16] Production.INFO: count ==81 [2024-12-20 05:15:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:15:04 - End Time 2024-12-20 05:15:04 [2024-12-20 05:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060613', 'tblTempUsageDetail_20' ) start [2024-12-20 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060613', 'tblTempUsageDetail_20' ) end [2024-12-20 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060613', 'tblTempVendorCDR_20' ) start [2024-12-20 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060613', 'tblTempVendorCDR_20' ) end [2024-12-20 05:15:16] Production.INFO: ProcessCDR(1,14060613,1,1,2) [2024-12-20 05:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060613', 'tblTempUsageDetail_20' ) start [2024-12-20 05:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060613', 'tblTempUsageDetail_20' ) end [2024-12-20 05:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:15:19] Production.INFO: ==4314== Releasing lock... [2024-12-20 05:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:15:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:16:05 [end_date_ymd] => 2024-12-20 05:16:05 [RateCDR] => 1 ) [2024-12-20 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:16:05' and `end` < '2024-12-20 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:16:17] Production.INFO: count ==81 [2024-12-20 05:16:18] Production.ERROR: pbx CDR StartTime 2024-12-20 02:16:05 - End Time 2024-12-20 05:16:05 [2024-12-20 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060618', 'tblTempUsageDetail_20' ) start [2024-12-20 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060618', 'tblTempUsageDetail_20' ) end [2024-12-20 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060618', 'tblTempVendorCDR_20' ) start [2024-12-20 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060618', 'tblTempVendorCDR_20' ) end [2024-12-20 05:16:18] Production.INFO: ProcessCDR(1,14060618,1,1,2) [2024-12-20 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060618', 'tblTempUsageDetail_20' ) start [2024-12-20 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060618', 'tblTempUsageDetail_20' ) end [2024-12-20 05:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:16:20] Production.INFO: ==4388== Releasing lock... [2024-12-20 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:16:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:17:05 [end_date_ymd] => 2024-12-20 05:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:17:17] Production.INFO: count ==81 [2024-12-20 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:17:05 - End Time 2024-12-20 05:17:05 [2024-12-20 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060623', 'tblTempUsageDetail_20' ) start [2024-12-20 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060623', 'tblTempUsageDetail_20' ) end [2024-12-20 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060623', 'tblTempVendorCDR_20' ) start [2024-12-20 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060623', 'tblTempVendorCDR_20' ) end [2024-12-20 05:17:17] Production.INFO: ProcessCDR(1,14060623,1,1,2) [2024-12-20 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060623', 'tblTempUsageDetail_20' ) start [2024-12-20 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060623', 'tblTempUsageDetail_20' ) end [2024-12-20 05:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:17:20] Production.INFO: ==4459== Releasing lock... [2024-12-20 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:17:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:18:04 [end_date_ymd] => 2024-12-20 05:18:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:18:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:18:16] Production.INFO: count ==78 [2024-12-20 05:18:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:18:04 - End Time 2024-12-20 05:18:04 [2024-12-20 05:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060628', 'tblTempUsageDetail_20' ) start [2024-12-20 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060628', 'tblTempUsageDetail_20' ) end [2024-12-20 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060628', 'tblTempVendorCDR_20' ) start [2024-12-20 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060628', 'tblTempVendorCDR_20' ) end [2024-12-20 05:18:16] Production.INFO: ProcessCDR(1,14060628,1,1,2) [2024-12-20 05:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060628', 'tblTempUsageDetail_20' ) start [2024-12-20 05:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060628', 'tblTempUsageDetail_20' ) end [2024-12-20 05:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:18:19] Production.INFO: ==4529== Releasing lock... [2024-12-20 05:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:18:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:19:04 [end_date_ymd] => 2024-12-20 05:19:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:19:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:19:17] Production.INFO: count ==78 [2024-12-20 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:19:04 - End Time 2024-12-20 05:19:04 [2024-12-20 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060633', 'tblTempUsageDetail_20' ) start [2024-12-20 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060633', 'tblTempUsageDetail_20' ) end [2024-12-20 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060633', 'tblTempVendorCDR_20' ) start [2024-12-20 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060633', 'tblTempVendorCDR_20' ) end [2024-12-20 05:19:17] Production.INFO: ProcessCDR(1,14060633,1,1,2) [2024-12-20 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060633', 'tblTempUsageDetail_20' ) start [2024-12-20 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060633', 'tblTempUsageDetail_20' ) end [2024-12-20 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:19:20] Production.INFO: ==4607== Releasing lock... [2024-12-20 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:20:05 [end_date_ymd] => 2024-12-20 05:20:05 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:20:05' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:20:18] Production.INFO: count ==72 [2024-12-20 05:20:18] Production.ERROR: pbx CDR StartTime 2024-12-20 02:20:05 - End Time 2024-12-20 05:20:05 [2024-12-20 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060639', 'tblTempUsageDetail_20' ) start [2024-12-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060639', 'tblTempUsageDetail_20' ) end [2024-12-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060639', 'tblTempVendorCDR_20' ) start [2024-12-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060639', 'tblTempVendorCDR_20' ) end [2024-12-20 05:20:18] Production.INFO: ProcessCDR(1,14060639,1,1,2) [2024-12-20 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060639', 'tblTempUsageDetail_20' ) start [2024-12-20 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060639', 'tblTempUsageDetail_20' ) end [2024-12-20 05:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:20:20] Production.INFO: ==4683== Releasing lock... [2024-12-20 05:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:20:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:21:04 [end_date_ymd] => 2024-12-20 05:21:04 [RateCDR] => 1 ) [2024-12-20 05:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:21:04' and `end` < '2024-12-20 05:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:21:16] Production.INFO: count ==70 [2024-12-20 05:21:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:21:04 - End Time 2024-12-20 05:21:04 [2024-12-20 05:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060644', 'tblTempUsageDetail_20' ) start [2024-12-20 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060644', 'tblTempUsageDetail_20' ) end [2024-12-20 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060644', 'tblTempVendorCDR_20' ) start [2024-12-20 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060644', 'tblTempVendorCDR_20' ) end [2024-12-20 05:21:16] Production.INFO: ProcessCDR(1,14060644,1,1,2) [2024-12-20 05:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060644', 'tblTempUsageDetail_20' ) start [2024-12-20 05:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060644', 'tblTempUsageDetail_20' ) end [2024-12-20 05:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:21:20] Production.INFO: ==4757== Releasing lock... [2024-12-20 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:21:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:22:05 [end_date_ymd] => 2024-12-20 05:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:22:17] Production.INFO: count ==70 [2024-12-20 05:22:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:22:05 - End Time 2024-12-20 05:22:05 [2024-12-20 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060649', 'tblTempUsageDetail_20' ) start [2024-12-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060649', 'tblTempUsageDetail_20' ) end [2024-12-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060649', 'tblTempVendorCDR_20' ) start [2024-12-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060649', 'tblTempVendorCDR_20' ) end [2024-12-20 05:22:17] Production.INFO: ProcessCDR(1,14060649,1,1,2) [2024-12-20 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060649', 'tblTempUsageDetail_20' ) start [2024-12-20 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060649', 'tblTempUsageDetail_20' ) end [2024-12-20 05:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:22:20] Production.INFO: ==4829== Releasing lock... [2024-12-20 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:22:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:23:04 [end_date_ymd] => 2024-12-20 05:23:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:23:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:23:16] Production.INFO: count ==70 [2024-12-20 05:23:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:23:04 - End Time 2024-12-20 05:23:04 [2024-12-20 05:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060654', 'tblTempUsageDetail_20' ) start [2024-12-20 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060654', 'tblTempUsageDetail_20' ) end [2024-12-20 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060654', 'tblTempVendorCDR_20' ) start [2024-12-20 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060654', 'tblTempVendorCDR_20' ) end [2024-12-20 05:23:16] Production.INFO: ProcessCDR(1,14060654,1,1,2) [2024-12-20 05:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060654', 'tblTempUsageDetail_20' ) start [2024-12-20 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060654', 'tblTempUsageDetail_20' ) end [2024-12-20 05:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:23:19] Production.INFO: ==4939== Releasing lock... [2024-12-20 05:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:23:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:24:05 [end_date_ymd] => 2024-12-20 05:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:24:18] Production.INFO: count ==70 [2024-12-20 05:24:18] Production.ERROR: pbx CDR StartTime 2024-12-20 02:24:05 - End Time 2024-12-20 05:24:05 [2024-12-20 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060659', 'tblTempUsageDetail_20' ) start [2024-12-20 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060659', 'tblTempUsageDetail_20' ) end [2024-12-20 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060659', 'tblTempVendorCDR_20' ) start [2024-12-20 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060659', 'tblTempVendorCDR_20' ) end [2024-12-20 05:24:18] Production.INFO: ProcessCDR(1,14060659,1,1,2) [2024-12-20 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060659', 'tblTempUsageDetail_20' ) start [2024-12-20 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060659', 'tblTempUsageDetail_20' ) end [2024-12-20 05:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:24:20] Production.INFO: ==5010== Releasing lock... [2024-12-20 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:25:04 [end_date_ymd] => 2024-12-20 05:25:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:25:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:25:16] Production.INFO: count ==70 [2024-12-20 05:25:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:25:04 - End Time 2024-12-20 05:25:04 [2024-12-20 05:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060664', 'tblTempUsageDetail_20' ) start [2024-12-20 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060664', 'tblTempUsageDetail_20' ) end [2024-12-20 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060664', 'tblTempVendorCDR_20' ) start [2024-12-20 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060664', 'tblTempVendorCDR_20' ) end [2024-12-20 05:25:16] Production.INFO: ProcessCDR(1,14060664,1,1,2) [2024-12-20 05:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060664', 'tblTempUsageDetail_20' ) start [2024-12-20 05:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060664', 'tblTempUsageDetail_20' ) end [2024-12-20 05:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:25:19] Production.INFO: ==5080== Releasing lock... [2024-12-20 05:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:25:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:26:04 [end_date_ymd] => 2024-12-20 05:26:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:26:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:26:16] Production.INFO: count ==70 [2024-12-20 05:26:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:26:04 - End Time 2024-12-20 05:26:04 [2024-12-20 05:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060669', 'tblTempUsageDetail_20' ) start [2024-12-20 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060669', 'tblTempUsageDetail_20' ) end [2024-12-20 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060669', 'tblTempVendorCDR_20' ) start [2024-12-20 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060669', 'tblTempVendorCDR_20' ) end [2024-12-20 05:26:16] Production.INFO: ProcessCDR(1,14060669,1,1,2) [2024-12-20 05:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060669', 'tblTempUsageDetail_20' ) start [2024-12-20 05:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060669', 'tblTempUsageDetail_20' ) end [2024-12-20 05:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:26:19] Production.INFO: ==5154== Releasing lock... [2024-12-20 05:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:26:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:27:05 [end_date_ymd] => 2024-12-20 05:27:05 [RateCDR] => 1 ) [2024-12-20 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:27:05' and `end` < '2024-12-20 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:27:16] Production.INFO: count ==70 [2024-12-20 05:27:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:27:05 - End Time 2024-12-20 05:27:05 [2024-12-20 05:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060674', 'tblTempUsageDetail_20' ) start [2024-12-20 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060674', 'tblTempUsageDetail_20' ) end [2024-12-20 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060674', 'tblTempVendorCDR_20' ) start [2024-12-20 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060674', 'tblTempVendorCDR_20' ) end [2024-12-20 05:27:16] Production.INFO: ProcessCDR(1,14060674,1,1,2) [2024-12-20 05:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060674', 'tblTempUsageDetail_20' ) start [2024-12-20 05:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060674', 'tblTempUsageDetail_20' ) end [2024-12-20 05:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:27:19] Production.INFO: ==5224== Releasing lock... [2024-12-20 05:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:27:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:28:04 [end_date_ymd] => 2024-12-20 05:28:04 [RateCDR] => 1 ) [2024-12-20 05:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:28:04' and `end` < '2024-12-20 05:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:28:17] Production.INFO: count ==70 [2024-12-20 05:28:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:28:04 - End Time 2024-12-20 05:28:04 [2024-12-20 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060679', 'tblTempUsageDetail_20' ) start [2024-12-20 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060679', 'tblTempUsageDetail_20' ) end [2024-12-20 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060679', 'tblTempVendorCDR_20' ) start [2024-12-20 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060679', 'tblTempVendorCDR_20' ) end [2024-12-20 05:28:17] Production.INFO: ProcessCDR(1,14060679,1,1,2) [2024-12-20 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060679', 'tblTempUsageDetail_20' ) start [2024-12-20 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060679', 'tblTempUsageDetail_20' ) end [2024-12-20 05:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:28:20] Production.INFO: ==5294== Releasing lock... [2024-12-20 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:28:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:29:05 [end_date_ymd] => 2024-12-20 05:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:29:16] Production.INFO: count ==70 [2024-12-20 05:29:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:29:05 - End Time 2024-12-20 05:29:05 [2024-12-20 05:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060684', 'tblTempUsageDetail_20' ) start [2024-12-20 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060684', 'tblTempUsageDetail_20' ) end [2024-12-20 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060684', 'tblTempVendorCDR_20' ) start [2024-12-20 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060684', 'tblTempVendorCDR_20' ) end [2024-12-20 05:29:16] Production.INFO: ProcessCDR(1,14060684,1,1,2) [2024-12-20 05:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060684', 'tblTempUsageDetail_20' ) start [2024-12-20 05:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060684', 'tblTempUsageDetail_20' ) end [2024-12-20 05:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:29:19] Production.INFO: ==5366== Releasing lock... [2024-12-20 05:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:29:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:30:06 [end_date_ymd] => 2024-12-20 05:30:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:30:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:30:17] Production.INFO: count ==66 [2024-12-20 05:30:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:30:06 - End Time 2024-12-20 05:30:06 [2024-12-20 05:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060690', 'tblTempUsageDetail_20' ) start [2024-12-20 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060690', 'tblTempUsageDetail_20' ) end [2024-12-20 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060690', 'tblTempVendorCDR_20' ) start [2024-12-20 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060690', 'tblTempVendorCDR_20' ) end [2024-12-20 05:30:17] Production.INFO: ProcessCDR(1,14060690,1,1,2) [2024-12-20 05:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060690', 'tblTempUsageDetail_20' ) start [2024-12-20 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060690', 'tblTempUsageDetail_20' ) end [2024-12-20 05:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:30:20] Production.INFO: ==5440== Releasing lock... [2024-12-20 05:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:31:04 [end_date_ymd] => 2024-12-20 05:31:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:31:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:31:17] Production.INFO: count ==66 [2024-12-20 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:31:04 - End Time 2024-12-20 05:31:04 [2024-12-20 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060695', 'tblTempUsageDetail_20' ) start [2024-12-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060695', 'tblTempUsageDetail_20' ) end [2024-12-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060695', 'tblTempVendorCDR_20' ) start [2024-12-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060695', 'tblTempVendorCDR_20' ) end [2024-12-20 05:31:17] Production.INFO: ProcessCDR(1,14060695,1,1,2) [2024-12-20 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060695', 'tblTempUsageDetail_20' ) start [2024-12-20 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060695', 'tblTempUsageDetail_20' ) end [2024-12-20 05:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:31:20] Production.INFO: ==5517== Releasing lock... [2024-12-20 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:31:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:32:05 [end_date_ymd] => 2024-12-20 05:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:32:18] Production.INFO: count ==66 [2024-12-20 05:32:18] Production.ERROR: pbx CDR StartTime 2024-12-20 02:32:05 - End Time 2024-12-20 05:32:05 [2024-12-20 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060700', 'tblTempUsageDetail_20' ) start [2024-12-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060700', 'tblTempUsageDetail_20' ) end [2024-12-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060700', 'tblTempVendorCDR_20' ) start [2024-12-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060700', 'tblTempVendorCDR_20' ) end [2024-12-20 05:32:18] Production.INFO: ProcessCDR(1,14060700,1,1,2) [2024-12-20 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060700', 'tblTempUsageDetail_20' ) start [2024-12-20 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060700', 'tblTempUsageDetail_20' ) end [2024-12-20 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:32:21] Production.INFO: ==5588== Releasing lock... [2024-12-20 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:32:21] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:33:04 [end_date_ymd] => 2024-12-20 05:33:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:33:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:33:16] Production.INFO: count ==64 [2024-12-20 05:33:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:33:04 - End Time 2024-12-20 05:33:04 [2024-12-20 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060705', 'tblTempUsageDetail_20' ) start [2024-12-20 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060705', 'tblTempUsageDetail_20' ) end [2024-12-20 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060705', 'tblTempVendorCDR_20' ) start [2024-12-20 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060705', 'tblTempVendorCDR_20' ) end [2024-12-20 05:33:16] Production.INFO: ProcessCDR(1,14060705,1,1,2) [2024-12-20 05:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060705', 'tblTempUsageDetail_20' ) start [2024-12-20 05:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060705', 'tblTempUsageDetail_20' ) end [2024-12-20 05:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:33:19] Production.INFO: ==5657== Releasing lock... [2024-12-20 05:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:33:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:34:04 [end_date_ymd] => 2024-12-20 05:34:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:34:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:34:16] Production.INFO: count ==64 [2024-12-20 05:34:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:34:04 - End Time 2024-12-20 05:34:04 [2024-12-20 05:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060710', 'tblTempUsageDetail_20' ) start [2024-12-20 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060710', 'tblTempUsageDetail_20' ) end [2024-12-20 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060710', 'tblTempVendorCDR_20' ) start [2024-12-20 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060710', 'tblTempVendorCDR_20' ) end [2024-12-20 05:34:16] Production.INFO: ProcessCDR(1,14060710,1,1,2) [2024-12-20 05:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060710', 'tblTempUsageDetail_20' ) start [2024-12-20 05:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060710', 'tblTempUsageDetail_20' ) end [2024-12-20 05:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:34:19] Production.INFO: ==5729== Releasing lock... [2024-12-20 05:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:34:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:35:05 [end_date_ymd] => 2024-12-20 05:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:35:17] Production.INFO: count ==63 [2024-12-20 05:35:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:35:05 - End Time 2024-12-20 05:35:05 [2024-12-20 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060715', 'tblTempUsageDetail_20' ) start [2024-12-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060715', 'tblTempUsageDetail_20' ) end [2024-12-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060715', 'tblTempVendorCDR_20' ) start [2024-12-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060715', 'tblTempVendorCDR_20' ) end [2024-12-20 05:35:17] Production.INFO: ProcessCDR(1,14060715,1,1,2) [2024-12-20 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060715', 'tblTempUsageDetail_20' ) start [2024-12-20 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060715', 'tblTempUsageDetail_20' ) end [2024-12-20 05:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:35:20] Production.INFO: ==5799== Releasing lock... [2024-12-20 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:36:04 [end_date_ymd] => 2024-12-20 05:36:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:36:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:36:16] Production.INFO: count ==63 [2024-12-20 05:36:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:36:04 - End Time 2024-12-20 05:36:04 [2024-12-20 05:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060720', 'tblTempUsageDetail_20' ) start [2024-12-20 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060720', 'tblTempUsageDetail_20' ) end [2024-12-20 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060720', 'tblTempVendorCDR_20' ) start [2024-12-20 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060720', 'tblTempVendorCDR_20' ) end [2024-12-20 05:36:16] Production.INFO: ProcessCDR(1,14060720,1,1,2) [2024-12-20 05:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060720', 'tblTempUsageDetail_20' ) start [2024-12-20 05:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060720', 'tblTempUsageDetail_20' ) end [2024-12-20 05:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:36:19] Production.INFO: ==5870== Releasing lock... [2024-12-20 05:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:36:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:37:05 [end_date_ymd] => 2024-12-20 05:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:37:17] Production.INFO: count ==63 [2024-12-20 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:37:05 - End Time 2024-12-20 05:37:05 [2024-12-20 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060725', 'tblTempUsageDetail_20' ) start [2024-12-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060725', 'tblTempUsageDetail_20' ) end [2024-12-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060725', 'tblTempVendorCDR_20' ) start [2024-12-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060725', 'tblTempVendorCDR_20' ) end [2024-12-20 05:37:17] Production.INFO: ProcessCDR(1,14060725,1,1,2) [2024-12-20 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060725', 'tblTempUsageDetail_20' ) start [2024-12-20 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060725', 'tblTempUsageDetail_20' ) end [2024-12-20 05:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:37:20] Production.INFO: ==5942== Releasing lock... [2024-12-20 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:38:04 [end_date_ymd] => 2024-12-20 05:38:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:38:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:38:16] Production.INFO: count ==63 [2024-12-20 05:38:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:38:04 - End Time 2024-12-20 05:38:04 [2024-12-20 05:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060730', 'tblTempUsageDetail_20' ) start [2024-12-20 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060730', 'tblTempUsageDetail_20' ) end [2024-12-20 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060730', 'tblTempVendorCDR_20' ) start [2024-12-20 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060730', 'tblTempVendorCDR_20' ) end [2024-12-20 05:38:16] Production.INFO: ProcessCDR(1,14060730,1,1,2) [2024-12-20 05:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060730', 'tblTempUsageDetail_20' ) start [2024-12-20 05:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060730', 'tblTempUsageDetail_20' ) end [2024-12-20 05:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:38:19] Production.INFO: ==6012== Releasing lock... [2024-12-20 05:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:38:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:39:05 [end_date_ymd] => 2024-12-20 05:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:39:17] Production.INFO: count ==63 [2024-12-20 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:39:05 - End Time 2024-12-20 05:39:05 [2024-12-20 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060735', 'tblTempUsageDetail_20' ) start [2024-12-20 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060735', 'tblTempUsageDetail_20' ) end [2024-12-20 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060735', 'tblTempVendorCDR_20' ) start [2024-12-20 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060735', 'tblTempVendorCDR_20' ) end [2024-12-20 05:39:17] Production.INFO: ProcessCDR(1,14060735,1,1,2) [2024-12-20 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060735', 'tblTempUsageDetail_20' ) start [2024-12-20 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060735', 'tblTempUsageDetail_20' ) end [2024-12-20 05:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:39:20] Production.INFO: ==6121== Releasing lock... [2024-12-20 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:40:05 [end_date_ymd] => 2024-12-20 05:40:05 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:40:05' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:40:17] Production.INFO: count ==57 [2024-12-20 05:40:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:40:05 - End Time 2024-12-20 05:40:05 [2024-12-20 05:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060741', 'tblTempUsageDetail_20' ) start [2024-12-20 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060741', 'tblTempUsageDetail_20' ) end [2024-12-20 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060741', 'tblTempVendorCDR_20' ) start [2024-12-20 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060741', 'tblTempVendorCDR_20' ) end [2024-12-20 05:40:17] Production.INFO: ProcessCDR(1,14060741,1,1,2) [2024-12-20 05:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060741', 'tblTempUsageDetail_20' ) start [2024-12-20 05:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060741', 'tblTempUsageDetail_20' ) end [2024-12-20 05:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:40:20] Production.INFO: ==6193== Releasing lock... [2024-12-20 05:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:40:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:41:04 [end_date_ymd] => 2024-12-20 05:41:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:41:04' and `end` < '2024-12-20 05:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:41:16] Production.INFO: count ==52 [2024-12-20 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:41:04 - End Time 2024-12-20 05:41:04 [2024-12-20 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060746', 'tblTempUsageDetail_20' ) start [2024-12-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060746', 'tblTempUsageDetail_20' ) end [2024-12-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060746', 'tblTempVendorCDR_20' ) start [2024-12-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060746', 'tblTempVendorCDR_20' ) end [2024-12-20 05:41:17] Production.INFO: ProcessCDR(1,14060746,1,1,2) [2024-12-20 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060746', 'tblTempUsageDetail_20' ) start [2024-12-20 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060746', 'tblTempUsageDetail_20' ) end [2024-12-20 05:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:41:20] Production.INFO: ==6265== Releasing lock... [2024-12-20 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:42:05 [end_date_ymd] => 2024-12-20 05:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:42:17] Production.INFO: count ==51 [2024-12-20 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:42:05 - End Time 2024-12-20 05:42:05 [2024-12-20 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060751', 'tblTempUsageDetail_20' ) start [2024-12-20 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060751', 'tblTempUsageDetail_20' ) end [2024-12-20 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060751', 'tblTempVendorCDR_20' ) start [2024-12-20 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060751', 'tblTempVendorCDR_20' ) end [2024-12-20 05:42:17] Production.INFO: ProcessCDR(1,14060751,1,1,2) [2024-12-20 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060751', 'tblTempUsageDetail_20' ) start [2024-12-20 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060751', 'tblTempUsageDetail_20' ) end [2024-12-20 05:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:42:21] Production.INFO: ==6342== Releasing lock... [2024-12-20 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:42:21] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:43:04 [end_date_ymd] => 2024-12-20 05:43:04 [RateCDR] => 1 ) [2024-12-20 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:43:04' and `end` < '2024-12-20 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:43:17] Production.INFO: count ==51 [2024-12-20 05:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:43:04 - End Time 2024-12-20 05:43:04 [2024-12-20 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060756', 'tblTempUsageDetail_20' ) start [2024-12-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060756', 'tblTempUsageDetail_20' ) end [2024-12-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060756', 'tblTempVendorCDR_20' ) start [2024-12-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060756', 'tblTempVendorCDR_20' ) end [2024-12-20 05:43:17] Production.INFO: ProcessCDR(1,14060756,1,1,2) [2024-12-20 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060756', 'tblTempUsageDetail_20' ) start [2024-12-20 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060756', 'tblTempUsageDetail_20' ) end [2024-12-20 05:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:43:20] Production.INFO: ==6414== Releasing lock... [2024-12-20 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:43:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:44:05 [end_date_ymd] => 2024-12-20 05:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:44:17] Production.INFO: count ==50 [2024-12-20 05:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:44:05 - End Time 2024-12-20 05:44:05 [2024-12-20 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060761', 'tblTempUsageDetail_20' ) start [2024-12-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060761', 'tblTempUsageDetail_20' ) end [2024-12-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060761', 'tblTempVendorCDR_20' ) start [2024-12-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060761', 'tblTempVendorCDR_20' ) end [2024-12-20 05:44:17] Production.INFO: ProcessCDR(1,14060761,1,1,2) [2024-12-20 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060761', 'tblTempUsageDetail_20' ) start [2024-12-20 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060761', 'tblTempUsageDetail_20' ) end [2024-12-20 05:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:44:20] Production.INFO: ==6488== Releasing lock... [2024-12-20 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:45:05 [end_date_ymd] => 2024-12-20 05:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:45:17] Production.INFO: count ==50 [2024-12-20 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:45:05 - End Time 2024-12-20 05:45:05 [2024-12-20 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060766', 'tblTempUsageDetail_20' ) start [2024-12-20 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060766', 'tblTempUsageDetail_20' ) end [2024-12-20 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060766', 'tblTempVendorCDR_20' ) start [2024-12-20 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060766', 'tblTempVendorCDR_20' ) end [2024-12-20 05:45:17] Production.INFO: ProcessCDR(1,14060766,1,1,2) [2024-12-20 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060766', 'tblTempUsageDetail_20' ) start [2024-12-20 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060766', 'tblTempUsageDetail_20' ) end [2024-12-20 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:45:20] Production.INFO: ==6559== Releasing lock... [2024-12-20 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:46:05 [end_date_ymd] => 2024-12-20 05:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:46:18] Production.INFO: count ==50 [2024-12-20 05:46:18] Production.ERROR: pbx CDR StartTime 2024-12-20 02:46:05 - End Time 2024-12-20 05:46:05 [2024-12-20 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060771', 'tblTempUsageDetail_20' ) start [2024-12-20 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060771', 'tblTempUsageDetail_20' ) end [2024-12-20 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060771', 'tblTempVendorCDR_20' ) start [2024-12-20 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060771', 'tblTempVendorCDR_20' ) end [2024-12-20 05:46:18] Production.INFO: ProcessCDR(1,14060771,1,1,2) [2024-12-20 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060771', 'tblTempUsageDetail_20' ) start [2024-12-20 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060771', 'tblTempUsageDetail_20' ) end [2024-12-20 05:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:46:21] Production.INFO: ==6630== Releasing lock... [2024-12-20 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:46:21] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:47:05 [end_date_ymd] => 2024-12-20 05:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:47:17] Production.INFO: count ==50 [2024-12-20 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:47:05 - End Time 2024-12-20 05:47:05 [2024-12-20 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060776', 'tblTempUsageDetail_20' ) start [2024-12-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060776', 'tblTempUsageDetail_20' ) end [2024-12-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060776', 'tblTempVendorCDR_20' ) start [2024-12-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060776', 'tblTempVendorCDR_20' ) end [2024-12-20 05:47:17] Production.INFO: ProcessCDR(1,14060776,1,1,2) [2024-12-20 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060776', 'tblTempUsageDetail_20' ) start [2024-12-20 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060776', 'tblTempUsageDetail_20' ) end [2024-12-20 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:47:20] Production.INFO: ==6706== Releasing lock... [2024-12-20 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 05:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:48:04 [end_date_ymd] => 2024-12-20 05:48:04 [RateCDR] => 1 ) [2024-12-20 05:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:48:04' and `end` < '2024-12-20 05:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:48:17] Production.INFO: count ==50 [2024-12-20 05:48:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:48:04 - End Time 2024-12-20 05:48:04 [2024-12-20 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060781', 'tblTempUsageDetail_20' ) start [2024-12-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060781', 'tblTempUsageDetail_20' ) end [2024-12-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060781', 'tblTempVendorCDR_20' ) start [2024-12-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060781', 'tblTempVendorCDR_20' ) end [2024-12-20 05:48:17] Production.INFO: ProcessCDR(1,14060781,1,1,2) [2024-12-20 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060781', 'tblTempUsageDetail_20' ) start [2024-12-20 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060781', 'tblTempUsageDetail_20' ) end [2024-12-20 05:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:48:20] Production.INFO: ==6779== Releasing lock... [2024-12-20 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:48:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:49:05 [end_date_ymd] => 2024-12-20 05:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:49:17] Production.INFO: count ==50 [2024-12-20 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:49:05 - End Time 2024-12-20 05:49:05 [2024-12-20 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060786', 'tblTempUsageDetail_20' ) start [2024-12-20 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060786', 'tblTempUsageDetail_20' ) end [2024-12-20 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060786', 'tblTempVendorCDR_20' ) start [2024-12-20 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060786', 'tblTempVendorCDR_20' ) end [2024-12-20 05:49:17] Production.INFO: ProcessCDR(1,14060786,1,1,2) [2024-12-20 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060786', 'tblTempUsageDetail_20' ) start [2024-12-20 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060786', 'tblTempUsageDetail_20' ) end [2024-12-20 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:49:20] Production.INFO: ==6854== Releasing lock... [2024-12-20 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:49:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:50:05 [end_date_ymd] => 2024-12-20 05:50:05 [RateCDR] => 1 ) [2024-12-20 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:50:05' and `end` < '2024-12-20 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:50:17] Production.INFO: count ==46 [2024-12-20 05:50:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:50:05 - End Time 2024-12-20 05:50:05 [2024-12-20 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060792', 'tblTempUsageDetail_20' ) start [2024-12-20 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060792', 'tblTempUsageDetail_20' ) end [2024-12-20 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060792', 'tblTempVendorCDR_20' ) start [2024-12-20 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060792', 'tblTempVendorCDR_20' ) end [2024-12-20 05:50:17] Production.INFO: ProcessCDR(1,14060792,1,1,2) [2024-12-20 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060792', 'tblTempUsageDetail_20' ) start [2024-12-20 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060792', 'tblTempUsageDetail_20' ) end [2024-12-20 05:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:50:20] Production.INFO: ==6927== Releasing lock... [2024-12-20 05:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:50:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:51:04 [end_date_ymd] => 2024-12-20 05:51:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:51:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:51:16] Production.INFO: count ==44 [2024-12-20 05:51:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:51:04 - End Time 2024-12-20 05:51:04 [2024-12-20 05:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060797', 'tblTempUsageDetail_20' ) start [2024-12-20 05:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060797', 'tblTempUsageDetail_20' ) end [2024-12-20 05:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060797', 'tblTempVendorCDR_20' ) start [2024-12-20 05:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060797', 'tblTempVendorCDR_20' ) end [2024-12-20 05:51:16] Production.INFO: ProcessCDR(1,14060797,1,1,2) [2024-12-20 05:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060797', 'tblTempUsageDetail_20' ) start [2024-12-20 05:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060797', 'tblTempUsageDetail_20' ) end [2024-12-20 05:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:51:19] Production.INFO: ==7001== Releasing lock... [2024-12-20 05:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:51:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:52:05 [end_date_ymd] => 2024-12-20 05:52:05 [RateCDR] => 1 ) [2024-12-20 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:52:05' and `end` < '2024-12-20 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:52:17] Production.INFO: count ==44 [2024-12-20 05:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:52:05 - End Time 2024-12-20 05:52:05 [2024-12-20 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060802', 'tblTempUsageDetail_20' ) start [2024-12-20 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060802', 'tblTempUsageDetail_20' ) end [2024-12-20 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060802', 'tblTempVendorCDR_20' ) start [2024-12-20 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060802', 'tblTempVendorCDR_20' ) end [2024-12-20 05:52:17] Production.INFO: ProcessCDR(1,14060802,1,1,2) [2024-12-20 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060802', 'tblTempUsageDetail_20' ) start [2024-12-20 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060802', 'tblTempUsageDetail_20' ) end [2024-12-20 05:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:52:20] Production.INFO: ==7073== Releasing lock... [2024-12-20 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:52:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:53:04 [end_date_ymd] => 2024-12-20 05:53:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:53:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:53:17] Production.INFO: count ==44 [2024-12-20 05:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:53:04 - End Time 2024-12-20 05:53:04 [2024-12-20 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060807', 'tblTempUsageDetail_20' ) start [2024-12-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060807', 'tblTempUsageDetail_20' ) end [2024-12-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060807', 'tblTempVendorCDR_20' ) start [2024-12-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060807', 'tblTempVendorCDR_20' ) end [2024-12-20 05:53:17] Production.INFO: ProcessCDR(1,14060807,1,1,2) [2024-12-20 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060807', 'tblTempUsageDetail_20' ) start [2024-12-20 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060807', 'tblTempUsageDetail_20' ) end [2024-12-20 05:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:53:20] Production.INFO: ==7145== Releasing lock... [2024-12-20 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:53:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:54:05 [end_date_ymd] => 2024-12-20 05:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:54:17] Production.INFO: count ==44 [2024-12-20 05:54:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:54:05 - End Time 2024-12-20 05:54:05 [2024-12-20 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060812', 'tblTempUsageDetail_20' ) start [2024-12-20 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060812', 'tblTempUsageDetail_20' ) end [2024-12-20 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060812', 'tblTempVendorCDR_20' ) start [2024-12-20 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060812', 'tblTempVendorCDR_20' ) end [2024-12-20 05:54:17] Production.INFO: ProcessCDR(1,14060812,1,1,2) [2024-12-20 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060812', 'tblTempUsageDetail_20' ) start [2024-12-20 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060812', 'tblTempUsageDetail_20' ) end [2024-12-20 05:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:54:20] Production.INFO: ==7215== Releasing lock... [2024-12-20 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:55:04 [end_date_ymd] => 2024-12-20 05:55:04 [RateCDR] => 1 ) [2024-12-20 05: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` >= '2024-12-20 02:55:04' and `end` < '2024-12-20 05: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 ,'') [2024-12-20 05:55:16] Production.INFO: count ==44 [2024-12-20 05:55:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:55:04 - End Time 2024-12-20 05:55:04 [2024-12-20 05:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060817', 'tblTempUsageDetail_20' ) start [2024-12-20 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060817', 'tblTempUsageDetail_20' ) end [2024-12-20 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060817', 'tblTempVendorCDR_20' ) start [2024-12-20 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060817', 'tblTempVendorCDR_20' ) end [2024-12-20 05:55:16] Production.INFO: ProcessCDR(1,14060817,1,1,2) [2024-12-20 05:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060817', 'tblTempUsageDetail_20' ) start [2024-12-20 05:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060817', 'tblTempUsageDetail_20' ) end [2024-12-20 05:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:55:19] Production.INFO: ==7323== Releasing lock... [2024-12-20 05:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:55:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:56:05 [end_date_ymd] => 2024-12-20 05:56:05 [RateCDR] => 1 ) [2024-12-20 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:56:05' and `end` < '2024-12-20 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:56:17] Production.INFO: count ==44 [2024-12-20 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:56:05 - End Time 2024-12-20 05:56:05 [2024-12-20 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060822', 'tblTempUsageDetail_20' ) start [2024-12-20 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060822', 'tblTempUsageDetail_20' ) end [2024-12-20 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060822', 'tblTempVendorCDR_20' ) start [2024-12-20 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060822', 'tblTempVendorCDR_20' ) end [2024-12-20 05:56:17] Production.INFO: ProcessCDR(1,14060822,1,1,2) [2024-12-20 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060822', 'tblTempUsageDetail_20' ) start [2024-12-20 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060822', 'tblTempUsageDetail_20' ) end [2024-12-20 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:56:20] Production.INFO: ==7395== Releasing lock... [2024-12-20 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:57:04 [end_date_ymd] => 2024-12-20 05:57:04 [RateCDR] => 1 ) [2024-12-20 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 02:57:04' and `end` < '2024-12-20 05:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 05:57:16] Production.INFO: count ==44 [2024-12-20 05:57:16] Production.ERROR: pbx CDR StartTime 2024-12-20 02:57:04 - End Time 2024-12-20 05:57:04 [2024-12-20 05:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060827', 'tblTempUsageDetail_20' ) start [2024-12-20 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060827', 'tblTempUsageDetail_20' ) end [2024-12-20 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060827', 'tblTempVendorCDR_20' ) start [2024-12-20 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060827', 'tblTempVendorCDR_20' ) end [2024-12-20 05:57:16] Production.INFO: ProcessCDR(1,14060827,1,1,2) [2024-12-20 05:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060827', 'tblTempUsageDetail_20' ) start [2024-12-20 05:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060827', 'tblTempUsageDetail_20' ) end [2024-12-20 05:57:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:57:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:57:19] Production.INFO: ==7466== Releasing lock... [2024-12-20 05:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:57:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:58:05 [end_date_ymd] => 2024-12-20 05:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:58:17] Production.INFO: count ==43 [2024-12-20 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:58:05 - End Time 2024-12-20 05:58:05 [2024-12-20 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060832', 'tblTempUsageDetail_20' ) start [2024-12-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060832', 'tblTempUsageDetail_20' ) end [2024-12-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060832', 'tblTempVendorCDR_20' ) start [2024-12-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060832', 'tblTempVendorCDR_20' ) end [2024-12-20 05:58:17] Production.INFO: ProcessCDR(1,14060832,1,1,2) [2024-12-20 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060832', 'tblTempUsageDetail_20' ) start [2024-12-20 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060832', 'tblTempUsageDetail_20' ) end [2024-12-20 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:58:20] Production.INFO: ==7553== Releasing lock... [2024-12-20 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:58:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 02:59:05 [end_date_ymd] => 2024-12-20 05:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 02:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 05:59:17] Production.INFO: count ==43 [2024-12-20 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 02:59:05 - End Time 2024-12-20 05:59:05 [2024-12-20 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060837', 'tblTempUsageDetail_20' ) start [2024-12-20 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060837', 'tblTempUsageDetail_20' ) end [2024-12-20 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060837', 'tblTempVendorCDR_20' ) start [2024-12-20 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060837', 'tblTempVendorCDR_20' ) end [2024-12-20 05:59:17] Production.INFO: ProcessCDR(1,14060837,1,1,2) [2024-12-20 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060837', 'tblTempUsageDetail_20' ) start [2024-12-20 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060837', 'tblTempUsageDetail_20' ) end [2024-12-20 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 05:59:20] Production.INFO: ==7638== Releasing lock... [2024-12-20 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 05:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:00:05 [end_date_ymd] => 2024-12-20 06:00:05 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:00:05' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:00:17] Production.INFO: count ==43 [2024-12-20 06:00:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:00:05 - End Time 2024-12-20 06:00:05 [2024-12-20 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060843', 'tblTempUsageDetail_20' ) start [2024-12-20 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060843', 'tblTempUsageDetail_20' ) end [2024-12-20 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060843', 'tblTempVendorCDR_20' ) start [2024-12-20 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060843', 'tblTempVendorCDR_20' ) end [2024-12-20 06:00:17] Production.INFO: ProcessCDR(1,14060843,1,1,2) [2024-12-20 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060843', 'tblTempUsageDetail_20' ) start [2024-12-20 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060843', 'tblTempUsageDetail_20' ) end [2024-12-20 06:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:00:20] Production.INFO: ==7730== Releasing lock... [2024-12-20 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:00:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:01:04 [end_date_ymd] => 2024-12-20 06:01:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:01:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:01:16] Production.INFO: count ==43 [2024-12-20 06:01:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:01:04 - End Time 2024-12-20 06:01:04 [2024-12-20 06:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060848', 'tblTempUsageDetail_20' ) start [2024-12-20 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060848', 'tblTempUsageDetail_20' ) end [2024-12-20 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060848', 'tblTempVendorCDR_20' ) start [2024-12-20 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060848', 'tblTempVendorCDR_20' ) end [2024-12-20 06:01:16] Production.INFO: ProcessCDR(1,14060848,1,1,2) [2024-12-20 06:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060848', 'tblTempUsageDetail_20' ) start [2024-12-20 06:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060848', 'tblTempUsageDetail_20' ) end [2024-12-20 06:01:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:01:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:01:20] Production.INFO: ==7824== Releasing lock... [2024-12-20 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:01:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:02:04 [end_date_ymd] => 2024-12-20 06:02:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:02:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:02:16] Production.INFO: count ==43 [2024-12-20 06:02:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:02:04 - End Time 2024-12-20 06:02:04 [2024-12-20 06:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060852', 'tblTempUsageDetail_20' ) start [2024-12-20 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060852', 'tblTempUsageDetail_20' ) end [2024-12-20 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060852', 'tblTempVendorCDR_20' ) start [2024-12-20 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060852', 'tblTempVendorCDR_20' ) end [2024-12-20 06:02:16] Production.INFO: ProcessCDR(1,14060852,1,1,2) [2024-12-20 06:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060852', 'tblTempUsageDetail_20' ) start [2024-12-20 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060852', 'tblTempUsageDetail_20' ) end [2024-12-20 06:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:02:20] Production.INFO: ==7903== Releasing lock... [2024-12-20 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:02:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:03:05 [end_date_ymd] => 2024-12-20 06:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:03:17] Production.INFO: count ==42 [2024-12-20 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:03:05 - End Time 2024-12-20 06:03:05 [2024-12-20 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060858', 'tblTempUsageDetail_20' ) start [2024-12-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060858', 'tblTempUsageDetail_20' ) end [2024-12-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060858', 'tblTempVendorCDR_20' ) start [2024-12-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060858', 'tblTempVendorCDR_20' ) end [2024-12-20 06:03:17] Production.INFO: ProcessCDR(1,14060858,1,1,2) [2024-12-20 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060858', 'tblTempUsageDetail_20' ) start [2024-12-20 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060858', 'tblTempUsageDetail_20' ) end [2024-12-20 06:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:03:20] Production.INFO: ==7978== Releasing lock... [2024-12-20 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:03:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:04:04 [end_date_ymd] => 2024-12-20 06:04:04 [RateCDR] => 1 ) [2024-12-20 06:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:04:04' and `end` < '2024-12-20 06:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:04:16] Production.INFO: count ==42 [2024-12-20 06:04:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:04:04 - End Time 2024-12-20 06:04:04 [2024-12-20 06:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060863', 'tblTempUsageDetail_20' ) start [2024-12-20 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060863', 'tblTempUsageDetail_20' ) end [2024-12-20 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060863', 'tblTempVendorCDR_20' ) start [2024-12-20 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060863', 'tblTempVendorCDR_20' ) end [2024-12-20 06:04:16] Production.INFO: ProcessCDR(1,14060863,1,1,2) [2024-12-20 06:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060863', 'tblTempUsageDetail_20' ) start [2024-12-20 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060863', 'tblTempUsageDetail_20' ) end [2024-12-20 06:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:04:20] Production.INFO: ==8048== Releasing lock... [2024-12-20 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:04:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:05:05 [end_date_ymd] => 2024-12-20 06:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:05:16] Production.INFO: count ==42 [2024-12-20 06:05:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:05:05 - End Time 2024-12-20 06:05:05 [2024-12-20 06:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060866', 'tblTempUsageDetail_20' ) start [2024-12-20 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060866', 'tblTempUsageDetail_20' ) end [2024-12-20 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060866', 'tblTempVendorCDR_20' ) start [2024-12-20 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060866', 'tblTempVendorCDR_20' ) end [2024-12-20 06:05:16] Production.INFO: ProcessCDR(1,14060866,1,1,2) [2024-12-20 06:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060866', 'tblTempUsageDetail_20' ) start [2024-12-20 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060866', 'tblTempUsageDetail_20' ) end [2024-12-20 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:05:20] Production.INFO: ==8124== Releasing lock... [2024-12-20 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:06:04 [end_date_ymd] => 2024-12-20 06:06:04 [RateCDR] => 1 ) [2024-12-20 06:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:06:04' and `end` < '2024-12-20 06:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:06:16] Production.INFO: count ==42 [2024-12-20 06:06:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:06:04 - End Time 2024-12-20 06:06:04 [2024-12-20 06:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060873', 'tblTempUsageDetail_20' ) start [2024-12-20 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060873', 'tblTempUsageDetail_20' ) end [2024-12-20 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060873', 'tblTempVendorCDR_20' ) start [2024-12-20 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060873', 'tblTempVendorCDR_20' ) end [2024-12-20 06:06:16] Production.INFO: ProcessCDR(1,14060873,1,1,2) [2024-12-20 06:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060873', 'tblTempUsageDetail_20' ) start [2024-12-20 06:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060873', 'tblTempUsageDetail_20' ) end [2024-12-20 06:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:06:19] Production.INFO: ==8201== Releasing lock... [2024-12-20 06:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:06:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:07:05 [end_date_ymd] => 2024-12-20 06:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:07:17] Production.INFO: count ==42 [2024-12-20 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:07:05 - End Time 2024-12-20 06:07:05 [2024-12-20 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060878', 'tblTempUsageDetail_20' ) start [2024-12-20 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060878', 'tblTempUsageDetail_20' ) end [2024-12-20 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060878', 'tblTempVendorCDR_20' ) start [2024-12-20 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060878', 'tblTempVendorCDR_20' ) end [2024-12-20 06:07:17] Production.INFO: ProcessCDR(1,14060878,1,1,2) [2024-12-20 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060878', 'tblTempUsageDetail_20' ) start [2024-12-20 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060878', 'tblTempUsageDetail_20' ) end [2024-12-20 06:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:07:21] Production.INFO: ==8280== Releasing lock... [2024-12-20 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:07:21] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:08:04 [end_date_ymd] => 2024-12-20 06:08:04 [RateCDR] => 1 ) [2024-12-20 06:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:08:04' and `end` < '2024-12-20 06:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:08:17] Production.INFO: count ==42 [2024-12-20 06:08:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:08:04 - End Time 2024-12-20 06:08:04 [2024-12-20 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060883', 'tblTempUsageDetail_20' ) start [2024-12-20 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060883', 'tblTempUsageDetail_20' ) end [2024-12-20 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060883', 'tblTempVendorCDR_20' ) start [2024-12-20 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060883', 'tblTempVendorCDR_20' ) end [2024-12-20 06:08:17] Production.INFO: ProcessCDR(1,14060883,1,1,2) [2024-12-20 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060883', 'tblTempUsageDetail_20' ) start [2024-12-20 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060883', 'tblTempUsageDetail_20' ) end [2024-12-20 06:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:08:20] Production.INFO: ==8362== Releasing lock... [2024-12-20 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:08:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:09:04 [end_date_ymd] => 2024-12-20 06:09:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:09:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:09:16] Production.INFO: count ==42 [2024-12-20 06:09:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:09:04 - End Time 2024-12-20 06:09:04 [2024-12-20 06:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060888', 'tblTempUsageDetail_20' ) start [2024-12-20 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060888', 'tblTempUsageDetail_20' ) end [2024-12-20 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060888', 'tblTempVendorCDR_20' ) start [2024-12-20 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060888', 'tblTempVendorCDR_20' ) end [2024-12-20 06:09:16] Production.INFO: ProcessCDR(1,14060888,1,1,2) [2024-12-20 06:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060888', 'tblTempUsageDetail_20' ) start [2024-12-20 06:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060888', 'tblTempUsageDetail_20' ) end [2024-12-20 06:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:09:19] Production.INFO: ==8437== Releasing lock... [2024-12-20 06:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:09:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:10:06 [end_date_ymd] => 2024-12-20 06:10:06 [RateCDR] => 1 ) [2024-12-20 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:10:06' and `end` < '2024-12-20 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:10:18] Production.INFO: count ==38 [2024-12-20 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 03:10:06 - End Time 2024-12-20 06:10:06 [2024-12-20 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060894', 'tblTempUsageDetail_20' ) start [2024-12-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060894', 'tblTempUsageDetail_20' ) end [2024-12-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060894', 'tblTempVendorCDR_20' ) start [2024-12-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060894', 'tblTempVendorCDR_20' ) end [2024-12-20 06:10:18] Production.INFO: ProcessCDR(1,14060894,1,1,2) [2024-12-20 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060894', 'tblTempUsageDetail_20' ) start [2024-12-20 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060894', 'tblTempUsageDetail_20' ) end [2024-12-20 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:10:21] Production.INFO: ==8564== Releasing lock... [2024-12-20 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:11:04 [end_date_ymd] => 2024-12-20 06:11:04 [RateCDR] => 1 ) [2024-12-20 06:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:11:04' and `end` < '2024-12-20 06:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:11:16] Production.INFO: count ==38 [2024-12-20 06:11:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:11:04 - End Time 2024-12-20 06:11:04 [2024-12-20 06:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060899', 'tblTempUsageDetail_20' ) start [2024-12-20 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060899', 'tblTempUsageDetail_20' ) end [2024-12-20 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060899', 'tblTempVendorCDR_20' ) start [2024-12-20 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060899', 'tblTempVendorCDR_20' ) end [2024-12-20 06:11:16] Production.INFO: ProcessCDR(1,14060899,1,1,2) [2024-12-20 06:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060899', 'tblTempUsageDetail_20' ) start [2024-12-20 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060899', 'tblTempUsageDetail_20' ) end [2024-12-20 06:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:11:19] Production.INFO: ==8643== Releasing lock... [2024-12-20 06:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:11:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:12:05 [end_date_ymd] => 2024-12-20 06:12:05 [RateCDR] => 1 ) [2024-12-20 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:12:05' and `end` < '2024-12-20 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:12:17] Production.INFO: count ==38 [2024-12-20 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:12:05 - End Time 2024-12-20 06:12:05 [2024-12-20 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060904', 'tblTempUsageDetail_20' ) start [2024-12-20 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060904', 'tblTempUsageDetail_20' ) end [2024-12-20 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060904', 'tblTempVendorCDR_20' ) start [2024-12-20 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060904', 'tblTempVendorCDR_20' ) end [2024-12-20 06:12:17] Production.INFO: ProcessCDR(1,14060904,1,1,2) [2024-12-20 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060904', 'tblTempUsageDetail_20' ) start [2024-12-20 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060904', 'tblTempUsageDetail_20' ) end [2024-12-20 06:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:12:20] Production.INFO: ==8723== Releasing lock... [2024-12-20 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:13:04 [end_date_ymd] => 2024-12-20 06:13:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:13:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:13:16] Production.INFO: count ==38 [2024-12-20 06:13:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:13:04 - End Time 2024-12-20 06:13:04 [2024-12-20 06:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060909', 'tblTempUsageDetail_20' ) start [2024-12-20 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060909', 'tblTempUsageDetail_20' ) end [2024-12-20 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060909', 'tblTempVendorCDR_20' ) start [2024-12-20 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060909', 'tblTempVendorCDR_20' ) end [2024-12-20 06:13:16] Production.INFO: ProcessCDR(1,14060909,1,1,2) [2024-12-20 06:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060909', 'tblTempUsageDetail_20' ) start [2024-12-20 06:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060909', 'tblTempUsageDetail_20' ) end [2024-12-20 06:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:13:19] Production.INFO: ==8803== Releasing lock... [2024-12-20 06:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:13:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:14:05 [end_date_ymd] => 2024-12-20 06:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:14:17] Production.INFO: count ==38 [2024-12-20 06:14:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:14:05 - End Time 2024-12-20 06:14:05 [2024-12-20 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060914', 'tblTempUsageDetail_20' ) start [2024-12-20 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060914', 'tblTempUsageDetail_20' ) end [2024-12-20 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060914', 'tblTempVendorCDR_20' ) start [2024-12-20 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060914', 'tblTempVendorCDR_20' ) end [2024-12-20 06:14:17] Production.INFO: ProcessCDR(1,14060914,1,1,2) [2024-12-20 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060914', 'tblTempUsageDetail_20' ) start [2024-12-20 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060914', 'tblTempUsageDetail_20' ) end [2024-12-20 06:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:14:20] Production.INFO: ==8879== Releasing lock... [2024-12-20 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:14:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:15:04 [end_date_ymd] => 2024-12-20 06:15:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:15:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:15:16] Production.INFO: count ==37 [2024-12-20 06:15:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:15:04 - End Time 2024-12-20 06:15:04 [2024-12-20 06:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060919', 'tblTempUsageDetail_20' ) start [2024-12-20 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060919', 'tblTempUsageDetail_20' ) end [2024-12-20 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060919', 'tblTempVendorCDR_20' ) start [2024-12-20 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060919', 'tblTempVendorCDR_20' ) end [2024-12-20 06:15:16] Production.INFO: ProcessCDR(1,14060919,1,1,2) [2024-12-20 06:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060919', 'tblTempUsageDetail_20' ) start [2024-12-20 06:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060919', 'tblTempUsageDetail_20' ) end [2024-12-20 06:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:15:19] Production.INFO: ==8969== Releasing lock... [2024-12-20 06:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:15:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:16:05 [end_date_ymd] => 2024-12-20 06:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:16:17] Production.INFO: count ==36 [2024-12-20 06:16:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:16:05 - End Time 2024-12-20 06:16:05 [2024-12-20 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060924', 'tblTempUsageDetail_20' ) start [2024-12-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060924', 'tblTempUsageDetail_20' ) end [2024-12-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060924', 'tblTempVendorCDR_20' ) start [2024-12-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060924', 'tblTempVendorCDR_20' ) end [2024-12-20 06:16:17] Production.INFO: ProcessCDR(1,14060924,1,1,2) [2024-12-20 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060924', 'tblTempUsageDetail_20' ) start [2024-12-20 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060924', 'tblTempUsageDetail_20' ) end [2024-12-20 06:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:16:20] Production.INFO: ==9051== Releasing lock... [2024-12-20 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:16:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:17:05 [end_date_ymd] => 2024-12-20 06:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:17:17] Production.INFO: count ==36 [2024-12-20 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:17:05 - End Time 2024-12-20 06:17:05 [2024-12-20 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060929', 'tblTempUsageDetail_20' ) start [2024-12-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060929', 'tblTempUsageDetail_20' ) end [2024-12-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060929', 'tblTempVendorCDR_20' ) start [2024-12-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060929', 'tblTempVendorCDR_20' ) end [2024-12-20 06:17:17] Production.INFO: ProcessCDR(1,14060929,1,1,2) [2024-12-20 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060929', 'tblTempUsageDetail_20' ) start [2024-12-20 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060929', 'tblTempUsageDetail_20' ) end [2024-12-20 06:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:17:20] Production.INFO: ==9131== Releasing lock... [2024-12-20 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:18:05 [end_date_ymd] => 2024-12-20 06:18:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:18:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:18:17] Production.INFO: count ==36 [2024-12-20 06:18:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:18:05 - End Time 2024-12-20 06:18:05 [2024-12-20 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060934', 'tblTempUsageDetail_20' ) start [2024-12-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060934', 'tblTempUsageDetail_20' ) end [2024-12-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060934', 'tblTempVendorCDR_20' ) start [2024-12-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060934', 'tblTempVendorCDR_20' ) end [2024-12-20 06:18:17] Production.INFO: ProcessCDR(1,14060934,1,1,2) [2024-12-20 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060934', 'tblTempUsageDetail_20' ) start [2024-12-20 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060934', 'tblTempUsageDetail_20' ) end [2024-12-20 06:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:18:20] Production.INFO: ==9214== Releasing lock... [2024-12-20 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:18:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:19:05 [end_date_ymd] => 2024-12-20 06:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:19:18] Production.INFO: count ==36 [2024-12-20 06:19:18] Production.ERROR: pbx CDR StartTime 2024-12-20 03:19:05 - End Time 2024-12-20 06:19:05 [2024-12-20 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060939', 'tblTempUsageDetail_20' ) start [2024-12-20 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060939', 'tblTempUsageDetail_20' ) end [2024-12-20 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060939', 'tblTempVendorCDR_20' ) start [2024-12-20 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060939', 'tblTempVendorCDR_20' ) end [2024-12-20 06:19:18] Production.INFO: ProcessCDR(1,14060939,1,1,2) [2024-12-20 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060939', 'tblTempUsageDetail_20' ) start [2024-12-20 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060939', 'tblTempUsageDetail_20' ) end [2024-12-20 06:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:19:21] Production.INFO: ==9290== Releasing lock... [2024-12-20 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:19:21] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:20:05 [end_date_ymd] => 2024-12-20 06:20:05 [RateCDR] => 1 ) [2024-12-20 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:20:05' and `end` < '2024-12-20 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:20:17] Production.INFO: count ==36 [2024-12-20 06:20:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:20:05 - End Time 2024-12-20 06:20:05 [2024-12-20 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060945', 'tblTempUsageDetail_20' ) start [2024-12-20 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060945', 'tblTempUsageDetail_20' ) end [2024-12-20 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060945', 'tblTempVendorCDR_20' ) start [2024-12-20 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060945', 'tblTempVendorCDR_20' ) end [2024-12-20 06:20:17] Production.INFO: ProcessCDR(1,14060945,1,1,2) [2024-12-20 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060945', 'tblTempUsageDetail_20' ) start [2024-12-20 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060945', 'tblTempUsageDetail_20' ) end [2024-12-20 06:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:20:20] Production.INFO: ==9374== Releasing lock... [2024-12-20 06:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:20:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:21:05 [end_date_ymd] => 2024-12-20 06:21:05 [RateCDR] => 1 ) [2024-12-20 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:21:05' and `end` < '2024-12-20 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:21:17] Production.INFO: count ==36 [2024-12-20 06:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:21:05 - End Time 2024-12-20 06:21:05 [2024-12-20 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060950', 'tblTempUsageDetail_20' ) start [2024-12-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060950', 'tblTempUsageDetail_20' ) end [2024-12-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060950', 'tblTempVendorCDR_20' ) start [2024-12-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060950', 'tblTempVendorCDR_20' ) end [2024-12-20 06:21:17] Production.INFO: ProcessCDR(1,14060950,1,1,2) [2024-12-20 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060950', 'tblTempUsageDetail_20' ) start [2024-12-20 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060950', 'tblTempUsageDetail_20' ) end [2024-12-20 06:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:21:20] Production.INFO: ==9456== Releasing lock... [2024-12-20 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:21:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:22:05 [end_date_ymd] => 2024-12-20 06:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:22:17] Production.INFO: count ==36 [2024-12-20 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:22:05 - End Time 2024-12-20 06:22:05 [2024-12-20 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060955', 'tblTempUsageDetail_20' ) start [2024-12-20 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060955', 'tblTempUsageDetail_20' ) end [2024-12-20 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060955', 'tblTempVendorCDR_20' ) start [2024-12-20 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060955', 'tblTempVendorCDR_20' ) end [2024-12-20 06:22:17] Production.INFO: ProcessCDR(1,14060955,1,1,2) [2024-12-20 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060955', 'tblTempUsageDetail_20' ) start [2024-12-20 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060955', 'tblTempUsageDetail_20' ) end [2024-12-20 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:22:20] Production.INFO: ==9531== Releasing lock... [2024-12-20 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:22:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:23:05 [end_date_ymd] => 2024-12-20 06:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:23:18] Production.INFO: count ==36 [2024-12-20 06:23:18] Production.ERROR: pbx CDR StartTime 2024-12-20 03:23:05 - End Time 2024-12-20 06:23:05 [2024-12-20 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060960', 'tblTempUsageDetail_20' ) start [2024-12-20 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060960', 'tblTempUsageDetail_20' ) end [2024-12-20 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060960', 'tblTempVendorCDR_20' ) start [2024-12-20 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060960', 'tblTempVendorCDR_20' ) end [2024-12-20 06:23:18] Production.INFO: ProcessCDR(1,14060960,1,1,2) [2024-12-20 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060960', 'tblTempUsageDetail_20' ) start [2024-12-20 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060960', 'tblTempUsageDetail_20' ) end [2024-12-20 06:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:23:21] Production.INFO: ==9618== Releasing lock... [2024-12-20 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:23:21] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:24:04 [end_date_ymd] => 2024-12-20 06:24:04 [RateCDR] => 1 ) [2024-12-20 06:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:24:04' and `end` < '2024-12-20 06:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:24:16] Production.INFO: count ==36 [2024-12-20 06:24:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:24:04 - End Time 2024-12-20 06:24:04 [2024-12-20 06:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060965', 'tblTempUsageDetail_20' ) start [2024-12-20 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060965', 'tblTempUsageDetail_20' ) end [2024-12-20 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060965', 'tblTempVendorCDR_20' ) start [2024-12-20 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060965', 'tblTempVendorCDR_20' ) end [2024-12-20 06:24:16] Production.INFO: ProcessCDR(1,14060965,1,1,2) [2024-12-20 06:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:24:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060965', 'tblTempUsageDetail_20' ) start [2024-12-20 06:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060965', 'tblTempUsageDetail_20' ) end [2024-12-20 06:24:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:24:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:24:19] Production.INFO: ==9694== Releasing lock... [2024-12-20 06:24:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:24:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:25:05 [end_date_ymd] => 2024-12-20 06:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:25:17] Production.INFO: count ==35 [2024-12-20 06:25:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:25:05 - End Time 2024-12-20 06:25:05 [2024-12-20 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060970', 'tblTempUsageDetail_20' ) start [2024-12-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060970', 'tblTempUsageDetail_20' ) end [2024-12-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060970', 'tblTempVendorCDR_20' ) start [2024-12-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060970', 'tblTempVendorCDR_20' ) end [2024-12-20 06:25:17] Production.INFO: ProcessCDR(1,14060970,1,1,2) [2024-12-20 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060970', 'tblTempUsageDetail_20' ) start [2024-12-20 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060970', 'tblTempUsageDetail_20' ) end [2024-12-20 06:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:25:20] Production.INFO: ==9774== Releasing lock... [2024-12-20 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:25:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:26:04 [end_date_ymd] => 2024-12-20 06:26:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:26:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:26:17] Production.INFO: count ==35 [2024-12-20 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:26:04 - End Time 2024-12-20 06:26:04 [2024-12-20 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060975', 'tblTempUsageDetail_20' ) start [2024-12-20 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060975', 'tblTempUsageDetail_20' ) end [2024-12-20 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060975', 'tblTempVendorCDR_20' ) start [2024-12-20 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060975', 'tblTempVendorCDR_20' ) end [2024-12-20 06:26:17] Production.INFO: ProcessCDR(1,14060975,1,1,2) [2024-12-20 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060975', 'tblTempUsageDetail_20' ) start [2024-12-20 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060975', 'tblTempUsageDetail_20' ) end [2024-12-20 06:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:26:20] Production.INFO: ==9898== Releasing lock... [2024-12-20 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:27:04 [end_date_ymd] => 2024-12-20 06:27:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:27:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:27:16] Production.INFO: count ==35 [2024-12-20 06:27:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:27:04 - End Time 2024-12-20 06:27:04 [2024-12-20 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060980', 'tblTempUsageDetail_20' ) start [2024-12-20 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060980', 'tblTempUsageDetail_20' ) end [2024-12-20 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060980', 'tblTempVendorCDR_20' ) start [2024-12-20 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060980', 'tblTempVendorCDR_20' ) end [2024-12-20 06:27:16] Production.INFO: ProcessCDR(1,14060980,1,1,2) [2024-12-20 06:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060980', 'tblTempUsageDetail_20' ) start [2024-12-20 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060980', 'tblTempUsageDetail_20' ) end [2024-12-20 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:27:20] Production.INFO: ==9984== Releasing lock... [2024-12-20 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:28:05 [end_date_ymd] => 2024-12-20 06:28:05 [RateCDR] => 1 ) [2024-12-20 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:28:05' and `end` < '2024-12-20 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:28:18] Production.INFO: count ==35 [2024-12-20 06:28:18] Production.ERROR: pbx CDR StartTime 2024-12-20 03:28:05 - End Time 2024-12-20 06:28:05 [2024-12-20 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060985', 'tblTempUsageDetail_20' ) start [2024-12-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060985', 'tblTempUsageDetail_20' ) end [2024-12-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060985', 'tblTempVendorCDR_20' ) start [2024-12-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060985', 'tblTempVendorCDR_20' ) end [2024-12-20 06:28:18] Production.INFO: ProcessCDR(1,14060985,1,1,2) [2024-12-20 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060985', 'tblTempUsageDetail_20' ) start [2024-12-20 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060985', 'tblTempUsageDetail_20' ) end [2024-12-20 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:28:21] Production.INFO: ==10073== Releasing lock... [2024-12-20 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:28:21] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:29:05 [end_date_ymd] => 2024-12-20 06:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:29:17] Production.INFO: count ==35 [2024-12-20 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:29:05 - End Time 2024-12-20 06:29:05 [2024-12-20 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060990', 'tblTempUsageDetail_20' ) start [2024-12-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060990', 'tblTempUsageDetail_20' ) end [2024-12-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060990', 'tblTempVendorCDR_20' ) start [2024-12-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060990', 'tblTempVendorCDR_20' ) end [2024-12-20 06:29:17] Production.INFO: ProcessCDR(1,14060990,1,1,2) [2024-12-20 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060990', 'tblTempUsageDetail_20' ) start [2024-12-20 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060990', 'tblTempUsageDetail_20' ) end [2024-12-20 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:29:20] Production.INFO: ==10159== Releasing lock... [2024-12-20 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:30:06 [end_date_ymd] => 2024-12-20 06:30:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:30:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:30:18] Production.INFO: count ==28 [2024-12-20 06:30:18] Production.ERROR: pbx CDR StartTime 2024-12-20 03:30:06 - End Time 2024-12-20 06:30:06 [2024-12-20 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060996', 'tblTempUsageDetail_20' ) start [2024-12-20 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14060996', 'tblTempUsageDetail_20' ) end [2024-12-20 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060996', 'tblTempVendorCDR_20' ) start [2024-12-20 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14060996', 'tblTempVendorCDR_20' ) end [2024-12-20 06:30:18] Production.INFO: ProcessCDR(1,14060996,1,1,2) [2024-12-20 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14060996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14060996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14060996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14060996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060996', 'tblTempUsageDetail_20' ) start [2024-12-20 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14060996', 'tblTempUsageDetail_20' ) end [2024-12-20 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:30:21] Production.INFO: ==10243== Releasing lock... [2024-12-20 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:31:04 [end_date_ymd] => 2024-12-20 06:31:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:31:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:31:17] Production.INFO: count ==29 [2024-12-20 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:31:04 - End Time 2024-12-20 06:31:04 [2024-12-20 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061001', 'tblTempUsageDetail_20' ) start [2024-12-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061001', 'tblTempUsageDetail_20' ) end [2024-12-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061001', 'tblTempVendorCDR_20' ) start [2024-12-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061001', 'tblTempVendorCDR_20' ) end [2024-12-20 06:31:17] Production.INFO: ProcessCDR(1,14061001,1,1,2) [2024-12-20 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061001', 'tblTempUsageDetail_20' ) start [2024-12-20 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061001', 'tblTempUsageDetail_20' ) end [2024-12-20 06:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:31:20] Production.INFO: ==10331== Releasing lock... [2024-12-20 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:31:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:32:05 [end_date_ymd] => 2024-12-20 06:32:05 [RateCDR] => 1 ) [2024-12-20 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:32:05' and `end` < '2024-12-20 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:32:17] Production.INFO: count ==29 [2024-12-20 06:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:32:05 - End Time 2024-12-20 06:32:05 [2024-12-20 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061006', 'tblTempUsageDetail_20' ) start [2024-12-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061006', 'tblTempUsageDetail_20' ) end [2024-12-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061006', 'tblTempVendorCDR_20' ) start [2024-12-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061006', 'tblTempVendorCDR_20' ) end [2024-12-20 06:32:17] Production.INFO: ProcessCDR(1,14061006,1,1,2) [2024-12-20 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061006', 'tblTempUsageDetail_20' ) start [2024-12-20 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061006', 'tblTempUsageDetail_20' ) end [2024-12-20 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:32:20] Production.INFO: ==10410== Releasing lock... [2024-12-20 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:33:05 [end_date_ymd] => 2024-12-20 06:33:05 [RateCDR] => 1 ) [2024-12-20 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:33:05' and `end` < '2024-12-20 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:33:16] Production.INFO: count ==29 [2024-12-20 06:33:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:33:05 - End Time 2024-12-20 06:33:05 [2024-12-20 06:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061011', 'tblTempUsageDetail_20' ) start [2024-12-20 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061011', 'tblTempUsageDetail_20' ) end [2024-12-20 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061011', 'tblTempVendorCDR_20' ) start [2024-12-20 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061011', 'tblTempVendorCDR_20' ) end [2024-12-20 06:33:16] Production.INFO: ProcessCDR(1,14061011,1,1,2) [2024-12-20 06:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061011', 'tblTempUsageDetail_20' ) start [2024-12-20 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061011', 'tblTempUsageDetail_20' ) end [2024-12-20 06:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:33:20] Production.INFO: ==10498== Releasing lock... [2024-12-20 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:34:05 [end_date_ymd] => 2024-12-20 06:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:34:17] Production.INFO: count ==29 [2024-12-20 06:34:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:34:05 - End Time 2024-12-20 06:34:05 [2024-12-20 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061016', 'tblTempUsageDetail_20' ) start [2024-12-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061016', 'tblTempUsageDetail_20' ) end [2024-12-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061016', 'tblTempVendorCDR_20' ) start [2024-12-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061016', 'tblTempVendorCDR_20' ) end [2024-12-20 06:34:17] Production.INFO: ProcessCDR(1,14061016,1,1,2) [2024-12-20 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061016', 'tblTempUsageDetail_20' ) start [2024-12-20 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061016', 'tblTempUsageDetail_20' ) end [2024-12-20 06:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:34:20] Production.INFO: ==10576== Releasing lock... [2024-12-20 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:34:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:35:05 [end_date_ymd] => 2024-12-20 06:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:35:17] Production.INFO: count ==29 [2024-12-20 06:35:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:35:05 - End Time 2024-12-20 06:35:05 [2024-12-20 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061021', 'tblTempUsageDetail_20' ) start [2024-12-20 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061021', 'tblTempUsageDetail_20' ) end [2024-12-20 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061021', 'tblTempVendorCDR_20' ) start [2024-12-20 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061021', 'tblTempVendorCDR_20' ) end [2024-12-20 06:35:17] Production.INFO: ProcessCDR(1,14061021,1,1,2) [2024-12-20 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061021', 'tblTempUsageDetail_20' ) start [2024-12-20 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061021', 'tblTempUsageDetail_20' ) end [2024-12-20 06:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:35:20] Production.INFO: ==10656== Releasing lock... [2024-12-20 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:36:04 [end_date_ymd] => 2024-12-20 06:36:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:36:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:36:16] Production.INFO: count ==29 [2024-12-20 06:36:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:36:04 - End Time 2024-12-20 06:36:04 [2024-12-20 06:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061026', 'tblTempUsageDetail_20' ) start [2024-12-20 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061026', 'tblTempUsageDetail_20' ) end [2024-12-20 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061026', 'tblTempVendorCDR_20' ) start [2024-12-20 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061026', 'tblTempVendorCDR_20' ) end [2024-12-20 06:36:16] Production.INFO: ProcessCDR(1,14061026,1,1,2) [2024-12-20 06:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061026', 'tblTempUsageDetail_20' ) start [2024-12-20 06:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061026', 'tblTempUsageDetail_20' ) end [2024-12-20 06:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:36:19] Production.INFO: ==10732== Releasing lock... [2024-12-20 06:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:36:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:37:05 [end_date_ymd] => 2024-12-20 06:37:05 [RateCDR] => 1 ) [2024-12-20 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:37:05' and `end` < '2024-12-20 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:37:18] Production.INFO: count ==29 [2024-12-20 06:37:18] Production.ERROR: pbx CDR StartTime 2024-12-20 03:37:05 - End Time 2024-12-20 06:37:05 [2024-12-20 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061031', 'tblTempUsageDetail_20' ) start [2024-12-20 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061031', 'tblTempUsageDetail_20' ) end [2024-12-20 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061031', 'tblTempVendorCDR_20' ) start [2024-12-20 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061031', 'tblTempVendorCDR_20' ) end [2024-12-20 06:37:18] Production.INFO: ProcessCDR(1,14061031,1,1,2) [2024-12-20 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061031', 'tblTempUsageDetail_20' ) start [2024-12-20 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061031', 'tblTempUsageDetail_20' ) end [2024-12-20 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:37:21] Production.INFO: ==10803== Releasing lock... [2024-12-20 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:38:04 [end_date_ymd] => 2024-12-20 06:38:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:38:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:38:16] Production.INFO: count ==29 [2024-12-20 06:38:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:38:04 - End Time 2024-12-20 06:38:04 [2024-12-20 06:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061036', 'tblTempUsageDetail_20' ) start [2024-12-20 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061036', 'tblTempUsageDetail_20' ) end [2024-12-20 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061036', 'tblTempVendorCDR_20' ) start [2024-12-20 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061036', 'tblTempVendorCDR_20' ) end [2024-12-20 06:38:16] Production.INFO: ProcessCDR(1,14061036,1,1,2) [2024-12-20 06:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061036', 'tblTempUsageDetail_20' ) start [2024-12-20 06:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061036', 'tblTempUsageDetail_20' ) end [2024-12-20 06:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:38:20] Production.INFO: ==10878== Releasing lock... [2024-12-20 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:38:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:39:05 [end_date_ymd] => 2024-12-20 06:39:05 [RateCDR] => 1 ) [2024-12-20 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:39:05' and `end` < '2024-12-20 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:39:17] Production.INFO: count ==29 [2024-12-20 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:39:05 - End Time 2024-12-20 06:39:05 [2024-12-20 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061041', 'tblTempUsageDetail_20' ) start [2024-12-20 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061041', 'tblTempUsageDetail_20' ) end [2024-12-20 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061041', 'tblTempVendorCDR_20' ) start [2024-12-20 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061041', 'tblTempVendorCDR_20' ) end [2024-12-20 06:39:17] Production.INFO: ProcessCDR(1,14061041,1,1,2) [2024-12-20 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061041', 'tblTempUsageDetail_20' ) start [2024-12-20 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061041', 'tblTempUsageDetail_20' ) end [2024-12-20 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:39:20] Production.INFO: ==10949== Releasing lock... [2024-12-20 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:40:05 [end_date_ymd] => 2024-12-20 06:40:05 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:40:05' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:40:17] Production.INFO: count ==23 [2024-12-20 06:40:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:40:05 - End Time 2024-12-20 06:40:05 [2024-12-20 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061047', 'tblTempUsageDetail_20' ) start [2024-12-20 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061047', 'tblTempUsageDetail_20' ) end [2024-12-20 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061047', 'tblTempVendorCDR_20' ) start [2024-12-20 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061047', 'tblTempVendorCDR_20' ) end [2024-12-20 06:40:17] Production.INFO: ProcessCDR(1,14061047,1,1,2) [2024-12-20 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061047', 'tblTempUsageDetail_20' ) start [2024-12-20 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061047', 'tblTempUsageDetail_20' ) end [2024-12-20 06:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:40:20] Production.INFO: ==11024== Releasing lock... [2024-12-20 06:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:40:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:41:05 [end_date_ymd] => 2024-12-20 06:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:41:17] Production.INFO: count ==15 [2024-12-20 06:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:41:05 - End Time 2024-12-20 06:41:05 [2024-12-20 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061052', 'tblTempUsageDetail_20' ) start [2024-12-20 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061052', 'tblTempUsageDetail_20' ) end [2024-12-20 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061052', 'tblTempVendorCDR_20' ) start [2024-12-20 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061052', 'tblTempVendorCDR_20' ) end [2024-12-20 06:41:17] Production.INFO: ProcessCDR(1,14061052,1,1,2) [2024-12-20 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061052', 'tblTempUsageDetail_20' ) start [2024-12-20 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061052', 'tblTempUsageDetail_20' ) end [2024-12-20 06:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:41:20] Production.INFO: ==11097== Releasing lock... [2024-12-20 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:41:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:42:05 [end_date_ymd] => 2024-12-20 06:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:42:17] Production.INFO: count ==12 [2024-12-20 06:42:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:42:05 - End Time 2024-12-20 06:42:05 [2024-12-20 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061057', 'tblTempUsageDetail_20' ) start [2024-12-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061057', 'tblTempUsageDetail_20' ) end [2024-12-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061057', 'tblTempVendorCDR_20' ) start [2024-12-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061057', 'tblTempVendorCDR_20' ) end [2024-12-20 06:42:17] Production.INFO: ProcessCDR(1,14061057,1,1,2) [2024-12-20 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061057', 'tblTempUsageDetail_20' ) start [2024-12-20 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061057', 'tblTempUsageDetail_20' ) end [2024-12-20 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:42:20] Production.INFO: ==11209== Releasing lock... [2024-12-20 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:43:04 [end_date_ymd] => 2024-12-20 06:43:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:43:04' and `end` < '2024-12-20 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:43:17] Production.INFO: count ==12 [2024-12-20 06:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:43:04 - End Time 2024-12-20 06:43:04 [2024-12-20 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061062', 'tblTempUsageDetail_20' ) start [2024-12-20 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061062', 'tblTempUsageDetail_20' ) end [2024-12-20 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061062', 'tblTempVendorCDR_20' ) start [2024-12-20 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061062', 'tblTempVendorCDR_20' ) end [2024-12-20 06:43:17] Production.INFO: ProcessCDR(1,14061062,1,1,2) [2024-12-20 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061062', 'tblTempUsageDetail_20' ) start [2024-12-20 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061062', 'tblTempUsageDetail_20' ) end [2024-12-20 06:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:43:20] Production.INFO: ==11278== Releasing lock... [2024-12-20 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:43:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:44:05 [end_date_ymd] => 2024-12-20 06:44:05 [RateCDR] => 1 ) [2024-12-20 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:44:05' and `end` < '2024-12-20 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:44:18] Production.INFO: count ==12 [2024-12-20 06:44:18] Production.ERROR: pbx CDR StartTime 2024-12-20 03:44:05 - End Time 2024-12-20 06:44:05 [2024-12-20 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061067', 'tblTempUsageDetail_20' ) start [2024-12-20 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061067', 'tblTempUsageDetail_20' ) end [2024-12-20 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061067', 'tblTempVendorCDR_20' ) start [2024-12-20 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061067', 'tblTempVendorCDR_20' ) end [2024-12-20 06:44:18] Production.INFO: ProcessCDR(1,14061067,1,1,2) [2024-12-20 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061067', 'tblTempUsageDetail_20' ) start [2024-12-20 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061067', 'tblTempUsageDetail_20' ) end [2024-12-20 06:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:44:21] Production.INFO: ==11351== Releasing lock... [2024-12-20 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:45:04 [end_date_ymd] => 2024-12-20 06:45:04 [RateCDR] => 1 ) [2024-12-20 06:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:45:04' and `end` < '2024-12-20 06:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:45:16] Production.INFO: count ==12 [2024-12-20 06:45:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:45:04 - End Time 2024-12-20 06:45:04 [2024-12-20 06:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061072', 'tblTempUsageDetail_20' ) start [2024-12-20 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061072', 'tblTempUsageDetail_20' ) end [2024-12-20 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061072', 'tblTempVendorCDR_20' ) start [2024-12-20 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061072', 'tblTempVendorCDR_20' ) end [2024-12-20 06:45:16] Production.INFO: ProcessCDR(1,14061072,1,1,2) [2024-12-20 06:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061072', 'tblTempUsageDetail_20' ) start [2024-12-20 06:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061072', 'tblTempUsageDetail_20' ) end [2024-12-20 06:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:45:19] Production.INFO: ==11422== Releasing lock... [2024-12-20 06:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:45:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:46:05 [end_date_ymd] => 2024-12-20 06:46:05 [RateCDR] => 1 ) [2024-12-20 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:46:05' and `end` < '2024-12-20 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:46:17] Production.INFO: count ==12 [2024-12-20 06:46:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:46:05 - End Time 2024-12-20 06:46:05 [2024-12-20 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061077', 'tblTempUsageDetail_20' ) start [2024-12-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061077', 'tblTempUsageDetail_20' ) end [2024-12-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061077', 'tblTempVendorCDR_20' ) start [2024-12-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061077', 'tblTempVendorCDR_20' ) end [2024-12-20 06:46:17] Production.INFO: ProcessCDR(1,14061077,1,1,2) [2024-12-20 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061077', 'tblTempUsageDetail_20' ) start [2024-12-20 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061077', 'tblTempUsageDetail_20' ) end [2024-12-20 06:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:46:20] Production.INFO: ==11496== Releasing lock... [2024-12-20 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:47:05 [end_date_ymd] => 2024-12-20 06:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:47:17] Production.INFO: count ==12 [2024-12-20 06:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:47:05 - End Time 2024-12-20 06:47:05 [2024-12-20 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061082', 'tblTempUsageDetail_20' ) start [2024-12-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061082', 'tblTempUsageDetail_20' ) end [2024-12-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061082', 'tblTempVendorCDR_20' ) start [2024-12-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061082', 'tblTempVendorCDR_20' ) end [2024-12-20 06:47:17] Production.INFO: ProcessCDR(1,14061082,1,1,2) [2024-12-20 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061082', 'tblTempUsageDetail_20' ) start [2024-12-20 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061082', 'tblTempUsageDetail_20' ) end [2024-12-20 06:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:47:20] Production.INFO: ==11568== Releasing lock... [2024-12-20 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:47:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:48:05 [end_date_ymd] => 2024-12-20 06:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:48:17] Production.INFO: count ==12 [2024-12-20 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:48:05 - End Time 2024-12-20 06:48:05 [2024-12-20 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061087', 'tblTempUsageDetail_20' ) start [2024-12-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061087', 'tblTempUsageDetail_20' ) end [2024-12-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061087', 'tblTempVendorCDR_20' ) start [2024-12-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061087', 'tblTempVendorCDR_20' ) end [2024-12-20 06:48:17] Production.INFO: ProcessCDR(1,14061087,1,1,2) [2024-12-20 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061087', 'tblTempUsageDetail_20' ) start [2024-12-20 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061087', 'tblTempUsageDetail_20' ) end [2024-12-20 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:48:20] Production.INFO: ==11642== Releasing lock... [2024-12-20 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:49:05 [end_date_ymd] => 2024-12-20 06:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:49:17] Production.INFO: count ==12 [2024-12-20 06:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:49:05 - End Time 2024-12-20 06:49:05 [2024-12-20 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061092', 'tblTempUsageDetail_20' ) start [2024-12-20 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061092', 'tblTempUsageDetail_20' ) end [2024-12-20 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061092', 'tblTempVendorCDR_20' ) start [2024-12-20 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061092', 'tblTempVendorCDR_20' ) end [2024-12-20 06:49:17] Production.INFO: ProcessCDR(1,14061092,1,1,2) [2024-12-20 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061092', 'tblTempUsageDetail_20' ) start [2024-12-20 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061092', 'tblTempUsageDetail_20' ) end [2024-12-20 06:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:49:20] Production.INFO: ==11714== Releasing lock... [2024-12-20 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:49:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:50:05 [end_date_ymd] => 2024-12-20 06:50:05 [RateCDR] => 1 ) [2024-12-20 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:50:05' and `end` < '2024-12-20 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:50:17] Production.INFO: count ==16 [2024-12-20 06:50:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:50:05 - End Time 2024-12-20 06:50:05 [2024-12-20 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061098', 'tblTempUsageDetail_20' ) start [2024-12-20 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061098', 'tblTempUsageDetail_20' ) end [2024-12-20 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061098', 'tblTempVendorCDR_20' ) start [2024-12-20 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061098', 'tblTempVendorCDR_20' ) end [2024-12-20 06:50:17] Production.INFO: ProcessCDR(1,14061098,1,1,2) [2024-12-20 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061098', 'tblTempUsageDetail_20' ) start [2024-12-20 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061098', 'tblTempUsageDetail_20' ) end [2024-12-20 06:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:50:20] Production.INFO: ==11789== Releasing lock... [2024-12-20 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:50:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:51:05 [end_date_ymd] => 2024-12-20 06:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:51:17] Production.INFO: count ==20 [2024-12-20 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:51:05 - End Time 2024-12-20 06:51:05 [2024-12-20 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061103', 'tblTempUsageDetail_20' ) start [2024-12-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061103', 'tblTempUsageDetail_20' ) end [2024-12-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061103', 'tblTempVendorCDR_20' ) start [2024-12-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061103', 'tblTempVendorCDR_20' ) end [2024-12-20 06:51:17] Production.INFO: ProcessCDR(1,14061103,1,1,2) [2024-12-20 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061103', 'tblTempUsageDetail_20' ) start [2024-12-20 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061103', 'tblTempUsageDetail_20' ) end [2024-12-20 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:51:20] Production.INFO: ==11863== Releasing lock... [2024-12-20 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:52:04 [end_date_ymd] => 2024-12-20 06:52:04 [RateCDR] => 1 ) [2024-12-20 06: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` >= '2024-12-20 03:52:04' and `end` < '2024-12-20 06: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 ,'') [2024-12-20 06:52:17] Production.INFO: count ==21 [2024-12-20 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:52:04 - End Time 2024-12-20 06:52:04 [2024-12-20 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061108', 'tblTempUsageDetail_20' ) start [2024-12-20 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061108', 'tblTempUsageDetail_20' ) end [2024-12-20 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061108', 'tblTempVendorCDR_20' ) start [2024-12-20 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061108', 'tblTempVendorCDR_20' ) end [2024-12-20 06:52:17] Production.INFO: ProcessCDR(1,14061108,1,1,2) [2024-12-20 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061108', 'tblTempUsageDetail_20' ) start [2024-12-20 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061108', 'tblTempUsageDetail_20' ) end [2024-12-20 06:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:52:21] Production.INFO: ==11934== Releasing lock... [2024-12-20 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:53:05 [end_date_ymd] => 2024-12-20 06:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:53:17] Production.INFO: count ==21 [2024-12-20 06:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:53:05 - End Time 2024-12-20 06:53:05 [2024-12-20 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061113', 'tblTempUsageDetail_20' ) start [2024-12-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061113', 'tblTempUsageDetail_20' ) end [2024-12-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061113', 'tblTempVendorCDR_20' ) start [2024-12-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061113', 'tblTempVendorCDR_20' ) end [2024-12-20 06:53:17] Production.INFO: ProcessCDR(1,14061113,1,1,2) [2024-12-20 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061113', 'tblTempUsageDetail_20' ) start [2024-12-20 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061113', 'tblTempUsageDetail_20' ) end [2024-12-20 06:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:53:20] Production.INFO: ==12005== Releasing lock... [2024-12-20 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:53:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:54:05 [end_date_ymd] => 2024-12-20 06:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:54:17] Production.INFO: count ==21 [2024-12-20 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:54:05 - End Time 2024-12-20 06:54:05 [2024-12-20 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061118', 'tblTempUsageDetail_20' ) start [2024-12-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061118', 'tblTempUsageDetail_20' ) end [2024-12-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061118', 'tblTempVendorCDR_20' ) start [2024-12-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061118', 'tblTempVendorCDR_20' ) end [2024-12-20 06:54:17] Production.INFO: ProcessCDR(1,14061118,1,1,2) [2024-12-20 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061118', 'tblTempUsageDetail_20' ) start [2024-12-20 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061118', 'tblTempUsageDetail_20' ) end [2024-12-20 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:54:20] Production.INFO: ==12077== Releasing lock... [2024-12-20 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:55:05 [end_date_ymd] => 2024-12-20 06:55:05 [RateCDR] => 1 ) [2024-12-20 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:55:05' and `end` < '2024-12-20 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:55:17] Production.INFO: count ==21 [2024-12-20 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:55:05 - End Time 2024-12-20 06:55:05 [2024-12-20 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061123', 'tblTempUsageDetail_20' ) start [2024-12-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061123', 'tblTempUsageDetail_20' ) end [2024-12-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061123', 'tblTempVendorCDR_20' ) start [2024-12-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061123', 'tblTempVendorCDR_20' ) end [2024-12-20 06:55:17] Production.INFO: ProcessCDR(1,14061123,1,1,2) [2024-12-20 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061123', 'tblTempUsageDetail_20' ) start [2024-12-20 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061123', 'tblTempUsageDetail_20' ) end [2024-12-20 06:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:55:20] Production.INFO: ==12147== Releasing lock... [2024-12-20 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:56:04 [end_date_ymd] => 2024-12-20 06:56:04 [RateCDR] => 1 ) [2024-12-20 06:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 03:56:04' and `end` < '2024-12-20 06:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 06:56:16] Production.INFO: count ==21 [2024-12-20 06:56:16] Production.ERROR: pbx CDR StartTime 2024-12-20 03:56:04 - End Time 2024-12-20 06:56:04 [2024-12-20 06:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061128', 'tblTempUsageDetail_20' ) start [2024-12-20 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061128', 'tblTempUsageDetail_20' ) end [2024-12-20 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061128', 'tblTempVendorCDR_20' ) start [2024-12-20 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061128', 'tblTempVendorCDR_20' ) end [2024-12-20 06:56:16] Production.INFO: ProcessCDR(1,14061128,1,1,2) [2024-12-20 06:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061128', 'tblTempUsageDetail_20' ) start [2024-12-20 06:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061128', 'tblTempUsageDetail_20' ) end [2024-12-20 06:56:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:56:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:56:19] Production.INFO: ==12218== Releasing lock... [2024-12-20 06:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:56:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:57:05 [end_date_ymd] => 2024-12-20 06:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:57:17] Production.INFO: count ==21 [2024-12-20 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:57:05 - End Time 2024-12-20 06:57:05 [2024-12-20 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061133', 'tblTempUsageDetail_20' ) start [2024-12-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061133', 'tblTempUsageDetail_20' ) end [2024-12-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061133', 'tblTempVendorCDR_20' ) start [2024-12-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061133', 'tblTempVendorCDR_20' ) end [2024-12-20 06:57:17] Production.INFO: ProcessCDR(1,14061133,1,1,2) [2024-12-20 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061133', 'tblTempUsageDetail_20' ) start [2024-12-20 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061133', 'tblTempUsageDetail_20' ) end [2024-12-20 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:57:20] Production.INFO: ==12292== Releasing lock... [2024-12-20 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:58:05 [end_date_ymd] => 2024-12-20 06:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:58:17] Production.INFO: count ==21 [2024-12-20 06:58:17] Production.ERROR: pbx CDR StartTime 2024-12-20 03:58:05 - End Time 2024-12-20 06:58:05 [2024-12-20 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061138', 'tblTempUsageDetail_20' ) start [2024-12-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061138', 'tblTempUsageDetail_20' ) end [2024-12-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061138', 'tblTempVendorCDR_20' ) start [2024-12-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061138', 'tblTempVendorCDR_20' ) end [2024-12-20 06:58:17] Production.INFO: ProcessCDR(1,14061138,1,1,2) [2024-12-20 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061138', 'tblTempUsageDetail_20' ) start [2024-12-20 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061138', 'tblTempUsageDetail_20' ) end [2024-12-20 06:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:58:20] Production.INFO: ==12402== Releasing lock... [2024-12-20 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:58:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 03:59:05 [end_date_ymd] => 2024-12-20 06:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 03:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 06:59:18] Production.INFO: count ==21 [2024-12-20 06:59:18] Production.ERROR: pbx CDR StartTime 2024-12-20 03:59:05 - End Time 2024-12-20 06:59:05 [2024-12-20 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061143', 'tblTempUsageDetail_20' ) start [2024-12-20 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061143', 'tblTempUsageDetail_20' ) end [2024-12-20 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061143', 'tblTempVendorCDR_20' ) start [2024-12-20 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061143', 'tblTempVendorCDR_20' ) end [2024-12-20 06:59:18] Production.INFO: ProcessCDR(1,14061143,1,1,2) [2024-12-20 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061143', 'tblTempUsageDetail_20' ) start [2024-12-20 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061143', 'tblTempUsageDetail_20' ) end [2024-12-20 06:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 06:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 06:59:21] Production.INFO: ==12474== Releasing lock... [2024-12-20 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:00:05 [end_date_ymd] => 2024-12-20 07:00:05 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:00:05' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:00:17] Production.INFO: count ==21 [2024-12-20 07:00:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:00:05 - End Time 2024-12-20 07:00:05 [2024-12-20 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061149', 'tblTempUsageDetail_20' ) start [2024-12-20 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061149', 'tblTempUsageDetail_20' ) end [2024-12-20 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061149', 'tblTempVendorCDR_20' ) start [2024-12-20 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061149', 'tblTempVendorCDR_20' ) end [2024-12-20 07:00:17] Production.INFO: ProcessCDR(1,14061149,1,1,2) [2024-12-20 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061149', 'tblTempUsageDetail_20' ) start [2024-12-20 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061149', 'tblTempUsageDetail_20' ) end [2024-12-20 07:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:00:20] Production.INFO: ==12545== Releasing lock... [2024-12-20 07:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:00:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:01:05 [end_date_ymd] => 2024-12-20 07:01:05 [RateCDR] => 1 ) [2024-12-20 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:01:05' and `end` < '2024-12-20 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:01:38] Production.INFO: count ==21 [2024-12-20 07:01:38] Production.ERROR: pbx CDR StartTime 2024-12-20 04:01:05 - End Time 2024-12-20 07:01:05 [2024-12-20 07:01:38] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061154', 'tblTempUsageDetail_20' ) start [2024-12-20 07:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061154', 'tblTempUsageDetail_20' ) end [2024-12-20 07:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061154', 'tblTempVendorCDR_20' ) start [2024-12-20 07:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061154', 'tblTempVendorCDR_20' ) end [2024-12-20 07:01:38] Production.INFO: ProcessCDR(1,14061154,1,1,2) [2024-12-20 07:01:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:01:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:01:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:01:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061154', 'tblTempUsageDetail_20' ) start [2024-12-20 07:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061154', 'tblTempUsageDetail_20' ) end [2024-12-20 07:01:41] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:01:41] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:01:41] Production.INFO: ==12635== Releasing lock... [2024-12-20 07:01:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:01:41] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:02:05 [end_date_ymd] => 2024-12-20 07:02:05 [RateCDR] => 1 ) [2024-12-20 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:02:05' and `end` < '2024-12-20 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:02:19] Production.INFO: count ==21 [2024-12-20 07:02:19] Production.ERROR: pbx CDR StartTime 2024-12-20 04:02:05 - End Time 2024-12-20 07:02:05 [2024-12-20 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061159', 'tblTempUsageDetail_20' ) start [2024-12-20 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061159', 'tblTempUsageDetail_20' ) end [2024-12-20 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061159', 'tblTempVendorCDR_20' ) start [2024-12-20 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061159', 'tblTempVendorCDR_20' ) end [2024-12-20 07:02:19] Production.INFO: ProcessCDR(1,14061159,1,1,2) [2024-12-20 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061159', 'tblTempUsageDetail_20' ) start [2024-12-20 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061159', 'tblTempUsageDetail_20' ) end [2024-12-20 07:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:02:22] Production.INFO: ==12783== Releasing lock... [2024-12-20 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:03:04 [end_date_ymd] => 2024-12-20 07:03:04 [RateCDR] => 1 ) [2024-12-20 07:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:03:04' and `end` < '2024-12-20 07:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:03:17] Production.INFO: count ==21 [2024-12-20 07:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:03:04 - End Time 2024-12-20 07:03:04 [2024-12-20 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061164', 'tblTempUsageDetail_20' ) start [2024-12-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061164', 'tblTempUsageDetail_20' ) end [2024-12-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061164', 'tblTempVendorCDR_20' ) start [2024-12-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061164', 'tblTempVendorCDR_20' ) end [2024-12-20 07:03:17] Production.INFO: ProcessCDR(1,14061164,1,1,2) [2024-12-20 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061164', 'tblTempUsageDetail_20' ) start [2024-12-20 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061164', 'tblTempUsageDetail_20' ) end [2024-12-20 07:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:03:20] Production.INFO: ==12857== Releasing lock... [2024-12-20 07:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:03:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:04:05 [end_date_ymd] => 2024-12-20 07:04:05 [RateCDR] => 1 ) [2024-12-20 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:04:05' and `end` < '2024-12-20 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:04:19] Production.INFO: count ==21 [2024-12-20 07:04:19] Production.ERROR: pbx CDR StartTime 2024-12-20 04:04:05 - End Time 2024-12-20 07:04:05 [2024-12-20 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061169', 'tblTempUsageDetail_20' ) start [2024-12-20 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061169', 'tblTempUsageDetail_20' ) end [2024-12-20 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061169', 'tblTempVendorCDR_20' ) start [2024-12-20 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061169', 'tblTempVendorCDR_20' ) end [2024-12-20 07:04:19] Production.INFO: ProcessCDR(1,14061169,1,1,2) [2024-12-20 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061169', 'tblTempUsageDetail_20' ) start [2024-12-20 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061169', 'tblTempUsageDetail_20' ) end [2024-12-20 07:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:04:23] Production.INFO: ==12930== Releasing lock... [2024-12-20 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:04:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:05:04 [end_date_ymd] => 2024-12-20 07:05:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:05:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:05:17] Production.INFO: count ==21 [2024-12-20 07:05:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:05:04 - End Time 2024-12-20 07:05:04 [2024-12-20 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061174', 'tblTempUsageDetail_20' ) start [2024-12-20 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061174', 'tblTempUsageDetail_20' ) end [2024-12-20 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061174', 'tblTempVendorCDR_20' ) start [2024-12-20 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061174', 'tblTempVendorCDR_20' ) end [2024-12-20 07:05:17] Production.INFO: ProcessCDR(1,14061174,1,1,2) [2024-12-20 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061174', 'tblTempUsageDetail_20' ) start [2024-12-20 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061174', 'tblTempUsageDetail_20' ) end [2024-12-20 07:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:05:20] Production.INFO: ==13080== Releasing lock... [2024-12-20 07:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:06:05 [end_date_ymd] => 2024-12-20 07:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:06:18] Production.INFO: count ==21 [2024-12-20 07:06:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:06:05 - End Time 2024-12-20 07:06:05 [2024-12-20 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061179', 'tblTempUsageDetail_20' ) start [2024-12-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061179', 'tblTempUsageDetail_20' ) end [2024-12-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061179', 'tblTempVendorCDR_20' ) start [2024-12-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061179', 'tblTempVendorCDR_20' ) end [2024-12-20 07:06:18] Production.INFO: ProcessCDR(1,14061179,1,1,2) [2024-12-20 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061179', 'tblTempUsageDetail_20' ) start [2024-12-20 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061179', 'tblTempUsageDetail_20' ) end [2024-12-20 07:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:06:21] Production.INFO: ==13153== Releasing lock... [2024-12-20 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:06:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:07:04 [end_date_ymd] => 2024-12-20 07:07:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:07:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:07:18] Production.INFO: count ==21 [2024-12-20 07:07:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:07:04 - End Time 2024-12-20 07:07:04 [2024-12-20 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061184', 'tblTempUsageDetail_20' ) start [2024-12-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061184', 'tblTempUsageDetail_20' ) end [2024-12-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061184', 'tblTempVendorCDR_20' ) start [2024-12-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061184', 'tblTempVendorCDR_20' ) end [2024-12-20 07:07:18] Production.INFO: ProcessCDR(1,14061184,1,1,2) [2024-12-20 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061184', 'tblTempUsageDetail_20' ) start [2024-12-20 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061184', 'tblTempUsageDetail_20' ) end [2024-12-20 07:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:07:22] Production.INFO: ==13230== Releasing lock... [2024-12-20 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:07:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:08:05 [end_date_ymd] => 2024-12-20 07:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:08:18] Production.INFO: count ==21 [2024-12-20 07:08:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:08:05 - End Time 2024-12-20 07:08:05 [2024-12-20 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061189', 'tblTempUsageDetail_20' ) start [2024-12-20 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061189', 'tblTempUsageDetail_20' ) end [2024-12-20 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061189', 'tblTempVendorCDR_20' ) start [2024-12-20 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061189', 'tblTempVendorCDR_20' ) end [2024-12-20 07:08:18] Production.INFO: ProcessCDR(1,14061189,1,1,2) [2024-12-20 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061189', 'tblTempUsageDetail_20' ) start [2024-12-20 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061189', 'tblTempUsageDetail_20' ) end [2024-12-20 07:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:08:21] Production.INFO: ==13299== Releasing lock... [2024-12-20 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:09:05 [end_date_ymd] => 2024-12-20 07:09:05 [RateCDR] => 1 ) [2024-12-20 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:09:05' and `end` < '2024-12-20 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:09:17] Production.INFO: count ==21 [2024-12-20 07:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:09:05 - End Time 2024-12-20 07:09:05 [2024-12-20 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061194', 'tblTempUsageDetail_20' ) start [2024-12-20 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061194', 'tblTempUsageDetail_20' ) end [2024-12-20 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061194', 'tblTempVendorCDR_20' ) start [2024-12-20 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061194', 'tblTempVendorCDR_20' ) end [2024-12-20 07:09:17] Production.INFO: ProcessCDR(1,14061194,1,1,2) [2024-12-20 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061194', 'tblTempUsageDetail_20' ) start [2024-12-20 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061194', 'tblTempUsageDetail_20' ) end [2024-12-20 07:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:09:21] Production.INFO: ==13449== Releasing lock... [2024-12-20 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:09:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:10:05 [end_date_ymd] => 2024-12-20 07:10:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:10:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:10:18] Production.INFO: count ==21 [2024-12-20 07:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:10:05 - End Time 2024-12-20 07:10:05 [2024-12-20 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061200', 'tblTempUsageDetail_20' ) start [2024-12-20 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061200', 'tblTempUsageDetail_20' ) end [2024-12-20 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061200', 'tblTempVendorCDR_20' ) start [2024-12-20 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061200', 'tblTempVendorCDR_20' ) end [2024-12-20 07:10:18] Production.INFO: ProcessCDR(1,14061200,1,1,2) [2024-12-20 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061200', 'tblTempUsageDetail_20' ) start [2024-12-20 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061200', 'tblTempUsageDetail_20' ) end [2024-12-20 07:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:10:21] Production.INFO: ==13522== Releasing lock... [2024-12-20 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:11:05 [end_date_ymd] => 2024-12-20 07:11:05 [RateCDR] => 1 ) [2024-12-20 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:11:05' and `end` < '2024-12-20 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:11:17] Production.INFO: count ==21 [2024-12-20 07:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:11:05 - End Time 2024-12-20 07:11:05 [2024-12-20 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061205', 'tblTempUsageDetail_20' ) start [2024-12-20 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061205', 'tblTempUsageDetail_20' ) end [2024-12-20 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061205', 'tblTempVendorCDR_20' ) start [2024-12-20 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061205', 'tblTempVendorCDR_20' ) end [2024-12-20 07:11:17] Production.INFO: ProcessCDR(1,14061205,1,1,2) [2024-12-20 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061205', 'tblTempUsageDetail_20' ) start [2024-12-20 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061205', 'tblTempUsageDetail_20' ) end [2024-12-20 07:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:11:20] Production.INFO: ==13597== Releasing lock... [2024-12-20 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:11:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:12:05 [end_date_ymd] => 2024-12-20 07:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:12:18] Production.INFO: count ==21 [2024-12-20 07:12:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:12:05 - End Time 2024-12-20 07:12:05 [2024-12-20 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061210', 'tblTempUsageDetail_20' ) start [2024-12-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061210', 'tblTempUsageDetail_20' ) end [2024-12-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061210', 'tblTempVendorCDR_20' ) start [2024-12-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061210', 'tblTempVendorCDR_20' ) end [2024-12-20 07:12:18] Production.INFO: ProcessCDR(1,14061210,1,1,2) [2024-12-20 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061210', 'tblTempUsageDetail_20' ) start [2024-12-20 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061210', 'tblTempUsageDetail_20' ) end [2024-12-20 07:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:12:21] Production.INFO: ==13747== Releasing lock... [2024-12-20 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:13:05 [end_date_ymd] => 2024-12-20 07:13:05 [RateCDR] => 1 ) [2024-12-20 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:13:05' and `end` < '2024-12-20 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:13:20] Production.INFO: count ==21 [2024-12-20 07:13:20] Production.ERROR: pbx CDR StartTime 2024-12-20 04:13:05 - End Time 2024-12-20 07:13:05 [2024-12-20 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061215', 'tblTempUsageDetail_20' ) start [2024-12-20 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061215', 'tblTempUsageDetail_20' ) end [2024-12-20 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061215', 'tblTempVendorCDR_20' ) start [2024-12-20 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061215', 'tblTempVendorCDR_20' ) end [2024-12-20 07:13:20] Production.INFO: ProcessCDR(1,14061215,1,1,2) [2024-12-20 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061215', 'tblTempUsageDetail_20' ) start [2024-12-20 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061215', 'tblTempUsageDetail_20' ) end [2024-12-20 07:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:13:23] Production.INFO: ==13860== Releasing lock... [2024-12-20 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:13:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:14:05 [end_date_ymd] => 2024-12-20 07:14:05 [RateCDR] => 1 ) [2024-12-20 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:14:05' and `end` < '2024-12-20 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:14:19] Production.INFO: count ==22 [2024-12-20 07:14:19] Production.ERROR: pbx CDR StartTime 2024-12-20 04:14:05 - End Time 2024-12-20 07:14:05 [2024-12-20 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061220', 'tblTempUsageDetail_20' ) start [2024-12-20 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061220', 'tblTempUsageDetail_20' ) end [2024-12-20 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061220', 'tblTempVendorCDR_20' ) start [2024-12-20 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061220', 'tblTempVendorCDR_20' ) end [2024-12-20 07:14:19] Production.INFO: ProcessCDR(1,14061220,1,1,2) [2024-12-20 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061220', 'tblTempUsageDetail_20' ) start [2024-12-20 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061220', 'tblTempUsageDetail_20' ) end [2024-12-20 07:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:14:23] Production.INFO: ==13934== Releasing lock... [2024-12-20 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:14:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:15:05 [end_date_ymd] => 2024-12-20 07:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:15:17] Production.INFO: count ==22 [2024-12-20 07:15:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:15:05 - End Time 2024-12-20 07:15:05 [2024-12-20 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061225', 'tblTempUsageDetail_20' ) start [2024-12-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061225', 'tblTempUsageDetail_20' ) end [2024-12-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061225', 'tblTempVendorCDR_20' ) start [2024-12-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061225', 'tblTempVendorCDR_20' ) end [2024-12-20 07:15:17] Production.INFO: ProcessCDR(1,14061225,1,1,2) [2024-12-20 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061225', 'tblTempUsageDetail_20' ) start [2024-12-20 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061225', 'tblTempUsageDetail_20' ) end [2024-12-20 07:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:15:21] Production.INFO: ==14046== Releasing lock... [2024-12-20 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:15:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:16:05 [end_date_ymd] => 2024-12-20 07:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:16:20] Production.INFO: count ==22 [2024-12-20 07:16:20] Production.ERROR: pbx CDR StartTime 2024-12-20 04:16:05 - End Time 2024-12-20 07:16:05 [2024-12-20 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061230', 'tblTempUsageDetail_20' ) start [2024-12-20 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061230', 'tblTempUsageDetail_20' ) end [2024-12-20 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061230', 'tblTempVendorCDR_20' ) start [2024-12-20 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061230', 'tblTempVendorCDR_20' ) end [2024-12-20 07:16:20] Production.INFO: ProcessCDR(1,14061230,1,1,2) [2024-12-20 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061230', 'tblTempUsageDetail_20' ) start [2024-12-20 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061230', 'tblTempUsageDetail_20' ) end [2024-12-20 07:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:16:23] Production.INFO: ==14156== Releasing lock... [2024-12-20 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:16:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:17:04 [end_date_ymd] => 2024-12-20 07:17:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:17:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:17:16] Production.INFO: count ==22 [2024-12-20 07:17:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:17:04 - End Time 2024-12-20 07:17:04 [2024-12-20 07:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061235', 'tblTempUsageDetail_20' ) start [2024-12-20 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061235', 'tblTempUsageDetail_20' ) end [2024-12-20 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061235', 'tblTempVendorCDR_20' ) start [2024-12-20 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061235', 'tblTempVendorCDR_20' ) end [2024-12-20 07:17:17] Production.INFO: ProcessCDR(1,14061235,1,1,2) [2024-12-20 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061235', 'tblTempUsageDetail_20' ) start [2024-12-20 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061235', 'tblTempUsageDetail_20' ) end [2024-12-20 07:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:17:20] Production.INFO: ==14226== Releasing lock... [2024-12-20 07:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:17:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:18:05 [end_date_ymd] => 2024-12-20 07:18:05 [RateCDR] => 1 ) [2024-12-20 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:18:05' and `end` < '2024-12-20 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:18:17] Production.INFO: count ==22 [2024-12-20 07:18:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:18:05 - End Time 2024-12-20 07:18:05 [2024-12-20 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061240', 'tblTempUsageDetail_20' ) start [2024-12-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061240', 'tblTempUsageDetail_20' ) end [2024-12-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061240', 'tblTempVendorCDR_20' ) start [2024-12-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061240', 'tblTempVendorCDR_20' ) end [2024-12-20 07:18:17] Production.INFO: ProcessCDR(1,14061240,1,1,2) [2024-12-20 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061240', 'tblTempUsageDetail_20' ) start [2024-12-20 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061240', 'tblTempUsageDetail_20' ) end [2024-12-20 07:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:18:20] Production.INFO: ==14297== Releasing lock... [2024-12-20 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:19:04 [end_date_ymd] => 2024-12-20 07:19:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:19:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:19:16] Production.INFO: count ==22 [2024-12-20 07:19:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:19:04 - End Time 2024-12-20 07:19:04 [2024-12-20 07:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061245', 'tblTempUsageDetail_20' ) start [2024-12-20 07:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061245', 'tblTempUsageDetail_20' ) end [2024-12-20 07:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061245', 'tblTempVendorCDR_20' ) start [2024-12-20 07:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061245', 'tblTempVendorCDR_20' ) end [2024-12-20 07:19:16] Production.INFO: ProcessCDR(1,14061245,1,1,2) [2024-12-20 07:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061245', 'tblTempUsageDetail_20' ) start [2024-12-20 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061245', 'tblTempUsageDetail_20' ) end [2024-12-20 07:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:19:20] Production.INFO: ==14384== Releasing lock... [2024-12-20 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:20:06 [end_date_ymd] => 2024-12-20 07:20:06 [RateCDR] => 1 ) [2024-12-20 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:20:06' and `end` < '2024-12-20 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:20:18] Production.INFO: count ==22 [2024-12-20 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:20:06 - End Time 2024-12-20 07:20:06 [2024-12-20 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061251', 'tblTempUsageDetail_20' ) start [2024-12-20 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061251', 'tblTempUsageDetail_20' ) end [2024-12-20 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061251', 'tblTempVendorCDR_20' ) start [2024-12-20 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061251', 'tblTempVendorCDR_20' ) end [2024-12-20 07:20:18] Production.INFO: ProcessCDR(1,14061251,1,1,2) [2024-12-20 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061251', 'tblTempUsageDetail_20' ) start [2024-12-20 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061251', 'tblTempUsageDetail_20' ) end [2024-12-20 07:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:20:21] Production.INFO: ==14462== Releasing lock... [2024-12-20 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:21:04 [end_date_ymd] => 2024-12-20 07:21:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:21:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:21:19] Production.INFO: count ==22 [2024-12-20 07:21:19] Production.ERROR: pbx CDR StartTime 2024-12-20 04:21:04 - End Time 2024-12-20 07:21:04 [2024-12-20 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061256', 'tblTempUsageDetail_20' ) start [2024-12-20 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061256', 'tblTempUsageDetail_20' ) end [2024-12-20 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061256', 'tblTempVendorCDR_20' ) start [2024-12-20 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061256', 'tblTempVendorCDR_20' ) end [2024-12-20 07:21:19] Production.INFO: ProcessCDR(1,14061256,1,1,2) [2024-12-20 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061256', 'tblTempUsageDetail_20' ) start [2024-12-20 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061256', 'tblTempUsageDetail_20' ) end [2024-12-20 07:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:21:22] Production.INFO: ==14534== Releasing lock... [2024-12-20 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:21:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:22:05 [end_date_ymd] => 2024-12-20 07:22:05 [RateCDR] => 1 ) [2024-12-20 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:22:05' and `end` < '2024-12-20 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:22:18] Production.INFO: count ==22 [2024-12-20 07:22:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:22:05 - End Time 2024-12-20 07:22:05 [2024-12-20 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061261', 'tblTempUsageDetail_20' ) start [2024-12-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061261', 'tblTempUsageDetail_20' ) end [2024-12-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061261', 'tblTempVendorCDR_20' ) start [2024-12-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061261', 'tblTempVendorCDR_20' ) end [2024-12-20 07:22:18] Production.INFO: ProcessCDR(1,14061261,1,1,2) [2024-12-20 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061261', 'tblTempUsageDetail_20' ) start [2024-12-20 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061261', 'tblTempUsageDetail_20' ) end [2024-12-20 07:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:22:21] Production.INFO: ==14604== Releasing lock... [2024-12-20 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:22:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:23:04 [end_date_ymd] => 2024-12-20 07:23:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:23:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:23:17] Production.INFO: count ==22 [2024-12-20 07:23:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:23:04 - End Time 2024-12-20 07:23:04 [2024-12-20 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061266', 'tblTempUsageDetail_20' ) start [2024-12-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061266', 'tblTempUsageDetail_20' ) end [2024-12-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061266', 'tblTempVendorCDR_20' ) start [2024-12-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061266', 'tblTempVendorCDR_20' ) end [2024-12-20 07:23:17] Production.INFO: ProcessCDR(1,14061266,1,1,2) [2024-12-20 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061266', 'tblTempUsageDetail_20' ) start [2024-12-20 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061266', 'tblTempUsageDetail_20' ) end [2024-12-20 07:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:23:20] Production.INFO: ==14673== Releasing lock... [2024-12-20 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:24:05 [end_date_ymd] => 2024-12-20 07:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:24:18] Production.INFO: count ==22 [2024-12-20 07:24:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:24:05 - End Time 2024-12-20 07:24:05 [2024-12-20 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061271', 'tblTempUsageDetail_20' ) start [2024-12-20 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061271', 'tblTempUsageDetail_20' ) end [2024-12-20 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061271', 'tblTempVendorCDR_20' ) start [2024-12-20 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061271', 'tblTempVendorCDR_20' ) end [2024-12-20 07:24:18] Production.INFO: ProcessCDR(1,14061271,1,1,2) [2024-12-20 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061271', 'tblTempUsageDetail_20' ) start [2024-12-20 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061271', 'tblTempUsageDetail_20' ) end [2024-12-20 07:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:24:21] Production.INFO: ==14744== Releasing lock... [2024-12-20 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:25:04 [end_date_ymd] => 2024-12-20 07:25:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:25:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:25:16] Production.INFO: count ==22 [2024-12-20 07:25:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:25:04 - End Time 2024-12-20 07:25:04 [2024-12-20 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061276', 'tblTempUsageDetail_20' ) start [2024-12-20 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061276', 'tblTempUsageDetail_20' ) end [2024-12-20 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061276', 'tblTempVendorCDR_20' ) start [2024-12-20 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061276', 'tblTempVendorCDR_20' ) end [2024-12-20 07:25:16] Production.INFO: ProcessCDR(1,14061276,1,1,2) [2024-12-20 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061276', 'tblTempUsageDetail_20' ) start [2024-12-20 07:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061276', 'tblTempUsageDetail_20' ) end [2024-12-20 07:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:25:19] Production.INFO: ==14814== Releasing lock... [2024-12-20 07:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:25:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:26:05 [end_date_ymd] => 2024-12-20 07:26:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:26:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:26:18] Production.INFO: count ==22 [2024-12-20 07:26:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:26:05 - End Time 2024-12-20 07:26:05 [2024-12-20 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061281', 'tblTempUsageDetail_20' ) start [2024-12-20 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061281', 'tblTempUsageDetail_20' ) end [2024-12-20 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061281', 'tblTempVendorCDR_20' ) start [2024-12-20 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061281', 'tblTempVendorCDR_20' ) end [2024-12-20 07:26:18] Production.INFO: ProcessCDR(1,14061281,1,1,2) [2024-12-20 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061281', 'tblTempUsageDetail_20' ) start [2024-12-20 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061281', 'tblTempUsageDetail_20' ) end [2024-12-20 07:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:26:21] Production.INFO: ==14884== Releasing lock... [2024-12-20 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:26:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:27:05 [end_date_ymd] => 2024-12-20 07:27:05 [RateCDR] => 1 ) [2024-12-20 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:27:05' and `end` < '2024-12-20 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:27:17] Production.INFO: count ==22 [2024-12-20 07:27:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:27:05 - End Time 2024-12-20 07:27:05 [2024-12-20 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061286', 'tblTempUsageDetail_20' ) start [2024-12-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061286', 'tblTempUsageDetail_20' ) end [2024-12-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061286', 'tblTempVendorCDR_20' ) start [2024-12-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061286', 'tblTempVendorCDR_20' ) end [2024-12-20 07:27:17] Production.INFO: ProcessCDR(1,14061286,1,1,2) [2024-12-20 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061286', 'tblTempUsageDetail_20' ) start [2024-12-20 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061286', 'tblTempUsageDetail_20' ) end [2024-12-20 07:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:27:20] Production.INFO: ==14954== Releasing lock... [2024-12-20 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:28:05 [end_date_ymd] => 2024-12-20 07:28:05 [RateCDR] => 1 ) [2024-12-20 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:28:05' and `end` < '2024-12-20 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:28:18] Production.INFO: count ==22 [2024-12-20 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:28:05 - End Time 2024-12-20 07:28:05 [2024-12-20 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061291', 'tblTempUsageDetail_20' ) start [2024-12-20 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061291', 'tblTempUsageDetail_20' ) end [2024-12-20 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061291', 'tblTempVendorCDR_20' ) start [2024-12-20 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061291', 'tblTempVendorCDR_20' ) end [2024-12-20 07:28:18] Production.INFO: ProcessCDR(1,14061291,1,1,2) [2024-12-20 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061291', 'tblTempUsageDetail_20' ) start [2024-12-20 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061291', 'tblTempUsageDetail_20' ) end [2024-12-20 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:28:21] Production.INFO: ==15030== Releasing lock... [2024-12-20 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:29:05 [end_date_ymd] => 2024-12-20 07:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:29:17] Production.INFO: count ==22 [2024-12-20 07:29:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:29:05 - End Time 2024-12-20 07:29:05 [2024-12-20 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061296', 'tblTempUsageDetail_20' ) start [2024-12-20 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061296', 'tblTempUsageDetail_20' ) end [2024-12-20 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061296', 'tblTempVendorCDR_20' ) start [2024-12-20 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061296', 'tblTempVendorCDR_20' ) end [2024-12-20 07:29:17] Production.INFO: ProcessCDR(1,14061296,1,1,2) [2024-12-20 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061296', 'tblTempUsageDetail_20' ) start [2024-12-20 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061296', 'tblTempUsageDetail_20' ) end [2024-12-20 07:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:29:20] Production.INFO: ==15141== Releasing lock... [2024-12-20 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:30:05 [end_date_ymd] => 2024-12-20 07:30:05 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:30:05' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:30:17] Production.INFO: count ==20 [2024-12-20 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:30:05 - End Time 2024-12-20 07:30:05 [2024-12-20 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061301', 'tblTempUsageDetail_20' ) start [2024-12-20 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061301', 'tblTempUsageDetail_20' ) end [2024-12-20 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061301', 'tblTempVendorCDR_20' ) start [2024-12-20 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061301', 'tblTempVendorCDR_20' ) end [2024-12-20 07:30:17] Production.INFO: ProcessCDR(1,14061301,1,1,2) [2024-12-20 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061301', 'tblTempUsageDetail_20' ) start [2024-12-20 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061301', 'tblTempUsageDetail_20' ) end [2024-12-20 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:30:20] Production.INFO: ==15217== Releasing lock... [2024-12-20 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-20 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:31:05 [end_date_ymd] => 2024-12-20 07:31:05 [RateCDR] => 1 ) [2024-12-20 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:31:05' and `end` < '2024-12-20 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:31:18] Production.INFO: count ==21 [2024-12-20 07:31:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:31:05 - End Time 2024-12-20 07:31:05 [2024-12-20 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061307', 'tblTempUsageDetail_20' ) start [2024-12-20 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061307', 'tblTempUsageDetail_20' ) end [2024-12-20 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061307', 'tblTempVendorCDR_20' ) start [2024-12-20 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061307', 'tblTempVendorCDR_20' ) end [2024-12-20 07:31:18] Production.INFO: ProcessCDR(1,14061307,1,1,2) [2024-12-20 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061307', 'tblTempUsageDetail_20' ) start [2024-12-20 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061307', 'tblTempUsageDetail_20' ) end [2024-12-20 07:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:31:21] Production.INFO: ==15293== Releasing lock... [2024-12-20 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:32:05 [end_date_ymd] => 2024-12-20 07:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:32:17] Production.INFO: count ==26 [2024-12-20 07:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:32:05 - End Time 2024-12-20 07:32:05 [2024-12-20 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061312', 'tblTempUsageDetail_20' ) start [2024-12-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061312', 'tblTempUsageDetail_20' ) end [2024-12-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061312', 'tblTempVendorCDR_20' ) start [2024-12-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061312', 'tblTempVendorCDR_20' ) end [2024-12-20 07:32:17] Production.INFO: ProcessCDR(1,14061312,1,1,2) [2024-12-20 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061312', 'tblTempUsageDetail_20' ) start [2024-12-20 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061312', 'tblTempUsageDetail_20' ) end [2024-12-20 07:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:32:20] Production.INFO: ==15363== Releasing lock... [2024-12-20 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:33:05 [end_date_ymd] => 2024-12-20 07:33:05 [RateCDR] => 1 ) [2024-12-20 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:33:05' and `end` < '2024-12-20 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:33:17] Production.INFO: count ==26 [2024-12-20 07:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:33:05 - End Time 2024-12-20 07:33:05 [2024-12-20 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061317', 'tblTempUsageDetail_20' ) start [2024-12-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061317', 'tblTempUsageDetail_20' ) end [2024-12-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061317', 'tblTempVendorCDR_20' ) start [2024-12-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061317', 'tblTempVendorCDR_20' ) end [2024-12-20 07:33:17] Production.INFO: ProcessCDR(1,14061317,1,1,2) [2024-12-20 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061317', 'tblTempUsageDetail_20' ) start [2024-12-20 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061317', 'tblTempUsageDetail_20' ) end [2024-12-20 07:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:33:21] Production.INFO: ==15434== Releasing lock... [2024-12-20 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:34:04 [end_date_ymd] => 2024-12-20 07:34:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:34:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:34:16] Production.INFO: count ==26 [2024-12-20 07:34:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:34:04 - End Time 2024-12-20 07:34:04 [2024-12-20 07:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061322', 'tblTempUsageDetail_20' ) start [2024-12-20 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061322', 'tblTempUsageDetail_20' ) end [2024-12-20 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061322', 'tblTempVendorCDR_20' ) start [2024-12-20 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061322', 'tblTempVendorCDR_20' ) end [2024-12-20 07:34:16] Production.INFO: ProcessCDR(1,14061322,1,1,2) [2024-12-20 07:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061322', 'tblTempUsageDetail_20' ) start [2024-12-20 07:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061322', 'tblTempUsageDetail_20' ) end [2024-12-20 07:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:34:19] Production.INFO: ==15504== Releasing lock... [2024-12-20 07:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:34:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:35:05 [end_date_ymd] => 2024-12-20 07:35:05 [RateCDR] => 1 ) [2024-12-20 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:35:18] Production.INFO: count ==26 [2024-12-20 07:35:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:35:05 - End Time 2024-12-20 07:35:05 [2024-12-20 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061327', 'tblTempUsageDetail_20' ) start [2024-12-20 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061327', 'tblTempUsageDetail_20' ) end [2024-12-20 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061327', 'tblTempVendorCDR_20' ) start [2024-12-20 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061327', 'tblTempVendorCDR_20' ) end [2024-12-20 07:35:18] Production.INFO: ProcessCDR(1,14061327,1,1,2) [2024-12-20 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061327', 'tblTempUsageDetail_20' ) start [2024-12-20 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061327', 'tblTempUsageDetail_20' ) end [2024-12-20 07:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:35:21] Production.INFO: ==15579== Releasing lock... [2024-12-20 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:36:04 [end_date_ymd] => 2024-12-20 07:36:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:36:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:36:16] Production.INFO: count ==26 [2024-12-20 07:36:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:36:04 - End Time 2024-12-20 07:36:04 [2024-12-20 07:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061332', 'tblTempUsageDetail_20' ) start [2024-12-20 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061332', 'tblTempUsageDetail_20' ) end [2024-12-20 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061332', 'tblTempVendorCDR_20' ) start [2024-12-20 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061332', 'tblTempVendorCDR_20' ) end [2024-12-20 07:36:16] Production.INFO: ProcessCDR(1,14061332,1,1,2) [2024-12-20 07:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061332', 'tblTempUsageDetail_20' ) start [2024-12-20 07:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061332', 'tblTempUsageDetail_20' ) end [2024-12-20 07:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:36:19] Production.INFO: ==15652== Releasing lock... [2024-12-20 07:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:36:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:37:05 [end_date_ymd] => 2024-12-20 07:37:05 [RateCDR] => 1 ) [2024-12-20 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:37:05' and `end` < '2024-12-20 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:37:18] Production.INFO: count ==26 [2024-12-20 07:37:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:37:05 - End Time 2024-12-20 07:37:05 [2024-12-20 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061337', 'tblTempUsageDetail_20' ) start [2024-12-20 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061337', 'tblTempUsageDetail_20' ) end [2024-12-20 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061337', 'tblTempVendorCDR_20' ) start [2024-12-20 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061337', 'tblTempVendorCDR_20' ) end [2024-12-20 07:37:18] Production.INFO: ProcessCDR(1,14061337,1,1,2) [2024-12-20 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061337', 'tblTempUsageDetail_20' ) start [2024-12-20 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061337', 'tblTempUsageDetail_20' ) end [2024-12-20 07:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:37:21] Production.INFO: ==15726== Releasing lock... [2024-12-20 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:38:04 [end_date_ymd] => 2024-12-20 07:38:04 [RateCDR] => 1 ) [2024-12-20 07:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:38:04' and `end` < '2024-12-20 07:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:38:16] Production.INFO: count ==26 [2024-12-20 07:38:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:38:04 - End Time 2024-12-20 07:38:04 [2024-12-20 07:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061342', 'tblTempUsageDetail_20' ) start [2024-12-20 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061342', 'tblTempUsageDetail_20' ) end [2024-12-20 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061342', 'tblTempVendorCDR_20' ) start [2024-12-20 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061342', 'tblTempVendorCDR_20' ) end [2024-12-20 07:38:16] Production.INFO: ProcessCDR(1,14061342,1,1,2) [2024-12-20 07:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061342', 'tblTempUsageDetail_20' ) start [2024-12-20 07:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061342', 'tblTempUsageDetail_20' ) end [2024-12-20 07:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:38:19] Production.INFO: ==15795== Releasing lock... [2024-12-20 07:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:38:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:39:05 [end_date_ymd] => 2024-12-20 07:39:05 [RateCDR] => 1 ) [2024-12-20 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:39:05' and `end` < '2024-12-20 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:39:16] Production.INFO: count ==26 [2024-12-20 07:39:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:39:05 - End Time 2024-12-20 07:39:05 [2024-12-20 07:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061347', 'tblTempUsageDetail_20' ) start [2024-12-20 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061347', 'tblTempUsageDetail_20' ) end [2024-12-20 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061347', 'tblTempVendorCDR_20' ) start [2024-12-20 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061347', 'tblTempVendorCDR_20' ) end [2024-12-20 07:39:16] Production.INFO: ProcessCDR(1,14061347,1,1,2) [2024-12-20 07:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061347', 'tblTempUsageDetail_20' ) start [2024-12-20 07:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061347', 'tblTempUsageDetail_20' ) end [2024-12-20 07:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:39:19] Production.INFO: ==15865== Releasing lock... [2024-12-20 07:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:39:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-20 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:40:05 [end_date_ymd] => 2024-12-20 07:40:05 [RateCDR] => 1 ) [2024-12-20 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:40:05' and `end` < '2024-12-20 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:40:17] Production.INFO: count ==46 [2024-12-20 07:40:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:40:05 - End Time 2024-12-20 07:40:05 [2024-12-20 07:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061353', 'tblTempUsageDetail_20' ) start [2024-12-20 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061353', 'tblTempUsageDetail_20' ) end [2024-12-20 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061353', 'tblTempVendorCDR_20' ) start [2024-12-20 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061353', 'tblTempVendorCDR_20' ) end [2024-12-20 07:40:17] Production.INFO: ProcessCDR(1,14061353,1,1,2) [2024-12-20 07:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061353', 'tblTempUsageDetail_20' ) start [2024-12-20 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061353', 'tblTempUsageDetail_20' ) end [2024-12-20 07:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:40:22] Production.INFO: ==15942== Releasing lock... [2024-12-20 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:40:22] Production.INFO: 28 MB #Memory Used# [2024-12-20 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:41:04 [end_date_ymd] => 2024-12-20 07:41:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:41:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:41:16] Production.INFO: count ==48 [2024-12-20 07:41:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:41:04 - End Time 2024-12-20 07:41:04 [2024-12-20 07:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061358', 'tblTempUsageDetail_20' ) start [2024-12-20 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061358', 'tblTempUsageDetail_20' ) end [2024-12-20 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061358', 'tblTempVendorCDR_20' ) start [2024-12-20 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061358', 'tblTempVendorCDR_20' ) end [2024-12-20 07:41:16] Production.INFO: ProcessCDR(1,14061358,1,1,2) [2024-12-20 07:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061358', 'tblTempUsageDetail_20' ) start [2024-12-20 07:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061358', 'tblTempUsageDetail_20' ) end [2024-12-20 07:41:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:41:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:41:19] Production.INFO: ==16015== Releasing lock... [2024-12-20 07:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:41:19] Production.INFO: 28 MB #Memory Used# [2024-12-20 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:42:05 [end_date_ymd] => 2024-12-20 07:42:05 [RateCDR] => 1 ) [2024-12-20 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:42:05' and `end` < '2024-12-20 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:42:17] Production.INFO: count ==61 [2024-12-20 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:42:05 - End Time 2024-12-20 07:42:05 [2024-12-20 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061363', 'tblTempUsageDetail_20' ) start [2024-12-20 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061363', 'tblTempUsageDetail_20' ) end [2024-12-20 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061363', 'tblTempVendorCDR_20' ) start [2024-12-20 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061363', 'tblTempVendorCDR_20' ) end [2024-12-20 07:42:17] Production.INFO: ProcessCDR(1,14061363,1,1,2) [2024-12-20 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061363', 'tblTempUsageDetail_20' ) start [2024-12-20 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061363', 'tblTempUsageDetail_20' ) end [2024-12-20 07:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:42:22] Production.INFO: ==16085== Releasing lock... [2024-12-20 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:42:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:43:05 [end_date_ymd] => 2024-12-20 07:43:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:43:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:43:18] Production.INFO: count ==61 [2024-12-20 07:43:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:43:05 - End Time 2024-12-20 07:43:05 [2024-12-20 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061368', 'tblTempUsageDetail_20' ) start [2024-12-20 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061368', 'tblTempUsageDetail_20' ) end [2024-12-20 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061368', 'tblTempVendorCDR_20' ) start [2024-12-20 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061368', 'tblTempVendorCDR_20' ) end [2024-12-20 07:43:18] Production.INFO: ProcessCDR(1,14061368,1,1,2) [2024-12-20 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061368', 'tblTempUsageDetail_20' ) start [2024-12-20 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061368', 'tblTempUsageDetail_20' ) end [2024-12-20 07:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:43:21] Production.INFO: ==16155== Releasing lock... [2024-12-20 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:43:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:44:05 [end_date_ymd] => 2024-12-20 07:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:44:18] Production.INFO: count ==66 [2024-12-20 07:44:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:44:05 - End Time 2024-12-20 07:44:05 [2024-12-20 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061373', 'tblTempUsageDetail_20' ) start [2024-12-20 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061373', 'tblTempUsageDetail_20' ) end [2024-12-20 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061373', 'tblTempVendorCDR_20' ) start [2024-12-20 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061373', 'tblTempVendorCDR_20' ) end [2024-12-20 07:44:18] Production.INFO: ProcessCDR(1,14061373,1,1,2) [2024-12-20 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061373', 'tblTempUsageDetail_20' ) start [2024-12-20 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061373', 'tblTempUsageDetail_20' ) end [2024-12-20 07:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:44:21] Production.INFO: ==16226== Releasing lock... [2024-12-20 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:45:04 [end_date_ymd] => 2024-12-20 07:45:04 [RateCDR] => 1 ) [2024-12-20 07:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:45:04' and `end` < '2024-12-20 07:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:45:16] Production.INFO: count ==69 [2024-12-20 07:45:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:45:04 - End Time 2024-12-20 07:45:04 [2024-12-20 07:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061378', 'tblTempUsageDetail_20' ) start [2024-12-20 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061378', 'tblTempUsageDetail_20' ) end [2024-12-20 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061378', 'tblTempVendorCDR_20' ) start [2024-12-20 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061378', 'tblTempVendorCDR_20' ) end [2024-12-20 07:45:16] Production.INFO: ProcessCDR(1,14061378,1,1,2) [2024-12-20 07:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061378', 'tblTempUsageDetail_20' ) start [2024-12-20 07:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061378', 'tblTempUsageDetail_20' ) end [2024-12-20 07:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:45:19] Production.INFO: ==16333== Releasing lock... [2024-12-20 07:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:45:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:46:05 [end_date_ymd] => 2024-12-20 07:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:46:17] Production.INFO: count ==70 [2024-12-20 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:46:05 - End Time 2024-12-20 07:46:05 [2024-12-20 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061383', 'tblTempUsageDetail_20' ) start [2024-12-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061383', 'tblTempUsageDetail_20' ) end [2024-12-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061383', 'tblTempVendorCDR_20' ) start [2024-12-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061383', 'tblTempVendorCDR_20' ) end [2024-12-20 07:46:17] Production.INFO: ProcessCDR(1,14061383,1,1,2) [2024-12-20 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061383', 'tblTempUsageDetail_20' ) start [2024-12-20 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061383', 'tblTempUsageDetail_20' ) end [2024-12-20 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:46:20] Production.INFO: ==16404== Releasing lock... [2024-12-20 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:46:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:47:04 [end_date_ymd] => 2024-12-20 07:47:04 [RateCDR] => 1 ) [2024-12-20 07:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:47:04' and `end` < '2024-12-20 07:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:47:16] Production.INFO: count ==70 [2024-12-20 07:47:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:47:04 - End Time 2024-12-20 07:47:04 [2024-12-20 07:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061388', 'tblTempUsageDetail_20' ) start [2024-12-20 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061388', 'tblTempUsageDetail_20' ) end [2024-12-20 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061388', 'tblTempVendorCDR_20' ) start [2024-12-20 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061388', 'tblTempVendorCDR_20' ) end [2024-12-20 07:47:16] Production.INFO: ProcessCDR(1,14061388,1,1,2) [2024-12-20 07:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061388', 'tblTempUsageDetail_20' ) start [2024-12-20 07:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061388', 'tblTempUsageDetail_20' ) end [2024-12-20 07:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:47:19] Production.INFO: ==16473== Releasing lock... [2024-12-20 07:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:47:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-20 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:48:05 [end_date_ymd] => 2024-12-20 07:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:48:18] Production.INFO: count ==75 [2024-12-20 07:48:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:48:05 - End Time 2024-12-20 07:48:05 [2024-12-20 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061393', 'tblTempUsageDetail_20' ) start [2024-12-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061393', 'tblTempUsageDetail_20' ) end [2024-12-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061393', 'tblTempVendorCDR_20' ) start [2024-12-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061393', 'tblTempVendorCDR_20' ) end [2024-12-20 07:48:18] Production.INFO: ProcessCDR(1,14061393,1,1,2) [2024-12-20 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061393', 'tblTempUsageDetail_20' ) start [2024-12-20 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061393', 'tblTempUsageDetail_20' ) end [2024-12-20 07:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:48:21] Production.INFO: ==16545== Releasing lock... [2024-12-20 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:48:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:49:04 [end_date_ymd] => 2024-12-20 07:49:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:49:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:49:17] Production.INFO: count ==75 [2024-12-20 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:49:04 - End Time 2024-12-20 07:49:04 [2024-12-20 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061398', 'tblTempUsageDetail_20' ) start [2024-12-20 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061398', 'tblTempUsageDetail_20' ) end [2024-12-20 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061398', 'tblTempVendorCDR_20' ) start [2024-12-20 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061398', 'tblTempVendorCDR_20' ) end [2024-12-20 07:49:17] Production.INFO: ProcessCDR(1,14061398,1,1,2) [2024-12-20 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061398', 'tblTempUsageDetail_20' ) start [2024-12-20 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061398', 'tblTempUsageDetail_20' ) end [2024-12-20 07:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:49:21] Production.INFO: ==16613== Releasing lock... [2024-12-20 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:49:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:50:05 [end_date_ymd] => 2024-12-20 07:50:05 [RateCDR] => 1 ) [2024-12-20 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:50:05' and `end` < '2024-12-20 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:50:18] Production.INFO: count ==73 [2024-12-20 07:50:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:50:05 - End Time 2024-12-20 07:50:05 [2024-12-20 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061404', 'tblTempUsageDetail_20' ) start [2024-12-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061404', 'tblTempUsageDetail_20' ) end [2024-12-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061404', 'tblTempVendorCDR_20' ) start [2024-12-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061404', 'tblTempVendorCDR_20' ) end [2024-12-20 07:50:18] Production.INFO: ProcessCDR(1,14061404,1,1,2) [2024-12-20 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061404', 'tblTempUsageDetail_20' ) start [2024-12-20 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061404', 'tblTempUsageDetail_20' ) end [2024-12-20 07:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:50:21] Production.INFO: ==16685== Releasing lock... [2024-12-20 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:50:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:51:04 [end_date_ymd] => 2024-12-20 07:51:04 [RateCDR] => 1 ) [2024-12-20 07: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` >= '2024-12-20 04:51:04' and `end` < '2024-12-20 07: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 ,'') [2024-12-20 07:51:16] Production.INFO: count ==73 [2024-12-20 07:51:16] Production.ERROR: pbx CDR StartTime 2024-12-20 04:51:04 - End Time 2024-12-20 07:51:04 [2024-12-20 07:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061409', 'tblTempUsageDetail_20' ) start [2024-12-20 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061409', 'tblTempUsageDetail_20' ) end [2024-12-20 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061409', 'tblTempVendorCDR_20' ) start [2024-12-20 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061409', 'tblTempVendorCDR_20' ) end [2024-12-20 07:51:16] Production.INFO: ProcessCDR(1,14061409,1,1,2) [2024-12-20 07:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061409', 'tblTempUsageDetail_20' ) start [2024-12-20 07:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061409', 'tblTempUsageDetail_20' ) end [2024-12-20 07:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:51:19] Production.INFO: ==16765== Releasing lock... [2024-12-20 07:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:51:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:52:05 [end_date_ymd] => 2024-12-20 07:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:52:17] Production.INFO: count ==74 [2024-12-20 07:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:52:05 - End Time 2024-12-20 07:52:05 [2024-12-20 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061414', 'tblTempUsageDetail_20' ) start [2024-12-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061414', 'tblTempUsageDetail_20' ) end [2024-12-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061414', 'tblTempVendorCDR_20' ) start [2024-12-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061414', 'tblTempVendorCDR_20' ) end [2024-12-20 07:52:17] Production.INFO: ProcessCDR(1,14061414,1,1,2) [2024-12-20 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061414', 'tblTempUsageDetail_20' ) start [2024-12-20 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061414', 'tblTempUsageDetail_20' ) end [2024-12-20 07:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:52:22] Production.INFO: ==16836== Releasing lock... [2024-12-20 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:52:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:53:05 [end_date_ymd] => 2024-12-20 07:53:05 [RateCDR] => 1 ) [2024-12-20 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:53:05' and `end` < '2024-12-20 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:53:18] Production.INFO: count ==74 [2024-12-20 07:53:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:53:05 - End Time 2024-12-20 07:53:05 [2024-12-20 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061419', 'tblTempUsageDetail_20' ) start [2024-12-20 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061419', 'tblTempUsageDetail_20' ) end [2024-12-20 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061419', 'tblTempVendorCDR_20' ) start [2024-12-20 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061419', 'tblTempVendorCDR_20' ) end [2024-12-20 07:53:18] Production.INFO: ProcessCDR(1,14061419,1,1,2) [2024-12-20 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061419', 'tblTempUsageDetail_20' ) start [2024-12-20 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061419', 'tblTempUsageDetail_20' ) end [2024-12-20 07:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:53:21] Production.INFO: ==16909== Releasing lock... [2024-12-20 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:53:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:54:05 [end_date_ymd] => 2024-12-20 07:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:54:17] Production.INFO: count ==74 [2024-12-20 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:54:05 - End Time 2024-12-20 07:54:05 [2024-12-20 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061424', 'tblTempUsageDetail_20' ) start [2024-12-20 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061424', 'tblTempUsageDetail_20' ) end [2024-12-20 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061424', 'tblTempVendorCDR_20' ) start [2024-12-20 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061424', 'tblTempVendorCDR_20' ) end [2024-12-20 07:54:17] Production.INFO: ProcessCDR(1,14061424,1,1,2) [2024-12-20 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061424', 'tblTempUsageDetail_20' ) start [2024-12-20 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061424', 'tblTempUsageDetail_20' ) end [2024-12-20 07:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:54:21] Production.INFO: ==16978== Releasing lock... [2024-12-20 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:54:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:55:05 [end_date_ymd] => 2024-12-20 07:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:55:17] Production.INFO: count ==74 [2024-12-20 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:55:05 - End Time 2024-12-20 07:55:05 [2024-12-20 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061429', 'tblTempUsageDetail_20' ) start [2024-12-20 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061429', 'tblTempUsageDetail_20' ) end [2024-12-20 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061429', 'tblTempVendorCDR_20' ) start [2024-12-20 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061429', 'tblTempVendorCDR_20' ) end [2024-12-20 07:55:17] Production.INFO: ProcessCDR(1,14061429,1,1,2) [2024-12-20 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061429', 'tblTempUsageDetail_20' ) start [2024-12-20 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061429', 'tblTempUsageDetail_20' ) end [2024-12-20 07:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:55:20] Production.INFO: ==17048== Releasing lock... [2024-12-20 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:55:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:56:04 [end_date_ymd] => 2024-12-20 07:56:04 [RateCDR] => 1 ) [2024-12-20 07:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 04:56:04' and `end` < '2024-12-20 07:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 07:56:17] Production.INFO: count ==74 [2024-12-20 07:56:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:56:04 - End Time 2024-12-20 07:56:04 [2024-12-20 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061434', 'tblTempUsageDetail_20' ) start [2024-12-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061434', 'tblTempUsageDetail_20' ) end [2024-12-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061434', 'tblTempVendorCDR_20' ) start [2024-12-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061434', 'tblTempVendorCDR_20' ) end [2024-12-20 07:56:17] Production.INFO: ProcessCDR(1,14061434,1,1,2) [2024-12-20 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061434', 'tblTempUsageDetail_20' ) start [2024-12-20 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061434', 'tblTempUsageDetail_20' ) end [2024-12-20 07:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:56:20] Production.INFO: ==17119== Releasing lock... [2024-12-20 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:56:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:57:05 [end_date_ymd] => 2024-12-20 07:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:57:17] Production.INFO: count ==74 [2024-12-20 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:57:05 - End Time 2024-12-20 07:57:05 [2024-12-20 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061439', 'tblTempUsageDetail_20' ) start [2024-12-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061439', 'tblTempUsageDetail_20' ) end [2024-12-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061439', 'tblTempVendorCDR_20' ) start [2024-12-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061439', 'tblTempVendorCDR_20' ) end [2024-12-20 07:57:17] Production.INFO: ProcessCDR(1,14061439,1,1,2) [2024-12-20 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061439', 'tblTempUsageDetail_20' ) start [2024-12-20 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061439', 'tblTempUsageDetail_20' ) end [2024-12-20 07:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:57:21] Production.INFO: ==17190== Releasing lock... [2024-12-20 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:57:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:58:05 [end_date_ymd] => 2024-12-20 07:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:58:17] Production.INFO: count ==75 [2024-12-20 07:58:17] Production.ERROR: pbx CDR StartTime 2024-12-20 04:58:05 - End Time 2024-12-20 07:58:05 [2024-12-20 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061444', 'tblTempUsageDetail_20' ) start [2024-12-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061444', 'tblTempUsageDetail_20' ) end [2024-12-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061444', 'tblTempVendorCDR_20' ) start [2024-12-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061444', 'tblTempVendorCDR_20' ) end [2024-12-20 07:58:17] Production.INFO: ProcessCDR(1,14061444,1,1,2) [2024-12-20 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061444', 'tblTempUsageDetail_20' ) start [2024-12-20 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061444', 'tblTempUsageDetail_20' ) end [2024-12-20 07:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:58:21] Production.INFO: ==17259== Releasing lock... [2024-12-20 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:58:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 04:59:05 [end_date_ymd] => 2024-12-20 07:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 04:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 07:59:18] Production.INFO: count ==76 [2024-12-20 07:59:18] Production.ERROR: pbx CDR StartTime 2024-12-20 04:59:05 - End Time 2024-12-20 07:59:05 [2024-12-20 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061449', 'tblTempUsageDetail_20' ) start [2024-12-20 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061449', 'tblTempUsageDetail_20' ) end [2024-12-20 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061449', 'tblTempVendorCDR_20' ) start [2024-12-20 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061449', 'tblTempVendorCDR_20' ) end [2024-12-20 07:59:18] Production.INFO: ProcessCDR(1,14061449,1,1,2) [2024-12-20 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061449', 'tblTempUsageDetail_20' ) start [2024-12-20 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061449', 'tblTempUsageDetail_20' ) end [2024-12-20 07:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 07:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 07:59:22] Production.INFO: ==17332== Releasing lock... [2024-12-20 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 07:59:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:00:05 [end_date_ymd] => 2024-12-20 08:00:05 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:00:05' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:00:17] Production.INFO: count ==83 [2024-12-20 08:00:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:00:05 - End Time 2024-12-20 08:00:05 [2024-12-20 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061455', 'tblTempUsageDetail_20' ) start [2024-12-20 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061455', 'tblTempUsageDetail_20' ) end [2024-12-20 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061455', 'tblTempVendorCDR_20' ) start [2024-12-20 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061455', 'tblTempVendorCDR_20' ) end [2024-12-20 08:00:17] Production.INFO: ProcessCDR(1,14061455,1,1,2) [2024-12-20 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061455', 'tblTempUsageDetail_20' ) start [2024-12-20 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061455', 'tblTempUsageDetail_20' ) end [2024-12-20 08:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:00:22] Production.INFO: ==17444== Releasing lock... [2024-12-20 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:00:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:01:05 [end_date_ymd] => 2024-12-20 08:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:01:17] Production.INFO: count ==100 [2024-12-20 08:01:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:01:05 - End Time 2024-12-20 08:01:05 [2024-12-20 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061460', 'tblTempUsageDetail_20' ) start [2024-12-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061460', 'tblTempUsageDetail_20' ) end [2024-12-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061460', 'tblTempVendorCDR_20' ) start [2024-12-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061460', 'tblTempVendorCDR_20' ) end [2024-12-20 08:01:17] Production.INFO: ProcessCDR(1,14061460,1,1,2) [2024-12-20 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061460', 'tblTempUsageDetail_20' ) start [2024-12-20 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061460', 'tblTempUsageDetail_20' ) end [2024-12-20 08:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:01:20] Production.INFO: ==17530== Releasing lock... [2024-12-20 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:01:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-20 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:02:05 [end_date_ymd] => 2024-12-20 08:02:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:02:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:02:18] Production.INFO: count ==101 [2024-12-20 08:02:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:02:05 - End Time 2024-12-20 08:02:05 [2024-12-20 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061465', 'tblTempUsageDetail_20' ) start [2024-12-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061465', 'tblTempUsageDetail_20' ) end [2024-12-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061465', 'tblTempVendorCDR_20' ) start [2024-12-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061465', 'tblTempVendorCDR_20' ) end [2024-12-20 08:02:18] Production.INFO: ProcessCDR(1,14061465,1,1,2) [2024-12-20 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061465', 'tblTempUsageDetail_20' ) start [2024-12-20 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061465', 'tblTempUsageDetail_20' ) end [2024-12-20 08:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:02:23] Production.INFO: ==17599== Releasing lock... [2024-12-20 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:02:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:03:05 [end_date_ymd] => 2024-12-20 08:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:03:18] Production.INFO: count ==104 [2024-12-20 08:03:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:03:05 - End Time 2024-12-20 08:03:05 [2024-12-20 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061470', 'tblTempUsageDetail_20' ) start [2024-12-20 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061470', 'tblTempUsageDetail_20' ) end [2024-12-20 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061470', 'tblTempVendorCDR_20' ) start [2024-12-20 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061470', 'tblTempVendorCDR_20' ) end [2024-12-20 08:03:18] Production.INFO: ProcessCDR(1,14061470,1,1,2) [2024-12-20 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061470', 'tblTempUsageDetail_20' ) start [2024-12-20 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061470', 'tblTempUsageDetail_20' ) end [2024-12-20 08:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:03:21] Production.INFO: ==17670== Releasing lock... [2024-12-20 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:03:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:04:05 [end_date_ymd] => 2024-12-20 08:04:05 [RateCDR] => 1 ) [2024-12-20 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:04:05' and `end` < '2024-12-20 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:04:17] Production.INFO: count ==111 [2024-12-20 08:04:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:04:05 - End Time 2024-12-20 08:04:05 [2024-12-20 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061475', 'tblTempUsageDetail_20' ) start [2024-12-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061475', 'tblTempUsageDetail_20' ) end [2024-12-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061475', 'tblTempVendorCDR_20' ) start [2024-12-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061475', 'tblTempVendorCDR_20' ) end [2024-12-20 08:04:17] Production.INFO: ProcessCDR(1,14061475,1,1,2) [2024-12-20 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061475', 'tblTempUsageDetail_20' ) start [2024-12-20 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061475', 'tblTempUsageDetail_20' ) end [2024-12-20 08:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:04:22] Production.INFO: ==17740== Releasing lock... [2024-12-20 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:04:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:05:05 [end_date_ymd] => 2024-12-20 08:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:05:17] Production.INFO: count ==115 [2024-12-20 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:05:05 - End Time 2024-12-20 08:05:05 [2024-12-20 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061480', 'tblTempUsageDetail_20' ) start [2024-12-20 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061480', 'tblTempUsageDetail_20' ) end [2024-12-20 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061480', 'tblTempVendorCDR_20' ) start [2024-12-20 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061480', 'tblTempVendorCDR_20' ) end [2024-12-20 08:05:17] Production.INFO: ProcessCDR(1,14061480,1,1,2) [2024-12-20 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061480', 'tblTempUsageDetail_20' ) start [2024-12-20 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061480', 'tblTempUsageDetail_20' ) end [2024-12-20 08:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:05:22] Production.INFO: ==17813== Releasing lock... [2024-12-20 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:05:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-20 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:06:05 [end_date_ymd] => 2024-12-20 08:06:05 [RateCDR] => 1 ) [2024-12-20 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:06:05' and `end` < '2024-12-20 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:06:19] Production.INFO: count ==127 [2024-12-20 08:06:19] Production.ERROR: pbx CDR StartTime 2024-12-20 05:06:05 - End Time 2024-12-20 08:06:05 [2024-12-20 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061485', 'tblTempUsageDetail_20' ) start [2024-12-20 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061485', 'tblTempUsageDetail_20' ) end [2024-12-20 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061485', 'tblTempVendorCDR_20' ) start [2024-12-20 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061485', 'tblTempVendorCDR_20' ) end [2024-12-20 08:06:19] Production.INFO: ProcessCDR(1,14061485,1,1,2) [2024-12-20 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061485', 'tblTempUsageDetail_20' ) start [2024-12-20 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061485', 'tblTempUsageDetail_20' ) end [2024-12-20 08:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:06:22] Production.INFO: ==17886== Releasing lock... [2024-12-20 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:06:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:07:04 [end_date_ymd] => 2024-12-20 08:07:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:07:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:07:17] Production.INFO: count ==128 [2024-12-20 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:07:04 - End Time 2024-12-20 08:07:04 [2024-12-20 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061490', 'tblTempUsageDetail_20' ) start [2024-12-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061490', 'tblTempUsageDetail_20' ) end [2024-12-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061490', 'tblTempVendorCDR_20' ) start [2024-12-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061490', 'tblTempVendorCDR_20' ) end [2024-12-20 08:07:17] Production.INFO: ProcessCDR(1,14061490,1,1,2) [2024-12-20 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061490', 'tblTempUsageDetail_20' ) start [2024-12-20 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061490', 'tblTempUsageDetail_20' ) end [2024-12-20 08:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:07:21] Production.INFO: ==17958== Releasing lock... [2024-12-20 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:07:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:08:05 [end_date_ymd] => 2024-12-20 08:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:08:19] Production.INFO: count ==128 [2024-12-20 08:08:19] Production.ERROR: pbx CDR StartTime 2024-12-20 05:08:05 - End Time 2024-12-20 08:08:05 [2024-12-20 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061495', 'tblTempUsageDetail_20' ) start [2024-12-20 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061495', 'tblTempUsageDetail_20' ) end [2024-12-20 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061495', 'tblTempVendorCDR_20' ) start [2024-12-20 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061495', 'tblTempVendorCDR_20' ) end [2024-12-20 08:08:19] Production.INFO: ProcessCDR(1,14061495,1,1,2) [2024-12-20 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061495', 'tblTempUsageDetail_20' ) start [2024-12-20 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061495', 'tblTempUsageDetail_20' ) end [2024-12-20 08:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:08:22] Production.INFO: ==18028== Releasing lock... [2024-12-20 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:08:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:09:05 [end_date_ymd] => 2024-12-20 08:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:09:17] Production.INFO: count ==129 [2024-12-20 08:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:09:05 - End Time 2024-12-20 08:09:05 [2024-12-20 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061500', 'tblTempUsageDetail_20' ) start [2024-12-20 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061500', 'tblTempUsageDetail_20' ) end [2024-12-20 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061500', 'tblTempVendorCDR_20' ) start [2024-12-20 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061500', 'tblTempVendorCDR_20' ) end [2024-12-20 08:09:17] Production.INFO: ProcessCDR(1,14061500,1,1,2) [2024-12-20 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061500', 'tblTempUsageDetail_20' ) start [2024-12-20 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061500', 'tblTempUsageDetail_20' ) end [2024-12-20 08:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:09:21] Production.INFO: ==18098== Releasing lock... [2024-12-20 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:09:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:10:05 [end_date_ymd] => 2024-12-20 08:10:05 [RateCDR] => 1 ) [2024-12-20 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:10:05' and `end` < '2024-12-20 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:10:17] Production.INFO: count ==140 [2024-12-20 08:10:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:10:05 - End Time 2024-12-20 08:10:05 [2024-12-20 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061506', 'tblTempUsageDetail_20' ) start [2024-12-20 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061506', 'tblTempUsageDetail_20' ) end [2024-12-20 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061506', 'tblTempVendorCDR_20' ) start [2024-12-20 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061506', 'tblTempVendorCDR_20' ) end [2024-12-20 08:10:17] Production.INFO: ProcessCDR(1,14061506,1,1,2) [2024-12-20 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061506', 'tblTempUsageDetail_20' ) start [2024-12-20 08:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061506', 'tblTempUsageDetail_20' ) end [2024-12-20 08:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:10:20] Production.INFO: ==18172== Releasing lock... [2024-12-20 08:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:10:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:11:04 [end_date_ymd] => 2024-12-20 08:11:04 [RateCDR] => 1 ) [2024-12-20 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:11:04' and `end` < '2024-12-20 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:11:17] Production.INFO: count ==144 [2024-12-20 08:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:11:04 - End Time 2024-12-20 08:11:04 [2024-12-20 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061511', 'tblTempUsageDetail_20' ) start [2024-12-20 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061511', 'tblTempUsageDetail_20' ) end [2024-12-20 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061511', 'tblTempVendorCDR_20' ) start [2024-12-20 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061511', 'tblTempVendorCDR_20' ) end [2024-12-20 08:11:17] Production.INFO: ProcessCDR(1,14061511,1,1,2) [2024-12-20 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061511', 'tblTempUsageDetail_20' ) start [2024-12-20 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061511', 'tblTempUsageDetail_20' ) end [2024-12-20 08:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:11:20] Production.INFO: ==18243== Releasing lock... [2024-12-20 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:11:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-20 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:12:05 [end_date_ymd] => 2024-12-20 08:12:05 [RateCDR] => 1 ) [2024-12-20 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:12:05' and `end` < '2024-12-20 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:12:17] Production.INFO: count ==161 [2024-12-20 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:12:05 - End Time 2024-12-20 08:12:05 [2024-12-20 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061516', 'tblTempUsageDetail_20' ) start [2024-12-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061516', 'tblTempUsageDetail_20' ) end [2024-12-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061516', 'tblTempVendorCDR_20' ) start [2024-12-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061516', 'tblTempVendorCDR_20' ) end [2024-12-20 08:12:17] Production.INFO: ProcessCDR(1,14061516,1,1,2) [2024-12-20 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061516', 'tblTempUsageDetail_20' ) start [2024-12-20 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061516', 'tblTempUsageDetail_20' ) end [2024-12-20 08:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:12:20] Production.INFO: ==18313== Releasing lock... [2024-12-20 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:12:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:13:04 [end_date_ymd] => 2024-12-20 08:13:04 [RateCDR] => 1 ) [2024-12-20 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:13:04' and `end` < '2024-12-20 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:13:16] Production.INFO: count ==177 [2024-12-20 08:13:16] Production.ERROR: pbx CDR StartTime 2024-12-20 05:13:04 - End Time 2024-12-20 08:13:04 [2024-12-20 08:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061521', 'tblTempUsageDetail_20' ) start [2024-12-20 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061521', 'tblTempUsageDetail_20' ) end [2024-12-20 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061521', 'tblTempVendorCDR_20' ) start [2024-12-20 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061521', 'tblTempVendorCDR_20' ) end [2024-12-20 08:13:16] Production.INFO: ProcessCDR(1,14061521,1,1,2) [2024-12-20 08:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061521', 'tblTempUsageDetail_20' ) start [2024-12-20 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061521', 'tblTempUsageDetail_20' ) end [2024-12-20 08:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:13:20] Production.INFO: ==18384== Releasing lock... [2024-12-20 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:13:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-20 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:14:05 [end_date_ymd] => 2024-12-20 08:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:14:17] Production.INFO: count ==208 [2024-12-20 08:14:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:14:05 - End Time 2024-12-20 08:14:05 [2024-12-20 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061526', 'tblTempUsageDetail_20' ) start [2024-12-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061526', 'tblTempUsageDetail_20' ) end [2024-12-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061526', 'tblTempVendorCDR_20' ) start [2024-12-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061526', 'tblTempVendorCDR_20' ) end [2024-12-20 08:14:17] Production.INFO: ProcessCDR(1,14061526,1,1,2) [2024-12-20 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061526', 'tblTempUsageDetail_20' ) start [2024-12-20 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061526', 'tblTempUsageDetail_20' ) end [2024-12-20 08:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:14:22] Production.INFO: ==18457== Releasing lock... [2024-12-20 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:14:22] Production.INFO: 30 MB #Memory Used# [2024-12-20 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:15:04 [end_date_ymd] => 2024-12-20 08:15:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:15:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:15:23] Production.INFO: count ==221 [2024-12-20 08:15:23] Production.ERROR: pbx CDR StartTime 2024-12-20 05:15:04 - End Time 2024-12-20 08:15:04 [2024-12-20 08:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061531', 'tblTempUsageDetail_20' ) start [2024-12-20 08:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061531', 'tblTempUsageDetail_20' ) end [2024-12-20 08:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061531', 'tblTempVendorCDR_20' ) start [2024-12-20 08:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061531', 'tblTempVendorCDR_20' ) end [2024-12-20 08:15:23] Production.INFO: ProcessCDR(1,14061531,1,1,2) [2024-12-20 08:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061531', 'tblTempUsageDetail_20' ) start [2024-12-20 08:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061531', 'tblTempUsageDetail_20' ) end [2024-12-20 08:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:15:27] Production.INFO: ==18526== Releasing lock... [2024-12-20 08:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:15:27] Production.INFO: 30 MB #Memory Used# [2024-12-20 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:16:04 [end_date_ymd] => 2024-12-20 08:16:04 [RateCDR] => 1 ) [2024-12-20 08:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:16:04' and `end` < '2024-12-20 08:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:16:17] Production.INFO: count ==250 [2024-12-20 08:16:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:16:04 - End Time 2024-12-20 08:16:04 [2024-12-20 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061536', 'tblTempUsageDetail_20' ) start [2024-12-20 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061536', 'tblTempUsageDetail_20' ) end [2024-12-20 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061536', 'tblTempVendorCDR_20' ) start [2024-12-20 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061536', 'tblTempVendorCDR_20' ) end [2024-12-20 08:16:17] Production.INFO: ProcessCDR(1,14061536,1,1,2) [2024-12-20 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061536', 'tblTempUsageDetail_20' ) start [2024-12-20 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061536', 'tblTempUsageDetail_20' ) end [2024-12-20 08:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:16:22] Production.INFO: ==18636== Releasing lock... [2024-12-20 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:16:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-20 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:17:04 [end_date_ymd] => 2024-12-20 08:17:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:17:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:17:16] Production.INFO: count ==259 [2024-12-20 08:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:17:04 - End Time 2024-12-20 08:17:04 [2024-12-20 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061541', 'tblTempUsageDetail_20' ) start [2024-12-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061541', 'tblTempUsageDetail_20' ) end [2024-12-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061541', 'tblTempVendorCDR_20' ) start [2024-12-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061541', 'tblTempVendorCDR_20' ) end [2024-12-20 08:17:17] Production.INFO: ProcessCDR(1,14061541,1,1,2) [2024-12-20 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061541', 'tblTempUsageDetail_20' ) start [2024-12-20 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061541', 'tblTempUsageDetail_20' ) end [2024-12-20 08:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:17:21] Production.INFO: ==18720== Releasing lock... [2024-12-20 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:17:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-20 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:18:04 [end_date_ymd] => 2024-12-20 08:18:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:18:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:18:16] Production.INFO: count ==263 [2024-12-20 08:18:16] Production.ERROR: pbx CDR StartTime 2024-12-20 05:18:04 - End Time 2024-12-20 08:18:04 [2024-12-20 08:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061546', 'tblTempUsageDetail_20' ) start [2024-12-20 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061546', 'tblTempUsageDetail_20' ) end [2024-12-20 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061546', 'tblTempVendorCDR_20' ) start [2024-12-20 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061546', 'tblTempVendorCDR_20' ) end [2024-12-20 08:18:16] Production.INFO: ProcessCDR(1,14061546,1,1,2) [2024-12-20 08:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061546', 'tblTempUsageDetail_20' ) start [2024-12-20 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061546', 'tblTempUsageDetail_20' ) end [2024-12-20 08:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:18:21] Production.INFO: ==18792== Releasing lock... [2024-12-20 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:18:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-20 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:19:05 [end_date_ymd] => 2024-12-20 08:19:05 [RateCDR] => 1 ) [2024-12-20 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:19:05' and `end` < '2024-12-20 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:19:17] Production.INFO: count ==287 [2024-12-20 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:19:05 - End Time 2024-12-20 08:19:05 [2024-12-20 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061551', 'tblTempUsageDetail_20' ) start [2024-12-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061551', 'tblTempUsageDetail_20' ) end [2024-12-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061551', 'tblTempVendorCDR_20' ) start [2024-12-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061551', 'tblTempVendorCDR_20' ) end [2024-12-20 08:19:17] Production.INFO: ProcessCDR(1,14061551,1,1,2) [2024-12-20 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061551', 'tblTempUsageDetail_20' ) start [2024-12-20 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061551', 'tblTempUsageDetail_20' ) end [2024-12-20 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:19:21] Production.INFO: ==18863== Releasing lock... [2024-12-20 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:19:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-20 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:20:05 [end_date_ymd] => 2024-12-20 08:20:05 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:20:05' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:20:17] Production.INFO: count ==295 [2024-12-20 08:20:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:20:05 - End Time 2024-12-20 08:20:05 [2024-12-20 08:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061557', 'tblTempUsageDetail_20' ) start [2024-12-20 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061557', 'tblTempUsageDetail_20' ) end [2024-12-20 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061557', 'tblTempVendorCDR_20' ) start [2024-12-20 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061557', 'tblTempVendorCDR_20' ) end [2024-12-20 08:20:17] Production.INFO: ProcessCDR(1,14061557,1,1,2) [2024-12-20 08:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061557', 'tblTempUsageDetail_20' ) start [2024-12-20 08:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061557', 'tblTempUsageDetail_20' ) end [2024-12-20 08:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:20:20] Production.INFO: ==18936== Releasing lock... [2024-12-20 08:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:20:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-20 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:21:04 [end_date_ymd] => 2024-12-20 08:21:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:21:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:21:17] Production.INFO: count ==334 [2024-12-20 08:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:21:04 - End Time 2024-12-20 08:21:04 [2024-12-20 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061562', 'tblTempUsageDetail_20' ) start [2024-12-20 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061562', 'tblTempUsageDetail_20' ) end [2024-12-20 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061562', 'tblTempVendorCDR_20' ) start [2024-12-20 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061562', 'tblTempVendorCDR_20' ) end [2024-12-20 08:21:17] Production.INFO: ProcessCDR(1,14061562,1,1,2) [2024-12-20 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061562', 'tblTempUsageDetail_20' ) start [2024-12-20 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061562', 'tblTempUsageDetail_20' ) end [2024-12-20 08:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:21:21] Production.INFO: ==19009== Releasing lock... [2024-12-20 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:21:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-20 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:22:05 [end_date_ymd] => 2024-12-20 08:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:22:17] Production.INFO: count ==341 [2024-12-20 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:22:05 - End Time 2024-12-20 08:22:05 [2024-12-20 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061567', 'tblTempUsageDetail_20' ) start [2024-12-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061567', 'tblTempUsageDetail_20' ) end [2024-12-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061567', 'tblTempVendorCDR_20' ) start [2024-12-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061567', 'tblTempVendorCDR_20' ) end [2024-12-20 08:22:17] Production.INFO: ProcessCDR(1,14061567,1,1,2) [2024-12-20 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061567', 'tblTempUsageDetail_20' ) start [2024-12-20 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061567', 'tblTempUsageDetail_20' ) end [2024-12-20 08:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:22:22] Production.INFO: ==19085== Releasing lock... [2024-12-20 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:22:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-20 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:23:04 [end_date_ymd] => 2024-12-20 08:23:04 [RateCDR] => 1 ) [2024-12-20 08:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:23:04' and `end` < '2024-12-20 08:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:23:16] Production.INFO: count ==361 [2024-12-20 08:23:16] Production.ERROR: pbx CDR StartTime 2024-12-20 05:23:04 - End Time 2024-12-20 08:23:04 [2024-12-20 08:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061572', 'tblTempUsageDetail_20' ) start [2024-12-20 08:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061572', 'tblTempUsageDetail_20' ) end [2024-12-20 08:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061572', 'tblTempVendorCDR_20' ) start [2024-12-20 08:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061572', 'tblTempVendorCDR_20' ) end [2024-12-20 08:23:16] Production.INFO: ProcessCDR(1,14061572,1,1,2) [2024-12-20 08:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061572', 'tblTempUsageDetail_20' ) start [2024-12-20 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061572', 'tblTempUsageDetail_20' ) end [2024-12-20 08:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:23:20] Production.INFO: ==19154== Releasing lock... [2024-12-20 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:23:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-20 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:24:05 [end_date_ymd] => 2024-12-20 08:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:24:17] Production.INFO: count ==362 [2024-12-20 08:24:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:24:05 - End Time 2024-12-20 08:24:05 [2024-12-20 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061577', 'tblTempUsageDetail_20' ) start [2024-12-20 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061577', 'tblTempUsageDetail_20' ) end [2024-12-20 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061577', 'tblTempVendorCDR_20' ) start [2024-12-20 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061577', 'tblTempVendorCDR_20' ) end [2024-12-20 08:24:17] Production.INFO: ProcessCDR(1,14061577,1,1,2) [2024-12-20 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061577', 'tblTempUsageDetail_20' ) start [2024-12-20 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061577', 'tblTempUsageDetail_20' ) end [2024-12-20 08:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:24:21] Production.INFO: ==19225== Releasing lock... [2024-12-20 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:24:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-20 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:25:04 [end_date_ymd] => 2024-12-20 08:25:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:25:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:25:16] Production.INFO: count ==383 [2024-12-20 08:25:16] Production.ERROR: pbx CDR StartTime 2024-12-20 05:25:04 - End Time 2024-12-20 08:25:04 [2024-12-20 08:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061582', 'tblTempUsageDetail_20' ) start [2024-12-20 08:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061582', 'tblTempUsageDetail_20' ) end [2024-12-20 08:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061582', 'tblTempVendorCDR_20' ) start [2024-12-20 08:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061582', 'tblTempVendorCDR_20' ) end [2024-12-20 08:25:16] Production.INFO: ProcessCDR(1,14061582,1,1,2) [2024-12-20 08:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061582', 'tblTempUsageDetail_20' ) start [2024-12-20 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061582', 'tblTempUsageDetail_20' ) end [2024-12-20 08:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:25:21] Production.INFO: ==19295== Releasing lock... [2024-12-20 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:25:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-20 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:26:04 [end_date_ymd] => 2024-12-20 08:26:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:26:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:26:16] Production.INFO: count ==393 [2024-12-20 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:26:04 - End Time 2024-12-20 08:26:04 [2024-12-20 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061587', 'tblTempUsageDetail_20' ) start [2024-12-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061587', 'tblTempUsageDetail_20' ) end [2024-12-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061587', 'tblTempVendorCDR_20' ) start [2024-12-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061587', 'tblTempVendorCDR_20' ) end [2024-12-20 08:26:17] Production.INFO: ProcessCDR(1,14061587,1,1,2) [2024-12-20 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061587', 'tblTempUsageDetail_20' ) start [2024-12-20 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061587', 'tblTempUsageDetail_20' ) end [2024-12-20 08:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:26:20] Production.INFO: ==19367== Releasing lock... [2024-12-20 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:26:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-20 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:27:05 [end_date_ymd] => 2024-12-20 08:27:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:27:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:27:17] Production.INFO: count ==400 [2024-12-20 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:27:05 - End Time 2024-12-20 08:27:05 [2024-12-20 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061592', 'tblTempUsageDetail_20' ) start [2024-12-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061592', 'tblTempUsageDetail_20' ) end [2024-12-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061592', 'tblTempVendorCDR_20' ) start [2024-12-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061592', 'tblTempVendorCDR_20' ) end [2024-12-20 08:27:17] Production.INFO: ProcessCDR(1,14061592,1,1,2) [2024-12-20 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061592', 'tblTempUsageDetail_20' ) start [2024-12-20 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061592', 'tblTempUsageDetail_20' ) end [2024-12-20 08:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:27:21] Production.INFO: ==19438== Releasing lock... [2024-12-20 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:27:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-20 08:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:28:04 [end_date_ymd] => 2024-12-20 08:28:04 [RateCDR] => 1 ) [2024-12-20 08:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:28:04' and `end` < '2024-12-20 08:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:28:16] Production.INFO: count ==417 [2024-12-20 08:28:16] Production.ERROR: pbx CDR StartTime 2024-12-20 05:28:04 - End Time 2024-12-20 08:28:04 [2024-12-20 08:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061597', 'tblTempUsageDetail_20' ) start [2024-12-20 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061597', 'tblTempUsageDetail_20' ) end [2024-12-20 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061597', 'tblTempVendorCDR_20' ) start [2024-12-20 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061597', 'tblTempVendorCDR_20' ) end [2024-12-20 08:28:16] Production.INFO: ProcessCDR(1,14061597,1,1,2) [2024-12-20 08:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061597', 'tblTempUsageDetail_20' ) start [2024-12-20 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061597', 'tblTempUsageDetail_20' ) end [2024-12-20 08:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:28:20] Production.INFO: ==19508== Releasing lock... [2024-12-20 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:28:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-20 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:29:05 [end_date_ymd] => 2024-12-20 08:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:29:17] Production.INFO: count ==420 [2024-12-20 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:29:05 - End Time 2024-12-20 08:29:05 [2024-12-20 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061602', 'tblTempUsageDetail_20' ) start [2024-12-20 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061602', 'tblTempUsageDetail_20' ) end [2024-12-20 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061602', 'tblTempVendorCDR_20' ) start [2024-12-20 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061602', 'tblTempVendorCDR_20' ) end [2024-12-20 08:29:17] Production.INFO: ProcessCDR(1,14061602,1,1,2) [2024-12-20 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061602', 'tblTempUsageDetail_20' ) start [2024-12-20 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061602', 'tblTempUsageDetail_20' ) end [2024-12-20 08:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:29:22] Production.INFO: ==19578== Releasing lock... [2024-12-20 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:29:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-20 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:30:05 [end_date_ymd] => 2024-12-20 08:30:05 [RateCDR] => 1 ) [2024-12-20 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:30:05' and `end` < '2024-12-20 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:30:17] Production.INFO: count ==441 [2024-12-20 08:30:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:30:05 - End Time 2024-12-20 08:30:05 [2024-12-20 08:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061607', 'tblTempUsageDetail_20' ) start [2024-12-20 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061607', 'tblTempUsageDetail_20' ) end [2024-12-20 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061607', 'tblTempVendorCDR_20' ) start [2024-12-20 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061607', 'tblTempVendorCDR_20' ) end [2024-12-20 08:30:17] Production.INFO: ProcessCDR(1,14061607,1,1,2) [2024-12-20 08:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061607', 'tblTempUsageDetail_20' ) start [2024-12-20 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061607', 'tblTempUsageDetail_20' ) end [2024-12-20 08:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:30:22] Production.INFO: ==19651== Releasing lock... [2024-12-20 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:30:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-20 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:31:05 [end_date_ymd] => 2024-12-20 08:31:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:31:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:31:17] Production.INFO: count ==479 [2024-12-20 08:31:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:31:05 - End Time 2024-12-20 08:31:05 [2024-12-20 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061613', 'tblTempUsageDetail_20' ) start [2024-12-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061613', 'tblTempUsageDetail_20' ) end [2024-12-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061613', 'tblTempVendorCDR_20' ) start [2024-12-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061613', 'tblTempVendorCDR_20' ) end [2024-12-20 08:31:17] Production.INFO: ProcessCDR(1,14061613,1,1,2) [2024-12-20 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061613', 'tblTempUsageDetail_20' ) start [2024-12-20 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061613', 'tblTempUsageDetail_20' ) end [2024-12-20 08:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:31:20] Production.INFO: ==19724== Releasing lock... [2024-12-20 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:31:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-20 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:32:05 [end_date_ymd] => 2024-12-20 08:32:05 [RateCDR] => 1 ) [2024-12-20 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:32:05' and `end` < '2024-12-20 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:32:17] Production.INFO: count ==493 [2024-12-20 08:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:32:05 - End Time 2024-12-20 08:32:05 [2024-12-20 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061618', 'tblTempUsageDetail_20' ) start [2024-12-20 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061618', 'tblTempUsageDetail_20' ) end [2024-12-20 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061618', 'tblTempVendorCDR_20' ) start [2024-12-20 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061618', 'tblTempVendorCDR_20' ) end [2024-12-20 08:32:17] Production.INFO: ProcessCDR(1,14061618,1,1,2) [2024-12-20 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061618', 'tblTempUsageDetail_20' ) start [2024-12-20 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061618', 'tblTempUsageDetail_20' ) end [2024-12-20 08:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:32:20] Production.INFO: ==19835== Releasing lock... [2024-12-20 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:32:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-20 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:33:04 [end_date_ymd] => 2024-12-20 08:33:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:33:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:33:16] Production.INFO: count ==508 [2024-12-20 08:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:33:04 - End Time 2024-12-20 08:33:04 [2024-12-20 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061623', 'tblTempUsageDetail_20' ) start [2024-12-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061623', 'tblTempUsageDetail_20' ) end [2024-12-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061623', 'tblTempVendorCDR_20' ) start [2024-12-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061623', 'tblTempVendorCDR_20' ) end [2024-12-20 08:33:17] Production.INFO: ProcessCDR(1,14061623,1,1,2) [2024-12-20 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061623', 'tblTempUsageDetail_20' ) start [2024-12-20 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061623', 'tblTempUsageDetail_20' ) end [2024-12-20 08:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:33:21] Production.INFO: ==19905== Releasing lock... [2024-12-20 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:33:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-20 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:34:05 [end_date_ymd] => 2024-12-20 08:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:34:17] Production.INFO: count ==510 [2024-12-20 08:34:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:34:05 - End Time 2024-12-20 08:34:05 [2024-12-20 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061628', 'tblTempUsageDetail_20' ) start [2024-12-20 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061628', 'tblTempUsageDetail_20' ) end [2024-12-20 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061628', 'tblTempVendorCDR_20' ) start [2024-12-20 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061628', 'tblTempVendorCDR_20' ) end [2024-12-20 08:34:17] Production.INFO: ProcessCDR(1,14061628,1,1,2) [2024-12-20 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061628', 'tblTempUsageDetail_20' ) start [2024-12-20 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061628', 'tblTempUsageDetail_20' ) end [2024-12-20 08:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:34:22] Production.INFO: ==19979== Releasing lock... [2024-12-20 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:34:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-20 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:35:04 [end_date_ymd] => 2024-12-20 08:35:04 [RateCDR] => 1 ) [2024-12-20 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:35:04' and `end` < '2024-12-20 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:35:16] Production.INFO: count ==522 [2024-12-20 08:35:16] Production.ERROR: pbx CDR StartTime 2024-12-20 05:35:04 - End Time 2024-12-20 08:35:04 [2024-12-20 08:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061633', 'tblTempUsageDetail_20' ) start [2024-12-20 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061633', 'tblTempUsageDetail_20' ) end [2024-12-20 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061633', 'tblTempVendorCDR_20' ) start [2024-12-20 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061633', 'tblTempVendorCDR_20' ) end [2024-12-20 08:35:16] Production.INFO: ProcessCDR(1,14061633,1,1,2) [2024-12-20 08:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061633', 'tblTempUsageDetail_20' ) start [2024-12-20 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061633', 'tblTempUsageDetail_20' ) end [2024-12-20 08:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:35:21] Production.INFO: ==20049== Releasing lock... [2024-12-20 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:35:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-20 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:36:05 [end_date_ymd] => 2024-12-20 08:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:36:17] Production.INFO: count ==531 [2024-12-20 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:36:05 - End Time 2024-12-20 08:36:05 [2024-12-20 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061638', 'tblTempUsageDetail_20' ) start [2024-12-20 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061638', 'tblTempUsageDetail_20' ) end [2024-12-20 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061638', 'tblTempVendorCDR_20' ) start [2024-12-20 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061638', 'tblTempVendorCDR_20' ) end [2024-12-20 08:36:17] Production.INFO: ProcessCDR(1,14061638,1,1,2) [2024-12-20 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061638', 'tblTempUsageDetail_20' ) start [2024-12-20 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061638', 'tblTempUsageDetail_20' ) end [2024-12-20 08:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:36:20] Production.INFO: ==20120== Releasing lock... [2024-12-20 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:36:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-20 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:37:05 [end_date_ymd] => 2024-12-20 08:37:05 [RateCDR] => 1 ) [2024-12-20 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:37:05' and `end` < '2024-12-20 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:37:19] Production.INFO: count ==544 [2024-12-20 08:37:19] Production.ERROR: pbx CDR StartTime 2024-12-20 05:37:05 - End Time 2024-12-20 08:37:05 [2024-12-20 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061643', 'tblTempUsageDetail_20' ) start [2024-12-20 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061643', 'tblTempUsageDetail_20' ) end [2024-12-20 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061643', 'tblTempVendorCDR_20' ) start [2024-12-20 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061643', 'tblTempVendorCDR_20' ) end [2024-12-20 08:37:19] Production.INFO: ProcessCDR(1,14061643,1,1,2) [2024-12-20 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061643', 'tblTempUsageDetail_20' ) start [2024-12-20 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061643', 'tblTempUsageDetail_20' ) end [2024-12-20 08:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:37:24] Production.INFO: ==20193== Releasing lock... [2024-12-20 08:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:37:24] Production.INFO: 33 MB #Memory Used# [2024-12-20 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:38:05 [end_date_ymd] => 2024-12-20 08:38:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:38:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:38:17] Production.INFO: count ==553 [2024-12-20 08:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:38:05 - End Time 2024-12-20 08:38:05 [2024-12-20 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061648', 'tblTempUsageDetail_20' ) start [2024-12-20 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061648', 'tblTempUsageDetail_20' ) end [2024-12-20 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061648', 'tblTempVendorCDR_20' ) start [2024-12-20 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061648', 'tblTempVendorCDR_20' ) end [2024-12-20 08:38:17] Production.INFO: ProcessCDR(1,14061648,1,1,2) [2024-12-20 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061648', 'tblTempUsageDetail_20' ) start [2024-12-20 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061648', 'tblTempUsageDetail_20' ) end [2024-12-20 08:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:38:22] Production.INFO: ==20266== Releasing lock... [2024-12-20 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:38:22] Production.INFO: 33 MB #Memory Used# [2024-12-20 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:39:04 [end_date_ymd] => 2024-12-20 08:39:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:39:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:39:16] Production.INFO: count ==556 [2024-12-20 08:39:16] Production.ERROR: pbx CDR StartTime 2024-12-20 05:39:04 - End Time 2024-12-20 08:39:04 [2024-12-20 08:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061653', 'tblTempUsageDetail_20' ) start [2024-12-20 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061653', 'tblTempUsageDetail_20' ) end [2024-12-20 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061653', 'tblTempVendorCDR_20' ) start [2024-12-20 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061653', 'tblTempVendorCDR_20' ) end [2024-12-20 08:39:16] Production.INFO: ProcessCDR(1,14061653,1,1,2) [2024-12-20 08:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061653', 'tblTempUsageDetail_20' ) start [2024-12-20 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061653', 'tblTempUsageDetail_20' ) end [2024-12-20 08:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:39:21] Production.INFO: ==20336== Releasing lock... [2024-12-20 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:39:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-20 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:40:05 [end_date_ymd] => 2024-12-20 08:40:05 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:40:05' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:40:17] Production.INFO: count ==576 [2024-12-20 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:40:05 - End Time 2024-12-20 08:40:05 [2024-12-20 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061658', 'tblTempUsageDetail_20' ) start [2024-12-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061658', 'tblTempUsageDetail_20' ) end [2024-12-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061658', 'tblTempVendorCDR_20' ) start [2024-12-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061658', 'tblTempVendorCDR_20' ) end [2024-12-20 08:40:18] Production.INFO: ProcessCDR(1,14061658,1,1,2) [2024-12-20 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061658', 'tblTempUsageDetail_20' ) start [2024-12-20 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061658', 'tblTempUsageDetail_20' ) end [2024-12-20 08:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:40:22] Production.INFO: ==20410== Releasing lock... [2024-12-20 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:40:22] Production.INFO: 33 MB #Memory Used# [2024-12-20 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:41:05 [end_date_ymd] => 2024-12-20 08:41:05 [RateCDR] => 1 ) [2024-12-20 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:41:05' and `end` < '2024-12-20 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:41:17] Production.INFO: count ==621 [2024-12-20 08:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:41:05 - End Time 2024-12-20 08:41:05 [2024-12-20 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061664', 'tblTempUsageDetail_20' ) start [2024-12-20 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061664', 'tblTempUsageDetail_20' ) end [2024-12-20 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061664', 'tblTempVendorCDR_20' ) start [2024-12-20 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061664', 'tblTempVendorCDR_20' ) end [2024-12-20 08:41:17] Production.INFO: ProcessCDR(1,14061664,1,1,2) [2024-12-20 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061664', 'tblTempUsageDetail_20' ) start [2024-12-20 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061664', 'tblTempUsageDetail_20' ) end [2024-12-20 08:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:41:22] Production.INFO: ==20483== Releasing lock... [2024-12-20 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:41:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-20 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:42:05 [end_date_ymd] => 2024-12-20 08:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:42:18] Production.INFO: count ==628 [2024-12-20 08:42:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:42:05 - End Time 2024-12-20 08:42:05 [2024-12-20 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061669', 'tblTempUsageDetail_20' ) start [2024-12-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061669', 'tblTempUsageDetail_20' ) end [2024-12-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061669', 'tblTempVendorCDR_20' ) start [2024-12-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061669', 'tblTempVendorCDR_20' ) end [2024-12-20 08:42:18] Production.INFO: ProcessCDR(1,14061669,1,1,2) [2024-12-20 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061669', 'tblTempUsageDetail_20' ) start [2024-12-20 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061669', 'tblTempUsageDetail_20' ) end [2024-12-20 08:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:42:21] Production.INFO: ==20556== Releasing lock... [2024-12-20 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:42:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-20 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:43:04 [end_date_ymd] => 2024-12-20 08:43:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:43:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:43:16] Production.INFO: count ==665 [2024-12-20 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:43:04 - End Time 2024-12-20 08:43:04 [2024-12-20 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061674', 'tblTempUsageDetail_20' ) start [2024-12-20 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061674', 'tblTempUsageDetail_20' ) end [2024-12-20 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061674', 'tblTempVendorCDR_20' ) start [2024-12-20 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061674', 'tblTempVendorCDR_20' ) end [2024-12-20 08:43:17] Production.INFO: ProcessCDR(1,14061674,1,1,2) [2024-12-20 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061674', 'tblTempUsageDetail_20' ) start [2024-12-20 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061674', 'tblTempUsageDetail_20' ) end [2024-12-20 08:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:43:21] Production.INFO: ==20625== Releasing lock... [2024-12-20 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:43:21] Production.INFO: 34 MB #Memory Used# [2024-12-20 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:44:05 [end_date_ymd] => 2024-12-20 08:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:44:18] Production.INFO: count ==669 [2024-12-20 08:44:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:44:05 - End Time 2024-12-20 08:44:05 [2024-12-20 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061679', 'tblTempUsageDetail_20' ) start [2024-12-20 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061679', 'tblTempUsageDetail_20' ) end [2024-12-20 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061679', 'tblTempVendorCDR_20' ) start [2024-12-20 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061679', 'tblTempVendorCDR_20' ) end [2024-12-20 08:44:18] Production.INFO: ProcessCDR(1,14061679,1,1,2) [2024-12-20 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061679', 'tblTempUsageDetail_20' ) start [2024-12-20 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061679', 'tblTempUsageDetail_20' ) end [2024-12-20 08:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:44:23] Production.INFO: ==20703== Releasing lock... [2024-12-20 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:44:23] Production.INFO: 33.75 MB #Memory Used# [2024-12-20 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:45:05 [end_date_ymd] => 2024-12-20 08:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:45:17] Production.INFO: count ==673 [2024-12-20 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:45:05 - End Time 2024-12-20 08:45:05 [2024-12-20 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061684', 'tblTempUsageDetail_20' ) start [2024-12-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061684', 'tblTempUsageDetail_20' ) end [2024-12-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061684', 'tblTempVendorCDR_20' ) start [2024-12-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061684', 'tblTempVendorCDR_20' ) end [2024-12-20 08:45:17] Production.INFO: ProcessCDR(1,14061684,1,1,2) [2024-12-20 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061684', 'tblTempUsageDetail_20' ) start [2024-12-20 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061684', 'tblTempUsageDetail_20' ) end [2024-12-20 08:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:45:21] Production.INFO: ==20773== Releasing lock... [2024-12-20 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:45:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-20 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:46:05 [end_date_ymd] => 2024-12-20 08:46:05 [RateCDR] => 1 ) [2024-12-20 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:46:05' and `end` < '2024-12-20 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:46:18] Production.INFO: count ==682 [2024-12-20 08:46:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:46:05 - End Time 2024-12-20 08:46:05 [2024-12-20 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061689', 'tblTempUsageDetail_20' ) start [2024-12-20 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061689', 'tblTempUsageDetail_20' ) end [2024-12-20 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061689', 'tblTempVendorCDR_20' ) start [2024-12-20 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061689', 'tblTempVendorCDR_20' ) end [2024-12-20 08:46:18] Production.INFO: ProcessCDR(1,14061689,1,1,2) [2024-12-20 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061689', 'tblTempUsageDetail_20' ) start [2024-12-20 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061689', 'tblTempUsageDetail_20' ) end [2024-12-20 08:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:46:22] Production.INFO: ==20849== Releasing lock... [2024-12-20 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:46:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-20 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:47:04 [end_date_ymd] => 2024-12-20 08:47:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:47:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:47:16] Production.INFO: count ==700 [2024-12-20 08:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:47:04 - End Time 2024-12-20 08:47:04 [2024-12-20 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061694', 'tblTempUsageDetail_20' ) start [2024-12-20 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061694', 'tblTempUsageDetail_20' ) end [2024-12-20 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061694', 'tblTempVendorCDR_20' ) start [2024-12-20 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061694', 'tblTempVendorCDR_20' ) end [2024-12-20 08:47:17] Production.INFO: ProcessCDR(1,14061694,1,1,2) [2024-12-20 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061694', 'tblTempUsageDetail_20' ) start [2024-12-20 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061694', 'tblTempUsageDetail_20' ) end [2024-12-20 08:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:47:21] Production.INFO: ==20962== Releasing lock... [2024-12-20 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:47:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-20 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:48:05 [end_date_ymd] => 2024-12-20 08:48:05 [RateCDR] => 1 ) [2024-12-20 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:48:05' and `end` < '2024-12-20 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:48:17] Production.INFO: count ==716 [2024-12-20 08:48:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:48:05 - End Time 2024-12-20 08:48:05 [2024-12-20 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061699', 'tblTempUsageDetail_20' ) start [2024-12-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061699', 'tblTempUsageDetail_20' ) end [2024-12-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061699', 'tblTempVendorCDR_20' ) start [2024-12-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061699', 'tblTempVendorCDR_20' ) end [2024-12-20 08:48:17] Production.INFO: ProcessCDR(1,14061699,1,1,2) [2024-12-20 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061699', 'tblTempUsageDetail_20' ) start [2024-12-20 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061699', 'tblTempUsageDetail_20' ) end [2024-12-20 08:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:48:20] Production.INFO: ==21036== Releasing lock... [2024-12-20 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:48:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-20 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:49:04 [end_date_ymd] => 2024-12-20 08:49:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:49:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:49:16] Production.INFO: count ==722 [2024-12-20 08:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:49:04 - End Time 2024-12-20 08:49:04 [2024-12-20 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061704', 'tblTempUsageDetail_20' ) start [2024-12-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061704', 'tblTempUsageDetail_20' ) end [2024-12-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061704', 'tblTempVendorCDR_20' ) start [2024-12-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061704', 'tblTempVendorCDR_20' ) end [2024-12-20 08:49:17] Production.INFO: ProcessCDR(1,14061704,1,1,2) [2024-12-20 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061704', 'tblTempUsageDetail_20' ) start [2024-12-20 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061704', 'tblTempUsageDetail_20' ) end [2024-12-20 08:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:49:20] Production.INFO: ==21109== Releasing lock... [2024-12-20 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:49:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-20 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:50:05 [end_date_ymd] => 2024-12-20 08:50:05 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:50:05' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:50:18] Production.INFO: count ==729 [2024-12-20 08:50:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:50:05 - End Time 2024-12-20 08:50:05 [2024-12-20 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061710', 'tblTempUsageDetail_20' ) start [2024-12-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061710', 'tblTempUsageDetail_20' ) end [2024-12-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061710', 'tblTempVendorCDR_20' ) start [2024-12-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061710', 'tblTempVendorCDR_20' ) end [2024-12-20 08:50:18] Production.INFO: ProcessCDR(1,14061710,1,1,2) [2024-12-20 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061710', 'tblTempUsageDetail_20' ) start [2024-12-20 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061710', 'tblTempUsageDetail_20' ) end [2024-12-20 08:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:50:22] Production.INFO: ==21186== Releasing lock... [2024-12-20 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:50:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-20 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:51:04 [end_date_ymd] => 2024-12-20 08:51:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:51:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:51:16] Production.INFO: count ==758 [2024-12-20 08:51:16] Production.ERROR: pbx CDR StartTime 2024-12-20 05:51:04 - End Time 2024-12-20 08:51:04 [2024-12-20 08:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061714', 'tblTempUsageDetail_20' ) start [2024-12-20 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061714', 'tblTempUsageDetail_20' ) end [2024-12-20 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061714', 'tblTempVendorCDR_20' ) start [2024-12-20 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061714', 'tblTempVendorCDR_20' ) end [2024-12-20 08:51:16] Production.INFO: ProcessCDR(1,14061714,1,1,2) [2024-12-20 08:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061714', 'tblTempUsageDetail_20' ) start [2024-12-20 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061714', 'tblTempUsageDetail_20' ) end [2024-12-20 08:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:51:21] Production.INFO: ==21258== Releasing lock... [2024-12-20 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:51:21] Production.INFO: 34 MB #Memory Used# [2024-12-20 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:52:05 [end_date_ymd] => 2024-12-20 08:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:52:18] Production.INFO: count ==760 [2024-12-20 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:52:05 - End Time 2024-12-20 08:52:05 [2024-12-20 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061720', 'tblTempUsageDetail_20' ) start [2024-12-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061720', 'tblTempUsageDetail_20' ) end [2024-12-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061720', 'tblTempVendorCDR_20' ) start [2024-12-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061720', 'tblTempVendorCDR_20' ) end [2024-12-20 08:52:18] Production.INFO: ProcessCDR(1,14061720,1,1,2) [2024-12-20 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061720', 'tblTempUsageDetail_20' ) start [2024-12-20 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061720', 'tblTempUsageDetail_20' ) end [2024-12-20 08:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:52:22] Production.INFO: ==21335== Releasing lock... [2024-12-20 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:52:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-20 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:53:04 [end_date_ymd] => 2024-12-20 08:53:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:53:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:53:16] Production.INFO: count ==771 [2024-12-20 08:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:53:04 - End Time 2024-12-20 08:53:04 [2024-12-20 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061725', 'tblTempUsageDetail_20' ) start [2024-12-20 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061725', 'tblTempUsageDetail_20' ) end [2024-12-20 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061725', 'tblTempVendorCDR_20' ) start [2024-12-20 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061725', 'tblTempVendorCDR_20' ) end [2024-12-20 08:53:17] Production.INFO: ProcessCDR(1,14061725,1,1,2) [2024-12-20 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061725', 'tblTempUsageDetail_20' ) start [2024-12-20 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061725', 'tblTempUsageDetail_20' ) end [2024-12-20 08:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:53:20] Production.INFO: ==21411== Releasing lock... [2024-12-20 08:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:53:20] Production.INFO: 35 MB #Memory Used# [2024-12-20 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:54:05 [end_date_ymd] => 2024-12-20 08:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:54:17] Production.INFO: count ==779 [2024-12-20 08:54:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:54:05 - End Time 2024-12-20 08:54:05 [2024-12-20 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061730', 'tblTempUsageDetail_20' ) start [2024-12-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061730', 'tblTempUsageDetail_20' ) end [2024-12-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061730', 'tblTempVendorCDR_20' ) start [2024-12-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061730', 'tblTempVendorCDR_20' ) end [2024-12-20 08:54:17] Production.INFO: ProcessCDR(1,14061730,1,1,2) [2024-12-20 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061730', 'tblTempUsageDetail_20' ) start [2024-12-20 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061730', 'tblTempUsageDetail_20' ) end [2024-12-20 08:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:54:20] Production.INFO: ==21489== Releasing lock... [2024-12-20 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:54:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-20 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:55:04 [end_date_ymd] => 2024-12-20 08:55:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:55:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:55:17] Production.INFO: count ==785 [2024-12-20 08:55:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:55:04 - End Time 2024-12-20 08:55:04 [2024-12-20 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061735', 'tblTempUsageDetail_20' ) start [2024-12-20 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061735', 'tblTempUsageDetail_20' ) end [2024-12-20 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061735', 'tblTempVendorCDR_20' ) start [2024-12-20 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061735', 'tblTempVendorCDR_20' ) end [2024-12-20 08:55:17] Production.INFO: ProcessCDR(1,14061735,1,1,2) [2024-12-20 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061735', 'tblTempUsageDetail_20' ) start [2024-12-20 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061735', 'tblTempUsageDetail_20' ) end [2024-12-20 08:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:55:21] Production.INFO: ==21561== Releasing lock... [2024-12-20 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:55:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-20 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:56:05 [end_date_ymd] => 2024-12-20 08:56:05 [RateCDR] => 1 ) [2024-12-20 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:56:05' and `end` < '2024-12-20 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:56:18] Production.INFO: count ==798 [2024-12-20 08:56:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:56:05 - End Time 2024-12-20 08:56:05 [2024-12-20 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061740', 'tblTempUsageDetail_20' ) start [2024-12-20 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061740', 'tblTempUsageDetail_20' ) end [2024-12-20 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061740', 'tblTempVendorCDR_20' ) start [2024-12-20 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061740', 'tblTempVendorCDR_20' ) end [2024-12-20 08:56:18] Production.INFO: ProcessCDR(1,14061740,1,1,2) [2024-12-20 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061740', 'tblTempUsageDetail_20' ) start [2024-12-20 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061740', 'tblTempUsageDetail_20' ) end [2024-12-20 08:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:56:22] Production.INFO: ==21636== Releasing lock... [2024-12-20 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:56:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-20 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:57:05 [end_date_ymd] => 2024-12-20 08:57:05 [RateCDR] => 1 ) [2024-12-20 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 05:57:05' and `end` < '2024-12-20 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 08:57:17] Production.INFO: count ==811 [2024-12-20 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:57:05 - End Time 2024-12-20 08:57:05 [2024-12-20 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061745', 'tblTempUsageDetail_20' ) start [2024-12-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061745', 'tblTempUsageDetail_20' ) end [2024-12-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061745', 'tblTempVendorCDR_20' ) start [2024-12-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061745', 'tblTempVendorCDR_20' ) end [2024-12-20 08:57:17] Production.INFO: ProcessCDR(1,14061745,1,1,2) [2024-12-20 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061745', 'tblTempUsageDetail_20' ) start [2024-12-20 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061745', 'tblTempUsageDetail_20' ) end [2024-12-20 08:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:57:22] Production.INFO: ==21708== Releasing lock... [2024-12-20 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:57:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-20 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:58:04 [end_date_ymd] => 2024-12-20 08:58:04 [RateCDR] => 1 ) [2024-12-20 08: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` >= '2024-12-20 05:58:04' and `end` < '2024-12-20 08: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 ,'') [2024-12-20 08:58:17] Production.INFO: count ==817 [2024-12-20 08:58:17] Production.ERROR: pbx CDR StartTime 2024-12-20 05:58:04 - End Time 2024-12-20 08:58:04 [2024-12-20 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061750', 'tblTempUsageDetail_20' ) start [2024-12-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061750', 'tblTempUsageDetail_20' ) end [2024-12-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061750', 'tblTempVendorCDR_20' ) start [2024-12-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061750', 'tblTempVendorCDR_20' ) end [2024-12-20 08:58:17] Production.INFO: ProcessCDR(1,14061750,1,1,2) [2024-12-20 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061750', 'tblTempUsageDetail_20' ) start [2024-12-20 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061750', 'tblTempUsageDetail_20' ) end [2024-12-20 08:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:58:21] Production.INFO: ==21782== Releasing lock... [2024-12-20 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:58:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-20 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 05:59:05 [end_date_ymd] => 2024-12-20 08:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 05:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 08:59:18] Production.INFO: count ==824 [2024-12-20 08:59:18] Production.ERROR: pbx CDR StartTime 2024-12-20 05:59:05 - End Time 2024-12-20 08:59:05 [2024-12-20 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061755', 'tblTempUsageDetail_20' ) start [2024-12-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061755', 'tblTempUsageDetail_20' ) end [2024-12-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061755', 'tblTempVendorCDR_20' ) start [2024-12-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061755', 'tblTempVendorCDR_20' ) end [2024-12-20 08:59:18] Production.INFO: ProcessCDR(1,14061755,1,1,2) [2024-12-20 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061755', 'tblTempUsageDetail_20' ) start [2024-12-20 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061755', 'tblTempUsageDetail_20' ) end [2024-12-20 08:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 08:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 08:59:22] Production.INFO: ==21853== Releasing lock... [2024-12-20 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 08:59:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-20 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:00:06 [end_date_ymd] => 2024-12-20 09:00:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:00:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:00:18] Production.INFO: count ==855 [2024-12-20 09:00:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:00:06 - End Time 2024-12-20 09:00:06 [2024-12-20 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061761', 'tblTempUsageDetail_20' ) start [2024-12-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061761', 'tblTempUsageDetail_20' ) end [2024-12-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061761', 'tblTempVendorCDR_20' ) start [2024-12-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061761', 'tblTempVendorCDR_20' ) end [2024-12-20 09:00:19] Production.INFO: ProcessCDR(1,14061761,1,1,2) [2024-12-20 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061761', 'tblTempUsageDetail_20' ) start [2024-12-20 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061761', 'tblTempUsageDetail_20' ) end [2024-12-20 09:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:00:22] Production.INFO: ==21930== Releasing lock... [2024-12-20 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:00:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-20 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:01:04 [end_date_ymd] => 2024-12-20 09:01:04 [RateCDR] => 1 ) [2024-12-20 09:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:01:04' and `end` < '2024-12-20 09:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:01:16] Production.INFO: count ==901 [2024-12-20 09:01:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:01:04 - End Time 2024-12-20 09:01:04 [2024-12-20 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061766', 'tblTempUsageDetail_20' ) start [2024-12-20 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061766', 'tblTempUsageDetail_20' ) end [2024-12-20 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061766', 'tblTempVendorCDR_20' ) start [2024-12-20 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061766', 'tblTempVendorCDR_20' ) end [2024-12-20 09:01:17] Production.INFO: ProcessCDR(1,14061766,1,1,2) [2024-12-20 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061766', 'tblTempUsageDetail_20' ) start [2024-12-20 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061766', 'tblTempUsageDetail_20' ) end [2024-12-20 09:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:01:21] Production.INFO: ==22018== Releasing lock... [2024-12-20 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:01:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:02:06 [end_date_ymd] => 2024-12-20 09:02:06 [RateCDR] => 1 ) [2024-12-20 09: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` >= '2024-12-20 06:02:06' and `end` < '2024-12-20 09: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 ,'') [2024-12-20 09:02:18] Production.INFO: count ==903 [2024-12-20 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:02:06 - End Time 2024-12-20 09:02:06 [2024-12-20 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061771', 'tblTempUsageDetail_20' ) start [2024-12-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061771', 'tblTempUsageDetail_20' ) end [2024-12-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061771', 'tblTempVendorCDR_20' ) start [2024-12-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061771', 'tblTempVendorCDR_20' ) end [2024-12-20 09:02:18] Production.INFO: ProcessCDR(1,14061771,1,1,2) [2024-12-20 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061771', 'tblTempUsageDetail_20' ) start [2024-12-20 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061771', 'tblTempUsageDetail_20' ) end [2024-12-20 09:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:02:23] Production.INFO: ==22092== Releasing lock... [2024-12-20 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:02:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:03:04 [end_date_ymd] => 2024-12-20 09:03:04 [RateCDR] => 1 ) [2024-12-20 09:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:03:04' and `end` < '2024-12-20 09:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:03:16] Production.INFO: count ==926 [2024-12-20 09:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:03:04 - End Time 2024-12-20 09:03:04 [2024-12-20 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061776', 'tblTempUsageDetail_20' ) start [2024-12-20 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061776', 'tblTempUsageDetail_20' ) end [2024-12-20 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061776', 'tblTempVendorCDR_20' ) start [2024-12-20 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061776', 'tblTempVendorCDR_20' ) end [2024-12-20 09:03:17] Production.INFO: ProcessCDR(1,14061776,1,1,2) [2024-12-20 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061776', 'tblTempUsageDetail_20' ) start [2024-12-20 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061776', 'tblTempUsageDetail_20' ) end [2024-12-20 09:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:03:21] Production.INFO: ==22205== Releasing lock... [2024-12-20 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:03:21] Production.INFO: 35 MB #Memory Used# [2024-12-20 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:04:05 [end_date_ymd] => 2024-12-20 09:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:04:17] Production.INFO: count ==930 [2024-12-20 09:04:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:04:05 - End Time 2024-12-20 09:04:05 [2024-12-20 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061781', 'tblTempUsageDetail_20' ) start [2024-12-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061781', 'tblTempUsageDetail_20' ) end [2024-12-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061781', 'tblTempVendorCDR_20' ) start [2024-12-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061781', 'tblTempVendorCDR_20' ) end [2024-12-20 09:04:18] Production.INFO: ProcessCDR(1,14061781,1,1,2) [2024-12-20 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061781', 'tblTempUsageDetail_20' ) start [2024-12-20 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061781', 'tblTempUsageDetail_20' ) end [2024-12-20 09:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:04:22] Production.INFO: ==22282== Releasing lock... [2024-12-20 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:04:22] Production.INFO: 35 MB #Memory Used# [2024-12-20 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:05:05 [end_date_ymd] => 2024-12-20 09:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:05:17] Production.INFO: count ==930 [2024-12-20 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:05:05 - End Time 2024-12-20 09:05:05 [2024-12-20 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061786', 'tblTempUsageDetail_20' ) start [2024-12-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061786', 'tblTempUsageDetail_20' ) end [2024-12-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061786', 'tblTempVendorCDR_20' ) start [2024-12-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061786', 'tblTempVendorCDR_20' ) end [2024-12-20 09:05:18] Production.INFO: ProcessCDR(1,14061786,1,1,2) [2024-12-20 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061786', 'tblTempUsageDetail_20' ) start [2024-12-20 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061786', 'tblTempUsageDetail_20' ) end [2024-12-20 09:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:05:21] Production.INFO: ==22358== Releasing lock... [2024-12-20 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:05:21] Production.INFO: 35 MB #Memory Used# [2024-12-20 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:06:05 [end_date_ymd] => 2024-12-20 09:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:06:17] Production.INFO: count ==939 [2024-12-20 09:06:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:06:05 - End Time 2024-12-20 09:06:05 [2024-12-20 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061791', 'tblTempUsageDetail_20' ) start [2024-12-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061791', 'tblTempUsageDetail_20' ) end [2024-12-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061791', 'tblTempVendorCDR_20' ) start [2024-12-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061791', 'tblTempVendorCDR_20' ) end [2024-12-20 09:06:18] Production.INFO: ProcessCDR(1,14061791,1,1,2) [2024-12-20 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061791', 'tblTempUsageDetail_20' ) start [2024-12-20 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061791', 'tblTempUsageDetail_20' ) end [2024-12-20 09:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:06:23] Production.INFO: ==22436== Releasing lock... [2024-12-20 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:06:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:07:05 [end_date_ymd] => 2024-12-20 09:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:07:17] Production.INFO: count ==951 [2024-12-20 09:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:07:05 - End Time 2024-12-20 09:07:05 [2024-12-20 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061796', 'tblTempUsageDetail_20' ) start [2024-12-20 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061796', 'tblTempUsageDetail_20' ) end [2024-12-20 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061796', 'tblTempVendorCDR_20' ) start [2024-12-20 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061796', 'tblTempVendorCDR_20' ) end [2024-12-20 09:07:17] Production.INFO: ProcessCDR(1,14061796,1,1,2) [2024-12-20 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061796', 'tblTempUsageDetail_20' ) start [2024-12-20 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061796', 'tblTempUsageDetail_20' ) end [2024-12-20 09:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:07:22] Production.INFO: ==22514== Releasing lock... [2024-12-20 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:07:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:08:05 [end_date_ymd] => 2024-12-20 09:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:08:17] Production.INFO: count ==968 [2024-12-20 09:08:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:08:05 - End Time 2024-12-20 09:08:05 [2024-12-20 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061801', 'tblTempUsageDetail_20' ) start [2024-12-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061801', 'tblTempUsageDetail_20' ) end [2024-12-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061801', 'tblTempVendorCDR_20' ) start [2024-12-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061801', 'tblTempVendorCDR_20' ) end [2024-12-20 09:08:18] Production.INFO: ProcessCDR(1,14061801,1,1,2) [2024-12-20 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061801', 'tblTempUsageDetail_20' ) start [2024-12-20 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061801', 'tblTempUsageDetail_20' ) end [2024-12-20 09:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:08:22] Production.INFO: ==22588== Releasing lock... [2024-12-20 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:08:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:09:04 [end_date_ymd] => 2024-12-20 09:09:04 [RateCDR] => 1 ) [2024-12-20 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:09:04' and `end` < '2024-12-20 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:09:16] Production.INFO: count ==986 [2024-12-20 09:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:09:04 - End Time 2024-12-20 09:09:04 [2024-12-20 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061806', 'tblTempUsageDetail_20' ) start [2024-12-20 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061806', 'tblTempUsageDetail_20' ) end [2024-12-20 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061806', 'tblTempVendorCDR_20' ) start [2024-12-20 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061806', 'tblTempVendorCDR_20' ) end [2024-12-20 09:09:17] Production.INFO: ProcessCDR(1,14061806,1,1,2) [2024-12-20 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061806', 'tblTempUsageDetail_20' ) start [2024-12-20 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061806', 'tblTempUsageDetail_20' ) end [2024-12-20 09:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:09:21] Production.INFO: ==22668== Releasing lock... [2024-12-20 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:09:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:10:06 [end_date_ymd] => 2024-12-20 09:10:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:10:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:10:18] Production.INFO: count ==1002 [2024-12-20 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:10:06 - End Time 2024-12-20 09:10:06 [2024-12-20 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061812', 'tblTempUsageDetail_20' ) start [2024-12-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061812', 'tblTempUsageDetail_20' ) end [2024-12-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061812', 'tblTempVendorCDR_20' ) start [2024-12-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061812', 'tblTempVendorCDR_20' ) end [2024-12-20 09:10:19] Production.INFO: ProcessCDR(1,14061812,1,1,2) [2024-12-20 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061812', 'tblTempUsageDetail_20' ) start [2024-12-20 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061812', 'tblTempUsageDetail_20' ) end [2024-12-20 09:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:10:23] Production.INFO: ==22750== Releasing lock... [2024-12-20 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:10:23] Production.INFO: 36 MB #Memory Used# [2024-12-20 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:11:04 [end_date_ymd] => 2024-12-20 09:11:04 [RateCDR] => 1 ) [2024-12-20 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:11:04' and `end` < '2024-12-20 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:11:17] Production.INFO: count ==1064 [2024-12-20 09:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:11:04 - End Time 2024-12-20 09:11:04 [2024-12-20 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061817', 'tblTempUsageDetail_20' ) start [2024-12-20 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061817', 'tblTempUsageDetail_20' ) end [2024-12-20 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061817', 'tblTempVendorCDR_20' ) start [2024-12-20 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061817', 'tblTempVendorCDR_20' ) end [2024-12-20 09:11:17] Production.INFO: ProcessCDR(1,14061817,1,1,2) [2024-12-20 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061817', 'tblTempUsageDetail_20' ) start [2024-12-20 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061817', 'tblTempUsageDetail_20' ) end [2024-12-20 09:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:11:22] Production.INFO: ==22823== Releasing lock... [2024-12-20 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:11:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:12:05 [end_date_ymd] => 2024-12-20 09:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:12:17] Production.INFO: count ==1086 [2024-12-20 09:12:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:12:05 - End Time 2024-12-20 09:12:05 [2024-12-20 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061822', 'tblTempUsageDetail_20' ) start [2024-12-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061822', 'tblTempUsageDetail_20' ) end [2024-12-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061822', 'tblTempVendorCDR_20' ) start [2024-12-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061822', 'tblTempVendorCDR_20' ) end [2024-12-20 09:12:18] Production.INFO: ProcessCDR(1,14061822,1,1,2) [2024-12-20 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061822', 'tblTempUsageDetail_20' ) start [2024-12-20 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061822', 'tblTempUsageDetail_20' ) end [2024-12-20 09:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:12:22] Production.INFO: ==22899== Releasing lock... [2024-12-20 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:12:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:13:05 [end_date_ymd] => 2024-12-20 09:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:13:21] Production.INFO: count ==1096 [2024-12-20 09:13:22] Production.ERROR: pbx CDR StartTime 2024-12-20 06:13:05 - End Time 2024-12-20 09:13:05 [2024-12-20 09:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061827', 'tblTempUsageDetail_20' ) start [2024-12-20 09:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061827', 'tblTempUsageDetail_20' ) end [2024-12-20 09:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061827', 'tblTempVendorCDR_20' ) start [2024-12-20 09:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061827', 'tblTempVendorCDR_20' ) end [2024-12-20 09:13:22] Production.INFO: ProcessCDR(1,14061827,1,1,2) [2024-12-20 09:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061827', 'tblTempUsageDetail_20' ) start [2024-12-20 09:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061827', 'tblTempUsageDetail_20' ) end [2024-12-20 09:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:13:26] Production.INFO: ==22979== Releasing lock... [2024-12-20 09:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:13:26] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:14:05 [end_date_ymd] => 2024-12-20 09:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:14:19] Production.INFO: count ==1105 [2024-12-20 09:14:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:14:05 - End Time 2024-12-20 09:14:05 [2024-12-20 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061832', 'tblTempUsageDetail_20' ) start [2024-12-20 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061832', 'tblTempUsageDetail_20' ) end [2024-12-20 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061832', 'tblTempVendorCDR_20' ) start [2024-12-20 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061832', 'tblTempVendorCDR_20' ) end [2024-12-20 09:14:19] Production.INFO: ProcessCDR(1,14061832,1,1,2) [2024-12-20 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061832', 'tblTempUsageDetail_20' ) start [2024-12-20 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061832', 'tblTempUsageDetail_20' ) end [2024-12-20 09:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:14:24] Production.INFO: ==23053== Releasing lock... [2024-12-20 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:14:24] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:15:04 [end_date_ymd] => 2024-12-20 09:15:04 [RateCDR] => 1 ) [2024-12-20 09: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` >= '2024-12-20 06:15:04' and `end` < '2024-12-20 09: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 ,'') [2024-12-20 09:15:16] Production.INFO: count ==1122 [2024-12-20 09:15:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:15:04 - End Time 2024-12-20 09:15:04 [2024-12-20 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061837', 'tblTempUsageDetail_20' ) start [2024-12-20 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061837', 'tblTempUsageDetail_20' ) end [2024-12-20 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061837', 'tblTempVendorCDR_20' ) start [2024-12-20 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061837', 'tblTempVendorCDR_20' ) end [2024-12-20 09:15:17] Production.INFO: ProcessCDR(1,14061837,1,1,2) [2024-12-20 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061837', 'tblTempUsageDetail_20' ) start [2024-12-20 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061837', 'tblTempUsageDetail_20' ) end [2024-12-20 09:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:15:21] Production.INFO: ==23132== Releasing lock... [2024-12-20 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:15:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:16:05 [end_date_ymd] => 2024-12-20 09:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:16:18] Production.INFO: count ==1130 [2024-12-20 09:16:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:16:05 - End Time 2024-12-20 09:16:05 [2024-12-20 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061842', 'tblTempUsageDetail_20' ) start [2024-12-20 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061842', 'tblTempUsageDetail_20' ) end [2024-12-20 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061842', 'tblTempVendorCDR_20' ) start [2024-12-20 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061842', 'tblTempVendorCDR_20' ) end [2024-12-20 09:16:19] Production.INFO: ProcessCDR(1,14061842,1,1,2) [2024-12-20 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061842', 'tblTempUsageDetail_20' ) start [2024-12-20 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061842', 'tblTempUsageDetail_20' ) end [2024-12-20 09:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:16:23] Production.INFO: ==23209== Releasing lock... [2024-12-20 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:16:23] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:17:05 [end_date_ymd] => 2024-12-20 09:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:17:17] Production.INFO: count ==1145 [2024-12-20 09:17:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:17:05 - End Time 2024-12-20 09:17:05 [2024-12-20 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061847', 'tblTempUsageDetail_20' ) start [2024-12-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061847', 'tblTempUsageDetail_20' ) end [2024-12-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061847', 'tblTempVendorCDR_20' ) start [2024-12-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061847', 'tblTempVendorCDR_20' ) end [2024-12-20 09:17:18] Production.INFO: ProcessCDR(1,14061847,1,1,2) [2024-12-20 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061847', 'tblTempUsageDetail_20' ) start [2024-12-20 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061847', 'tblTempUsageDetail_20' ) end [2024-12-20 09:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:17:22] Production.INFO: ==23285== Releasing lock... [2024-12-20 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:17:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:18:05 [end_date_ymd] => 2024-12-20 09:18:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:18:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:18:17] Production.INFO: count ==1146 [2024-12-20 09:18:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:18:05 - End Time 2024-12-20 09:18:05 [2024-12-20 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061852', 'tblTempUsageDetail_20' ) start [2024-12-20 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061852', 'tblTempUsageDetail_20' ) end [2024-12-20 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061852', 'tblTempVendorCDR_20' ) start [2024-12-20 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061852', 'tblTempVendorCDR_20' ) end [2024-12-20 09:18:17] Production.INFO: ProcessCDR(1,14061852,1,1,2) [2024-12-20 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061852', 'tblTempUsageDetail_20' ) start [2024-12-20 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061852', 'tblTempUsageDetail_20' ) end [2024-12-20 09:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:18:20] Production.INFO: ==23360== Releasing lock... [2024-12-20 09:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:18:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:19:05 [end_date_ymd] => 2024-12-20 09:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:19:21] Production.INFO: count ==1159 [2024-12-20 09:19:22] Production.ERROR: pbx CDR StartTime 2024-12-20 06:19:05 - End Time 2024-12-20 09:19:05 [2024-12-20 09:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061857', 'tblTempUsageDetail_20' ) start [2024-12-20 09:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061857', 'tblTempUsageDetail_20' ) end [2024-12-20 09:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061857', 'tblTempVendorCDR_20' ) start [2024-12-20 09:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061857', 'tblTempVendorCDR_20' ) end [2024-12-20 09:19:22] Production.INFO: ProcessCDR(1,14061857,1,1,2) [2024-12-20 09:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061857', 'tblTempUsageDetail_20' ) start [2024-12-20 09:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061857', 'tblTempUsageDetail_20' ) end [2024-12-20 09:19:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:19:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:19:26] Production.INFO: ==23481== Releasing lock... [2024-12-20 09:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:19:26] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:20:05 [end_date_ymd] => 2024-12-20 09:20:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:20:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:20:18] Production.INFO: count ==1193 [2024-12-20 09:20:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:20:05 - End Time 2024-12-20 09:20:05 [2024-12-20 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061863', 'tblTempUsageDetail_20' ) start [2024-12-20 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061863', 'tblTempUsageDetail_20' ) end [2024-12-20 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061863', 'tblTempVendorCDR_20' ) start [2024-12-20 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061863', 'tblTempVendorCDR_20' ) end [2024-12-20 09:20:18] Production.INFO: ProcessCDR(1,14061863,1,1,2) [2024-12-20 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061863', 'tblTempUsageDetail_20' ) start [2024-12-20 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061863', 'tblTempUsageDetail_20' ) end [2024-12-20 09:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:20:23] Production.INFO: ==23559== Releasing lock... [2024-12-20 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:20:23] Production.INFO: 37 MB #Memory Used# [2024-12-20 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:21:05 [end_date_ymd] => 2024-12-20 09:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:21:17] Production.INFO: count ==1251 [2024-12-20 09:21:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:21:05 - End Time 2024-12-20 09:21:05 [2024-12-20 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061868', 'tblTempUsageDetail_20' ) start [2024-12-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061868', 'tblTempUsageDetail_20' ) end [2024-12-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061868', 'tblTempVendorCDR_20' ) start [2024-12-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061868', 'tblTempVendorCDR_20' ) end [2024-12-20 09:21:18] Production.INFO: ProcessCDR(1,14061868,1,1,2) [2024-12-20 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061868', 'tblTempUsageDetail_20' ) start [2024-12-20 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061868', 'tblTempUsageDetail_20' ) end [2024-12-20 09:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:21:22] Production.INFO: ==23639== Releasing lock... [2024-12-20 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:21:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-20 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:22:05 [end_date_ymd] => 2024-12-20 09:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:22:17] Production.INFO: count ==1266 [2024-12-20 09:22:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:22:05 - End Time 2024-12-20 09:22:05 [2024-12-20 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061873', 'tblTempUsageDetail_20' ) start [2024-12-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061873', 'tblTempUsageDetail_20' ) end [2024-12-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061873', 'tblTempVendorCDR_20' ) start [2024-12-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061873', 'tblTempVendorCDR_20' ) end [2024-12-20 09:22:18] Production.INFO: ProcessCDR(1,14061873,1,1,2) [2024-12-20 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061873', 'tblTempUsageDetail_20' ) start [2024-12-20 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061873', 'tblTempUsageDetail_20' ) end [2024-12-20 09:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:22:21] Production.INFO: ==23717== Releasing lock... [2024-12-20 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:22:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-20 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:23:05 [end_date_ymd] => 2024-12-20 09:23:05 [RateCDR] => 1 ) [2024-12-20 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:23:05' and `end` < '2024-12-20 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:23:26] Production.INFO: count ==1285 [2024-12-20 09:23:26] Production.ERROR: pbx CDR StartTime 2024-12-20 06:23:05 - End Time 2024-12-20 09:23:05 [2024-12-20 09:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061878', 'tblTempUsageDetail_20' ) start [2024-12-20 09:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061878', 'tblTempUsageDetail_20' ) end [2024-12-20 09:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061878', 'tblTempVendorCDR_20' ) start [2024-12-20 09:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061878', 'tblTempVendorCDR_20' ) end [2024-12-20 09:23:26] Production.INFO: ProcessCDR(1,14061878,1,1,2) [2024-12-20 09:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061878', 'tblTempUsageDetail_20' ) start [2024-12-20 09:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061878', 'tblTempUsageDetail_20' ) end [2024-12-20 09:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:23:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:23:31] Production.INFO: ==23800== Releasing lock... [2024-12-20 09:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:23:31] Production.INFO: 38 MB #Memory Used# [2024-12-20 09:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:24:04 [end_date_ymd] => 2024-12-20 09:24:04 [RateCDR] => 1 ) [2024-12-20 09:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:24:04' and `end` < '2024-12-20 09:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:24:19] Production.INFO: count ==1305 [2024-12-20 09:24:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:24:04 - End Time 2024-12-20 09:24:04 [2024-12-20 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061883', 'tblTempUsageDetail_20' ) start [2024-12-20 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061883', 'tblTempUsageDetail_20' ) end [2024-12-20 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061883', 'tblTempVendorCDR_20' ) start [2024-12-20 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061883', 'tblTempVendorCDR_20' ) end [2024-12-20 09:24:20] Production.INFO: ProcessCDR(1,14061883,1,1,2) [2024-12-20 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061883', 'tblTempUsageDetail_20' ) start [2024-12-20 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061883', 'tblTempUsageDetail_20' ) end [2024-12-20 09:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:24:24] Production.INFO: ==23892== Releasing lock... [2024-12-20 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:24:24] Production.INFO: 37.75 MB #Memory Used# [2024-12-20 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:25:05 [end_date_ymd] => 2024-12-20 09:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:25:18] Production.INFO: count ==1327 [2024-12-20 09:25:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:25:05 - End Time 2024-12-20 09:25:05 [2024-12-20 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061888', 'tblTempUsageDetail_20' ) start [2024-12-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061888', 'tblTempUsageDetail_20' ) end [2024-12-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061888', 'tblTempVendorCDR_20' ) start [2024-12-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061888', 'tblTempVendorCDR_20' ) end [2024-12-20 09:25:18] Production.INFO: ProcessCDR(1,14061888,1,1,2) [2024-12-20 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061888', 'tblTempUsageDetail_20' ) start [2024-12-20 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061888', 'tblTempUsageDetail_20' ) end [2024-12-20 09:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:25:23] Production.INFO: ==23971== Releasing lock... [2024-12-20 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:25:23] Production.INFO: 38 MB #Memory Used# [2024-12-20 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:26:05 [end_date_ymd] => 2024-12-20 09:26:05 [RateCDR] => 1 ) [2024-12-20 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:26:05' and `end` < '2024-12-20 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:26:17] Production.INFO: count ==1337 [2024-12-20 09:26:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:26:05 - End Time 2024-12-20 09:26:05 [2024-12-20 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061893', 'tblTempUsageDetail_20' ) start [2024-12-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061893', 'tblTempUsageDetail_20' ) end [2024-12-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061893', 'tblTempVendorCDR_20' ) start [2024-12-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061893', 'tblTempVendorCDR_20' ) end [2024-12-20 09:26:18] Production.INFO: ProcessCDR(1,14061893,1,1,2) [2024-12-20 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061893', 'tblTempUsageDetail_20' ) start [2024-12-20 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061893', 'tblTempUsageDetail_20' ) end [2024-12-20 09:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:26:22] Production.INFO: ==24055== Releasing lock... [2024-12-20 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:26:22] Production.INFO: 38 MB #Memory Used# [2024-12-20 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:27:04 [end_date_ymd] => 2024-12-20 09:27:04 [RateCDR] => 1 ) [2024-12-20 09: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` >= '2024-12-20 06:27:04' and `end` < '2024-12-20 09: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 ,'') [2024-12-20 09:27:17] Production.INFO: count ==1339 [2024-12-20 09:27:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:27:04 - End Time 2024-12-20 09:27:04 [2024-12-20 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061898', 'tblTempUsageDetail_20' ) start [2024-12-20 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061898', 'tblTempUsageDetail_20' ) end [2024-12-20 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061898', 'tblTempVendorCDR_20' ) start [2024-12-20 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061898', 'tblTempVendorCDR_20' ) end [2024-12-20 09:27:17] Production.INFO: ProcessCDR(1,14061898,1,1,2) [2024-12-20 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061898', 'tblTempUsageDetail_20' ) start [2024-12-20 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061898', 'tblTempUsageDetail_20' ) end [2024-12-20 09:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:27:22] Production.INFO: ==24143== Releasing lock... [2024-12-20 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:27:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-20 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:28:05 [end_date_ymd] => 2024-12-20 09:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:28:20] Production.INFO: count ==1369 [2024-12-20 09:28:21] Production.ERROR: pbx CDR StartTime 2024-12-20 06:28:05 - End Time 2024-12-20 09:28:05 [2024-12-20 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061903', 'tblTempUsageDetail_20' ) start [2024-12-20 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061903', 'tblTempUsageDetail_20' ) end [2024-12-20 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061903', 'tblTempVendorCDR_20' ) start [2024-12-20 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061903', 'tblTempVendorCDR_20' ) end [2024-12-20 09:28:21] Production.INFO: ProcessCDR(1,14061903,1,1,2) [2024-12-20 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061903', 'tblTempUsageDetail_20' ) start [2024-12-20 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061903', 'tblTempUsageDetail_20' ) end [2024-12-20 09:28:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:28:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:28:26] Production.INFO: ==24220== Releasing lock... [2024-12-20 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:28:26] Production.INFO: 38.25 MB #Memory Used# [2024-12-20 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:29:05 [end_date_ymd] => 2024-12-20 09:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:29:20] Production.INFO: count ==1409 [2024-12-20 09:29:20] Production.ERROR: pbx CDR StartTime 2024-12-20 06:29:05 - End Time 2024-12-20 09:29:05 [2024-12-20 09:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061908', 'tblTempUsageDetail_20' ) start [2024-12-20 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061908', 'tblTempUsageDetail_20' ) end [2024-12-20 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061908', 'tblTempVendorCDR_20' ) start [2024-12-20 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061908', 'tblTempVendorCDR_20' ) end [2024-12-20 09:29:20] Production.INFO: ProcessCDR(1,14061908,1,1,2) [2024-12-20 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061908', 'tblTempUsageDetail_20' ) start [2024-12-20 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061908', 'tblTempUsageDetail_20' ) end [2024-12-20 09:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:29:25] Production.INFO: ==24294== Releasing lock... [2024-12-20 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:29:25] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:30:05 [end_date_ymd] => 2024-12-20 09:30:05 [RateCDR] => 1 ) [2024-12-20 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:30:05' and `end` < '2024-12-20 09:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:30:19] Production.INFO: count ==1429 [2024-12-20 09:30:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:30:05 - End Time 2024-12-20 09:30:05 [2024-12-20 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061914', 'tblTempUsageDetail_20' ) start [2024-12-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061914', 'tblTempUsageDetail_20' ) end [2024-12-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061914', 'tblTempVendorCDR_20' ) start [2024-12-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061914', 'tblTempVendorCDR_20' ) end [2024-12-20 09:30:19] Production.INFO: ProcessCDR(1,14061914,1,1,2) [2024-12-20 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061914', 'tblTempUsageDetail_20' ) start [2024-12-20 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061914', 'tblTempUsageDetail_20' ) end [2024-12-20 09:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:30:24] Production.INFO: ==24376== Releasing lock... [2024-12-20 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:30:24] Production.INFO: 38.75 MB #Memory Used# [2024-12-20 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:31:04 [end_date_ymd] => 2024-12-20 09:31:04 [RateCDR] => 1 ) [2024-12-20 09: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` >= '2024-12-20 06:31:04' and `end` < '2024-12-20 09: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 ,'') [2024-12-20 09:31:18] Production.INFO: count ==1507 [2024-12-20 09:31:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:31:04 - End Time 2024-12-20 09:31:04 [2024-12-20 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061919', 'tblTempUsageDetail_20' ) start [2024-12-20 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061919', 'tblTempUsageDetail_20' ) end [2024-12-20 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061919', 'tblTempVendorCDR_20' ) start [2024-12-20 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061919', 'tblTempVendorCDR_20' ) end [2024-12-20 09:31:19] Production.INFO: ProcessCDR(1,14061919,1,1,2) [2024-12-20 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061919', 'tblTempUsageDetail_20' ) start [2024-12-20 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061919', 'tblTempUsageDetail_20' ) end [2024-12-20 09:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:31:24] Production.INFO: ==24466== Releasing lock... [2024-12-20 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:31:24] Production.INFO: 39.25 MB #Memory Used# [2024-12-20 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:32:05 [end_date_ymd] => 2024-12-20 09:32:05 [RateCDR] => 1 ) [2024-12-20 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:32:05' and `end` < '2024-12-20 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:32:20] Production.INFO: count ==1546 [2024-12-20 09:32:21] Production.ERROR: pbx CDR StartTime 2024-12-20 06:32:05 - End Time 2024-12-20 09:32:05 [2024-12-20 09:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061924', 'tblTempUsageDetail_20' ) start [2024-12-20 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061924', 'tblTempUsageDetail_20' ) end [2024-12-20 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061924', 'tblTempVendorCDR_20' ) start [2024-12-20 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061924', 'tblTempVendorCDR_20' ) end [2024-12-20 09:32:21] Production.INFO: ProcessCDR(1,14061924,1,1,2) [2024-12-20 09:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061924', 'tblTempUsageDetail_20' ) start [2024-12-20 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061924', 'tblTempUsageDetail_20' ) end [2024-12-20 09:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:32:24] Production.INFO: ==24546== Releasing lock... [2024-12-20 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:32:24] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:33:05 [end_date_ymd] => 2024-12-20 09:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:33:17] Production.INFO: count ==1547 [2024-12-20 09:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:33:05 - End Time 2024-12-20 09:33:05 [2024-12-20 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061929', 'tblTempUsageDetail_20' ) start [2024-12-20 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061929', 'tblTempUsageDetail_20' ) end [2024-12-20 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061929', 'tblTempVendorCDR_20' ) start [2024-12-20 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061929', 'tblTempVendorCDR_20' ) end [2024-12-20 09:33:17] Production.INFO: ProcessCDR(1,14061929,1,1,2) [2024-12-20 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061929', 'tblTempUsageDetail_20' ) start [2024-12-20 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061929', 'tblTempUsageDetail_20' ) end [2024-12-20 09:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:33:21] Production.INFO: ==24631== Releasing lock... [2024-12-20 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:33:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-20 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:34:05 [end_date_ymd] => 2024-12-20 09:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:34:19] Production.INFO: count ==1556 [2024-12-20 09:34:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:34:05 - End Time 2024-12-20 09:34:05 [2024-12-20 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061934', 'tblTempUsageDetail_20' ) start [2024-12-20 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061934', 'tblTempUsageDetail_20' ) end [2024-12-20 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061934', 'tblTempVendorCDR_20' ) start [2024-12-20 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061934', 'tblTempVendorCDR_20' ) end [2024-12-20 09:34:19] Production.INFO: ProcessCDR(1,14061934,1,1,2) [2024-12-20 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061934', 'tblTempUsageDetail_20' ) start [2024-12-20 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061934', 'tblTempUsageDetail_20' ) end [2024-12-20 09:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:34:24] Production.INFO: ==24755== Releasing lock... [2024-12-20 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:34:24] Production.INFO: 39.75 MB #Memory Used# [2024-12-20 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:35:04 [end_date_ymd] => 2024-12-20 09:35:04 [RateCDR] => 1 ) [2024-12-20 09: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` >= '2024-12-20 06:35:04' and `end` < '2024-12-20 09: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 ,'') [2024-12-20 09:35:17] Production.INFO: count ==1576 [2024-12-20 09:35:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:35:04 - End Time 2024-12-20 09:35:04 [2024-12-20 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061939', 'tblTempUsageDetail_20' ) start [2024-12-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061939', 'tblTempUsageDetail_20' ) end [2024-12-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061939', 'tblTempVendorCDR_20' ) start [2024-12-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061939', 'tblTempVendorCDR_20' ) end [2024-12-20 09:35:18] Production.INFO: ProcessCDR(1,14061939,1,1,2) [2024-12-20 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061939', 'tblTempUsageDetail_20' ) start [2024-12-20 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061939', 'tblTempUsageDetail_20' ) end [2024-12-20 09:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:35:23] Production.INFO: ==24834== Releasing lock... [2024-12-20 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:35:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:36:05 [end_date_ymd] => 2024-12-20 09:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:36:18] Production.INFO: count ==1582 [2024-12-20 09:36:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:36:05 - End Time 2024-12-20 09:36:05 [2024-12-20 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061944', 'tblTempUsageDetail_20' ) start [2024-12-20 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061944', 'tblTempUsageDetail_20' ) end [2024-12-20 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061944', 'tblTempVendorCDR_20' ) start [2024-12-20 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061944', 'tblTempVendorCDR_20' ) end [2024-12-20 09:36:19] Production.INFO: ProcessCDR(1,14061944,1,1,2) [2024-12-20 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061944', 'tblTempUsageDetail_20' ) start [2024-12-20 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061944', 'tblTempUsageDetail_20' ) end [2024-12-20 09:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:36:23] Production.INFO: ==24915== Releasing lock... [2024-12-20 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:36:23] Production.INFO: 40 MB #Memory Used# [2024-12-20 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:37:05 [end_date_ymd] => 2024-12-20 09:37:05 [RateCDR] => 1 ) [2024-12-20 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:37:05' and `end` < '2024-12-20 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:37:20] Production.INFO: count ==1586 [2024-12-20 09:37:21] Production.ERROR: pbx CDR StartTime 2024-12-20 06:37:05 - End Time 2024-12-20 09:37:05 [2024-12-20 09:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061949', 'tblTempUsageDetail_20' ) start [2024-12-20 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061949', 'tblTempUsageDetail_20' ) end [2024-12-20 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061949', 'tblTempVendorCDR_20' ) start [2024-12-20 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061949', 'tblTempVendorCDR_20' ) end [2024-12-20 09:37:21] Production.INFO: ProcessCDR(1,14061949,1,1,2) [2024-12-20 09:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061949', 'tblTempUsageDetail_20' ) start [2024-12-20 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061949', 'tblTempUsageDetail_20' ) end [2024-12-20 09:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:37:24] Production.INFO: ==24989== Releasing lock... [2024-12-20 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:37:24] Production.INFO: 40 MB #Memory Used# [2024-12-20 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:38:05 [end_date_ymd] => 2024-12-20 09:38:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:38:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:38:17] Production.INFO: count ==1597 [2024-12-20 09:38:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:38:05 - End Time 2024-12-20 09:38:05 [2024-12-20 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061954', 'tblTempUsageDetail_20' ) start [2024-12-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061954', 'tblTempUsageDetail_20' ) end [2024-12-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061954', 'tblTempVendorCDR_20' ) start [2024-12-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061954', 'tblTempVendorCDR_20' ) end [2024-12-20 09:38:18] Production.INFO: ProcessCDR(1,14061954,1,1,2) [2024-12-20 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061954', 'tblTempUsageDetail_20' ) start [2024-12-20 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061954', 'tblTempUsageDetail_20' ) end [2024-12-20 09:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:38:22] Production.INFO: ==25079== Releasing lock... [2024-12-20 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:38:22] Production.INFO: 40 MB #Memory Used# [2024-12-20 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:39:05 [end_date_ymd] => 2024-12-20 09:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:39:18] Production.INFO: count ==1598 [2024-12-20 09:39:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:39:05 - End Time 2024-12-20 09:39:05 [2024-12-20 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061959', 'tblTempUsageDetail_20' ) start [2024-12-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061959', 'tblTempUsageDetail_20' ) end [2024-12-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061959', 'tblTempVendorCDR_20' ) start [2024-12-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061959', 'tblTempVendorCDR_20' ) end [2024-12-20 09:39:18] Production.INFO: ProcessCDR(1,14061959,1,1,2) [2024-12-20 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061959', 'tblTempUsageDetail_20' ) start [2024-12-20 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061959', 'tblTempUsageDetail_20' ) end [2024-12-20 09:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:39:23] Production.INFO: ==25156== Releasing lock... [2024-12-20 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:39:23] Production.INFO: 40 MB #Memory Used# [2024-12-20 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:40:05 [end_date_ymd] => 2024-12-20 09:40:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:40:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:40:19] Production.INFO: count ==1640 [2024-12-20 09:40:20] Production.ERROR: pbx CDR StartTime 2024-12-20 06:40:05 - End Time 2024-12-20 09:40:05 [2024-12-20 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061965', 'tblTempUsageDetail_20' ) start [2024-12-20 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061965', 'tblTempUsageDetail_20' ) end [2024-12-20 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061965', 'tblTempVendorCDR_20' ) start [2024-12-20 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061965', 'tblTempVendorCDR_20' ) end [2024-12-20 09:40:20] Production.INFO: ProcessCDR(1,14061965,1,1,2) [2024-12-20 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061965', 'tblTempUsageDetail_20' ) start [2024-12-20 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061965', 'tblTempUsageDetail_20' ) end [2024-12-20 09:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:40:24] Production.INFO: ==25243== Releasing lock... [2024-12-20 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:40:24] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:41:05 [end_date_ymd] => 2024-12-20 09:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:41:17] Production.INFO: count ==1699 [2024-12-20 09:41:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:41:05 - End Time 2024-12-20 09:41:05 [2024-12-20 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061970', 'tblTempUsageDetail_20' ) start [2024-12-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061970', 'tblTempUsageDetail_20' ) end [2024-12-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061970', 'tblTempVendorCDR_20' ) start [2024-12-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061970', 'tblTempVendorCDR_20' ) end [2024-12-20 09:41:18] Production.INFO: ProcessCDR(1,14061970,1,1,2) [2024-12-20 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061970', 'tblTempUsageDetail_20' ) start [2024-12-20 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061970', 'tblTempUsageDetail_20' ) end [2024-12-20 09:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:41:23] Production.INFO: ==25323== Releasing lock... [2024-12-20 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:41:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-20 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:42:05 [end_date_ymd] => 2024-12-20 09:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:42:19] Production.INFO: count ==1712 [2024-12-20 09:42:20] Production.ERROR: pbx CDR StartTime 2024-12-20 06:42:05 - End Time 2024-12-20 09:42:05 [2024-12-20 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061975', 'tblTempUsageDetail_20' ) start [2024-12-20 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061975', 'tblTempUsageDetail_20' ) end [2024-12-20 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061975', 'tblTempVendorCDR_20' ) start [2024-12-20 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061975', 'tblTempVendorCDR_20' ) end [2024-12-20 09:42:20] Production.INFO: ProcessCDR(1,14061975,1,1,2) [2024-12-20 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061975', 'tblTempUsageDetail_20' ) start [2024-12-20 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061975', 'tblTempUsageDetail_20' ) end [2024-12-20 09:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:42:25] Production.INFO: ==25406== Releasing lock... [2024-12-20 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:42:25] Production.INFO: 41 MB #Memory Used# [2024-12-20 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:43:05 [end_date_ymd] => 2024-12-20 09:43:05 [RateCDR] => 1 ) [2024-12-20 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:43:05' and `end` < '2024-12-20 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:43:21] Production.INFO: count ==1719 [2024-12-20 09:43:22] Production.ERROR: pbx CDR StartTime 2024-12-20 06:43:05 - End Time 2024-12-20 09:43:05 [2024-12-20 09:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061980', 'tblTempUsageDetail_20' ) start [2024-12-20 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061980', 'tblTempUsageDetail_20' ) end [2024-12-20 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061980', 'tblTempVendorCDR_20' ) start [2024-12-20 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061980', 'tblTempVendorCDR_20' ) end [2024-12-20 09:43:22] Production.INFO: ProcessCDR(1,14061980,1,1,2) [2024-12-20 09:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061980', 'tblTempUsageDetail_20' ) start [2024-12-20 09:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061980', 'tblTempUsageDetail_20' ) end [2024-12-20 09:43:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:43:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:43:27] Production.INFO: ==25489== Releasing lock... [2024-12-20 09:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:43:27] Production.INFO: 41 MB #Memory Used# [2024-12-20 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:44:05 [end_date_ymd] => 2024-12-20 09:44:05 [RateCDR] => 1 ) [2024-12-20 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:44:05' and `end` < '2024-12-20 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:44:22] Production.INFO: count ==1745 [2024-12-20 09:44:23] Production.ERROR: pbx CDR StartTime 2024-12-20 06:44:05 - End Time 2024-12-20 09:44:05 [2024-12-20 09:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061985', 'tblTempUsageDetail_20' ) start [2024-12-20 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061985', 'tblTempUsageDetail_20' ) end [2024-12-20 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061985', 'tblTempVendorCDR_20' ) start [2024-12-20 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061985', 'tblTempVendorCDR_20' ) end [2024-12-20 09:44:23] Production.INFO: ProcessCDR(1,14061985,1,1,2) [2024-12-20 09:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061985', 'tblTempUsageDetail_20' ) start [2024-12-20 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061985', 'tblTempUsageDetail_20' ) end [2024-12-20 09:44:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:44:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:44:27] Production.INFO: ==25563== Releasing lock... [2024-12-20 09:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:44:27] Production.INFO: 41.25 MB #Memory Used# [2024-12-20 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:45:05 [end_date_ymd] => 2024-12-20 09:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:45:21] Production.INFO: count ==1753 [2024-12-20 09:45:22] Production.ERROR: pbx CDR StartTime 2024-12-20 06:45:05 - End Time 2024-12-20 09:45:05 [2024-12-20 09:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061990', 'tblTempUsageDetail_20' ) start [2024-12-20 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061990', 'tblTempUsageDetail_20' ) end [2024-12-20 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061990', 'tblTempVendorCDR_20' ) start [2024-12-20 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061990', 'tblTempVendorCDR_20' ) end [2024-12-20 09:45:22] Production.INFO: ProcessCDR(1,14061990,1,1,2) [2024-12-20 09:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061990', 'tblTempUsageDetail_20' ) start [2024-12-20 09:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061990', 'tblTempUsageDetail_20' ) end [2024-12-20 09:45:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:45:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:45:27] Production.INFO: ==25641== Releasing lock... [2024-12-20 09:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:45:27] Production.INFO: 41.5 MB #Memory Used# [2024-12-20 09:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:46:04 [end_date_ymd] => 2024-12-20 09:46:04 [RateCDR] => 1 ) [2024-12-20 09: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` >= '2024-12-20 06:46:04' and `end` < '2024-12-20 09: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 ,'') [2024-12-20 09:46:18] Production.INFO: count ==1766 [2024-12-20 09:46:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:46:04 - End Time 2024-12-20 09:46:04 [2024-12-20 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061995', 'tblTempUsageDetail_20' ) start [2024-12-20 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14061995', 'tblTempUsageDetail_20' ) end [2024-12-20 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061995', 'tblTempVendorCDR_20' ) start [2024-12-20 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14061995', 'tblTempVendorCDR_20' ) end [2024-12-20 09:46:19] Production.INFO: ProcessCDR(1,14061995,1,1,2) [2024-12-20 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14061995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14061995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14061995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14061995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061995', 'tblTempUsageDetail_20' ) start [2024-12-20 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14061995', 'tblTempUsageDetail_20' ) end [2024-12-20 09:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:46:23] Production.INFO: ==25725== Releasing lock... [2024-12-20 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:46:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-20 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:47:05 [end_date_ymd] => 2024-12-20 09:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:47:17] Production.INFO: count ==1779 [2024-12-20 09:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:47:05 - End Time 2024-12-20 09:47:05 [2024-12-20 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062000', 'tblTempUsageDetail_20' ) start [2024-12-20 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062000', 'tblTempUsageDetail_20' ) end [2024-12-20 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062000', 'tblTempVendorCDR_20' ) start [2024-12-20 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062000', 'tblTempVendorCDR_20' ) end [2024-12-20 09:47:18] Production.INFO: ProcessCDR(1,14062000,1,1,2) [2024-12-20 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062000', 'tblTempUsageDetail_20' ) start [2024-12-20 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062000', 'tblTempUsageDetail_20' ) end [2024-12-20 09:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:47:22] Production.INFO: ==25806== Releasing lock... [2024-12-20 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:47:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-20 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:48:04 [end_date_ymd] => 2024-12-20 09:48:04 [RateCDR] => 1 ) [2024-12-20 09:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:48:04' and `end` < '2024-12-20 09:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:48:17] Production.INFO: count ==1802 [2024-12-20 09:48:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:48:04 - End Time 2024-12-20 09:48:04 [2024-12-20 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062005', 'tblTempUsageDetail_20' ) start [2024-12-20 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062005', 'tblTempUsageDetail_20' ) end [2024-12-20 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062005', 'tblTempVendorCDR_20' ) start [2024-12-20 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062005', 'tblTempVendorCDR_20' ) end [2024-12-20 09:48:17] Production.INFO: ProcessCDR(1,14062005,1,1,2) [2024-12-20 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062005', 'tblTempUsageDetail_20' ) start [2024-12-20 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062005', 'tblTempUsageDetail_20' ) end [2024-12-20 09:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:48:22] Production.INFO: ==25881== Releasing lock... [2024-12-20 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:48:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-20 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:49:05 [end_date_ymd] => 2024-12-20 09:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:49:17] Production.INFO: count ==1809 [2024-12-20 09:49:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:49:05 - End Time 2024-12-20 09:49:05 [2024-12-20 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062010', 'tblTempUsageDetail_20' ) start [2024-12-20 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062010', 'tblTempUsageDetail_20' ) end [2024-12-20 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062010', 'tblTempVendorCDR_20' ) start [2024-12-20 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062010', 'tblTempVendorCDR_20' ) end [2024-12-20 09:49:18] Production.INFO: ProcessCDR(1,14062010,1,1,2) [2024-12-20 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062010', 'tblTempUsageDetail_20' ) start [2024-12-20 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062010', 'tblTempUsageDetail_20' ) end [2024-12-20 09:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:49:22] Production.INFO: ==25958== Releasing lock... [2024-12-20 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:49:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-20 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:50:05 [end_date_ymd] => 2024-12-20 09:50:05 [RateCDR] => 1 ) [2024-12-20 09: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` >= '2024-12-20 06:50:05' and `end` < '2024-12-20 09: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 ,'') [2024-12-20 09:50:18] Production.INFO: count ==1815 [2024-12-20 09:50:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:50:05 - End Time 2024-12-20 09:50:05 [2024-12-20 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062015', 'tblTempUsageDetail_20' ) start [2024-12-20 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062015', 'tblTempUsageDetail_20' ) end [2024-12-20 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062015', 'tblTempVendorCDR_20' ) start [2024-12-20 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062015', 'tblTempVendorCDR_20' ) end [2024-12-20 09:50:18] Production.INFO: ProcessCDR(1,14062015,1,1,2) [2024-12-20 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062015', 'tblTempUsageDetail_20' ) start [2024-12-20 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062015', 'tblTempUsageDetail_20' ) end [2024-12-20 09:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:50:23] Production.INFO: ==26073== Releasing lock... [2024-12-20 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:50:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-20 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:51:05 [end_date_ymd] => 2024-12-20 09:51:05 [RateCDR] => 1 ) [2024-12-20 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:51:05' and `end` < '2024-12-20 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:51:18] Production.INFO: count ==1875 [2024-12-20 09:51:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:51:05 - End Time 2024-12-20 09:51:05 [2024-12-20 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062021', 'tblTempUsageDetail_20' ) start [2024-12-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062021', 'tblTempUsageDetail_20' ) end [2024-12-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062021', 'tblTempVendorCDR_20' ) start [2024-12-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062021', 'tblTempVendorCDR_20' ) end [2024-12-20 09:51:19] Production.INFO: ProcessCDR(1,14062021,1,1,2) [2024-12-20 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062021', 'tblTempUsageDetail_20' ) start [2024-12-20 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062021', 'tblTempUsageDetail_20' ) end [2024-12-20 09:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:51:23] Production.INFO: ==26160== Releasing lock... [2024-12-20 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:51:23] Production.INFO: 42 MB #Memory Used# [2024-12-20 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:52:05 [end_date_ymd] => 2024-12-20 09:52:05 [RateCDR] => 1 ) [2024-12-20 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:52:05' and `end` < '2024-12-20 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:52:17] Production.INFO: count ==1874 [2024-12-20 09:52:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:52:05 - End Time 2024-12-20 09:52:05 [2024-12-20 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062026', 'tblTempUsageDetail_20' ) start [2024-12-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062026', 'tblTempUsageDetail_20' ) end [2024-12-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062026', 'tblTempVendorCDR_20' ) start [2024-12-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062026', 'tblTempVendorCDR_20' ) end [2024-12-20 09:52:18] Production.INFO: ProcessCDR(1,14062026,1,1,2) [2024-12-20 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062026', 'tblTempUsageDetail_20' ) start [2024-12-20 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062026', 'tblTempUsageDetail_20' ) end [2024-12-20 09:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:52:21] Production.INFO: ==26237== Releasing lock... [2024-12-20 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:52:21] Production.INFO: 42 MB #Memory Used# [2024-12-20 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:53:04 [end_date_ymd] => 2024-12-20 09:53:04 [RateCDR] => 1 ) [2024-12-20 09:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:53:04' and `end` < '2024-12-20 09:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:53:17] Production.INFO: count ==1879 [2024-12-20 09:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 06:53:04 - End Time 2024-12-20 09:53:04 [2024-12-20 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062031', 'tblTempUsageDetail_20' ) start [2024-12-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062031', 'tblTempUsageDetail_20' ) end [2024-12-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062031', 'tblTempVendorCDR_20' ) start [2024-12-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062031', 'tblTempVendorCDR_20' ) end [2024-12-20 09:53:18] Production.INFO: ProcessCDR(1,14062031,1,1,2) [2024-12-20 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062031', 'tblTempUsageDetail_20' ) start [2024-12-20 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062031', 'tblTempUsageDetail_20' ) end [2024-12-20 09:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:53:22] Production.INFO: ==26319== Releasing lock... [2024-12-20 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:53:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-20 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:54:04 [end_date_ymd] => 2024-12-20 09:54:04 [RateCDR] => 1 ) [2024-12-20 09:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:54:04' and `end` < '2024-12-20 09:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:54:17] Production.INFO: count ==1888 [2024-12-20 09:54:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:54:04 - End Time 2024-12-20 09:54:04 [2024-12-20 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062036', 'tblTempUsageDetail_20' ) start [2024-12-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062036', 'tblTempUsageDetail_20' ) end [2024-12-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062036', 'tblTempVendorCDR_20' ) start [2024-12-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062036', 'tblTempVendorCDR_20' ) end [2024-12-20 09:54:18] Production.INFO: ProcessCDR(1,14062036,1,1,2) [2024-12-20 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062036', 'tblTempUsageDetail_20' ) start [2024-12-20 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062036', 'tblTempUsageDetail_20' ) end [2024-12-20 09:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:54:23] Production.INFO: ==26397== Releasing lock... [2024-12-20 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:54:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-20 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:55:04 [end_date_ymd] => 2024-12-20 09:55:04 [RateCDR] => 1 ) [2024-12-20 09: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` >= '2024-12-20 06:55:04' and `end` < '2024-12-20 09: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 ,'') [2024-12-20 09:55:18] Production.INFO: count ==1904 [2024-12-20 09:55:19] Production.ERROR: pbx CDR StartTime 2024-12-20 06:55:04 - End Time 2024-12-20 09:55:04 [2024-12-20 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062041', 'tblTempUsageDetail_20' ) start [2024-12-20 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062041', 'tblTempUsageDetail_20' ) end [2024-12-20 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062041', 'tblTempVendorCDR_20' ) start [2024-12-20 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062041', 'tblTempVendorCDR_20' ) end [2024-12-20 09:55:19] Production.INFO: ProcessCDR(1,14062041,1,1,2) [2024-12-20 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062041', 'tblTempUsageDetail_20' ) start [2024-12-20 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062041', 'tblTempUsageDetail_20' ) end [2024-12-20 09:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:55:24] Production.INFO: ==26476== Releasing lock... [2024-12-20 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:55:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-20 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:56:05 [end_date_ymd] => 2024-12-20 09:56:05 [RateCDR] => 1 ) [2024-12-20 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:56:05' and `end` < '2024-12-20 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:56:21] Production.INFO: count ==1931 [2024-12-20 09:56:22] Production.ERROR: pbx CDR StartTime 2024-12-20 06:56:05 - End Time 2024-12-20 09:56:05 [2024-12-20 09:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062046', 'tblTempUsageDetail_20' ) start [2024-12-20 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062046', 'tblTempUsageDetail_20' ) end [2024-12-20 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062046', 'tblTempVendorCDR_20' ) start [2024-12-20 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062046', 'tblTempVendorCDR_20' ) end [2024-12-20 09:56:22] Production.INFO: ProcessCDR(1,14062046,1,1,2) [2024-12-20 09:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062046', 'tblTempUsageDetail_20' ) start [2024-12-20 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062046', 'tblTempUsageDetail_20' ) end [2024-12-20 09:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:56:25] Production.INFO: ==26557== Releasing lock... [2024-12-20 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:56:25] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:57:05 [end_date_ymd] => 2024-12-20 09:57:05 [RateCDR] => 1 ) [2024-12-20 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:57:05' and `end` < '2024-12-20 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:57:17] Production.INFO: count ==1944 [2024-12-20 09:57:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:57:05 - End Time 2024-12-20 09:57:05 [2024-12-20 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062051', 'tblTempUsageDetail_20' ) start [2024-12-20 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062051', 'tblTempUsageDetail_20' ) end [2024-12-20 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062051', 'tblTempVendorCDR_20' ) start [2024-12-20 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062051', 'tblTempVendorCDR_20' ) end [2024-12-20 09:57:18] Production.INFO: ProcessCDR(1,14062051,1,1,2) [2024-12-20 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062051', 'tblTempUsageDetail_20' ) start [2024-12-20 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062051', 'tblTempUsageDetail_20' ) end [2024-12-20 09:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:57:23] Production.INFO: ==26639== Releasing lock... [2024-12-20 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:57:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 09:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:58:04 [end_date_ymd] => 2024-12-20 09:58:04 [RateCDR] => 1 ) [2024-12-20 09:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 06:58:04' and `end` < '2024-12-20 09:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 09:58:17] Production.INFO: count ==1960 [2024-12-20 09:58:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:58:04 - End Time 2024-12-20 09:58:04 [2024-12-20 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062056', 'tblTempUsageDetail_20' ) start [2024-12-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062056', 'tblTempUsageDetail_20' ) end [2024-12-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062056', 'tblTempVendorCDR_20' ) start [2024-12-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062056', 'tblTempVendorCDR_20' ) end [2024-12-20 09:58:18] Production.INFO: ProcessCDR(1,14062056,1,1,2) [2024-12-20 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062056', 'tblTempUsageDetail_20' ) start [2024-12-20 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062056', 'tblTempUsageDetail_20' ) end [2024-12-20 09:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:58:22] Production.INFO: ==26747== Releasing lock... [2024-12-20 09:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:58:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 06:59:05 [end_date_ymd] => 2024-12-20 09:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 06:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 09:59:17] Production.INFO: count ==1968 [2024-12-20 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-20 06:59:05 - End Time 2024-12-20 09:59:05 [2024-12-20 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062061', 'tblTempUsageDetail_20' ) start [2024-12-20 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062061', 'tblTempUsageDetail_20' ) end [2024-12-20 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062061', 'tblTempVendorCDR_20' ) start [2024-12-20 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062061', 'tblTempVendorCDR_20' ) end [2024-12-20 09:59:18] Production.INFO: ProcessCDR(1,14062061,1,1,2) [2024-12-20 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062061', 'tblTempUsageDetail_20' ) start [2024-12-20 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062061', 'tblTempUsageDetail_20' ) end [2024-12-20 09:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 09:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 09:59:23] Production.INFO: ==26862== Releasing lock... [2024-12-20 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 09:59:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:00:05 [end_date_ymd] => 2024-12-20 10:00:05 [RateCDR] => 1 ) [2024-12-20 10:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:00:05' and `end` < '2024-12-20 10:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:00:18] Production.INFO: count ==1999 [2024-12-20 10:00:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:00:05 - End Time 2024-12-20 10:00:05 [2024-12-20 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062067', 'tblTempUsageDetail_20' ) start [2024-12-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062067', 'tblTempUsageDetail_20' ) end [2024-12-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062067', 'tblTempVendorCDR_20' ) start [2024-12-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062067', 'tblTempVendorCDR_20' ) end [2024-12-20 10:00:19] Production.INFO: ProcessCDR(1,14062067,1,1,2) [2024-12-20 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062067', 'tblTempUsageDetail_20' ) start [2024-12-20 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062067', 'tblTempUsageDetail_20' ) end [2024-12-20 10:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:00:23] Production.INFO: ==26966== Releasing lock... [2024-12-20 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:00:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-20 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:01:05 [end_date_ymd] => 2024-12-20 10:01:05 [RateCDR] => 1 ) [2024-12-20 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:01:05' and `end` < '2024-12-20 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:01:25] Production.INFO: count ==2084 [2024-12-20 10:01:25] Production.ERROR: pbx CDR StartTime 2024-12-20 07:01:05 - End Time 2024-12-20 10:01:05 [2024-12-20 10:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062072', 'tblTempUsageDetail_20' ) start [2024-12-20 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062072', 'tblTempUsageDetail_20' ) end [2024-12-20 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062072', 'tblTempVendorCDR_20' ) start [2024-12-20 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062072', 'tblTempVendorCDR_20' ) end [2024-12-20 10:01:25] Production.INFO: ProcessCDR(1,14062072,1,1,2) [2024-12-20 10:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062072', 'tblTempUsageDetail_20' ) start [2024-12-20 10:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062072', 'tblTempUsageDetail_20' ) end [2024-12-20 10:01:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:01:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:01:30] Production.INFO: ==27064== Releasing lock... [2024-12-20 10:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:01:30] Production.INFO: 43.75 MB #Memory Used# [2024-12-20 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:02:04 [end_date_ymd] => 2024-12-20 10:02:04 [RateCDR] => 1 ) [2024-12-20 10:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:02:04' and `end` < '2024-12-20 10:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:02:20] Production.INFO: count ==2100 [2024-12-20 10:02:21] Production.ERROR: pbx CDR StartTime 2024-12-20 07:02:04 - End Time 2024-12-20 10:02:04 [2024-12-20 10:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062077', 'tblTempUsageDetail_20' ) start [2024-12-20 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062077', 'tblTempUsageDetail_20' ) end [2024-12-20 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062077', 'tblTempVendorCDR_20' ) start [2024-12-20 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062077', 'tblTempVendorCDR_20' ) end [2024-12-20 10:02:21] Production.INFO: ProcessCDR(1,14062077,1,1,2) [2024-12-20 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062077', 'tblTempUsageDetail_20' ) start [2024-12-20 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062077', 'tblTempUsageDetail_20' ) end [2024-12-20 10:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:02:26] Production.INFO: ==27146== Releasing lock... [2024-12-20 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:02:26] Production.INFO: 43.75 MB #Memory Used# [2024-12-20 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:03:05 [end_date_ymd] => 2024-12-20 10:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:03:20] Production.INFO: count ==2104 [2024-12-20 10:03:20] Production.ERROR: pbx CDR StartTime 2024-12-20 07:03:05 - End Time 2024-12-20 10:03:05 [2024-12-20 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062082', 'tblTempUsageDetail_20' ) start [2024-12-20 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062082', 'tblTempUsageDetail_20' ) end [2024-12-20 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062082', 'tblTempVendorCDR_20' ) start [2024-12-20 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062082', 'tblTempVendorCDR_20' ) end [2024-12-20 10:03:20] Production.INFO: ProcessCDR(1,14062082,1,1,2) [2024-12-20 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062082', 'tblTempUsageDetail_20' ) start [2024-12-20 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062082', 'tblTempUsageDetail_20' ) end [2024-12-20 10:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:03:25] Production.INFO: ==27221== Releasing lock... [2024-12-20 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:03:25] Production.INFO: 44 MB #Memory Used# [2024-12-20 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:04:05 [end_date_ymd] => 2024-12-20 10:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:04:17] Production.INFO: count ==2113 [2024-12-20 10:04:18] Production.ERROR: pbx CDR StartTime 2024-12-20 07:04:05 - End Time 2024-12-20 10:04:05 [2024-12-20 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062087', 'tblTempUsageDetail_20' ) start [2024-12-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062087', 'tblTempUsageDetail_20' ) end [2024-12-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062087', 'tblTempVendorCDR_20' ) start [2024-12-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062087', 'tblTempVendorCDR_20' ) end [2024-12-20 10:04:18] Production.INFO: ProcessCDR(1,14062087,1,1,2) [2024-12-20 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062087', 'tblTempUsageDetail_20' ) start [2024-12-20 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062087', 'tblTempUsageDetail_20' ) end [2024-12-20 10:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:04:23] Production.INFO: ==27301== Releasing lock... [2024-12-20 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:04:23] Production.INFO: 44 MB #Memory Used# [2024-12-20 10:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:05:04 [end_date_ymd] => 2024-12-20 10:05:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:05:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:05:24] Production.INFO: count ==2141 [2024-12-20 10:05:25] Production.ERROR: pbx CDR StartTime 2024-12-20 07:05:04 - End Time 2024-12-20 10:05:04 [2024-12-20 10:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062092', 'tblTempUsageDetail_20' ) start [2024-12-20 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062092', 'tblTempUsageDetail_20' ) end [2024-12-20 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062092', 'tblTempVendorCDR_20' ) start [2024-12-20 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062092', 'tblTempVendorCDR_20' ) end [2024-12-20 10:05:25] Production.INFO: ProcessCDR(1,14062092,1,1,2) [2024-12-20 10:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062092', 'tblTempUsageDetail_20' ) start [2024-12-20 10:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062092', 'tblTempUsageDetail_20' ) end [2024-12-20 10:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:05:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:05:30] Production.INFO: ==27375== Releasing lock... [2024-12-20 10:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:05:30] Production.INFO: 44.25 MB #Memory Used# [2024-12-20 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:06:05 [end_date_ymd] => 2024-12-20 10:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:06:18] Production.INFO: count ==2155 [2024-12-20 10:06:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:06:05 - End Time 2024-12-20 10:06:05 [2024-12-20 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062097', 'tblTempUsageDetail_20' ) start [2024-12-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062097', 'tblTempUsageDetail_20' ) end [2024-12-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062097', 'tblTempVendorCDR_20' ) start [2024-12-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062097', 'tblTempVendorCDR_20' ) end [2024-12-20 10:06:19] Production.INFO: ProcessCDR(1,14062097,1,1,2) [2024-12-20 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062097', 'tblTempUsageDetail_20' ) start [2024-12-20 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062097', 'tblTempUsageDetail_20' ) end [2024-12-20 10:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:06:23] Production.INFO: ==27496== Releasing lock... [2024-12-20 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:06:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-20 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:07:04 [end_date_ymd] => 2024-12-20 10:07:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:07:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:07:19] Production.INFO: count ==2168 [2024-12-20 10:07:20] Production.ERROR: pbx CDR StartTime 2024-12-20 07:07:04 - End Time 2024-12-20 10:07:04 [2024-12-20 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062102', 'tblTempUsageDetail_20' ) start [2024-12-20 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062102', 'tblTempUsageDetail_20' ) end [2024-12-20 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062102', 'tblTempVendorCDR_20' ) start [2024-12-20 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062102', 'tblTempVendorCDR_20' ) end [2024-12-20 10:07:20] Production.INFO: ProcessCDR(1,14062102,1,1,2) [2024-12-20 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062102', 'tblTempUsageDetail_20' ) start [2024-12-20 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062102', 'tblTempUsageDetail_20' ) end [2024-12-20 10:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:07:25] Production.INFO: ==27574== Releasing lock... [2024-12-20 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:07:25] Production.INFO: 44.25 MB #Memory Used# [2024-12-20 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:08:04 [end_date_ymd] => 2024-12-20 10:08:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:08:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:08:17] Production.INFO: count ==2175 [2024-12-20 10:08:18] Production.ERROR: pbx CDR StartTime 2024-12-20 07:08:04 - End Time 2024-12-20 10:08:04 [2024-12-20 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062107', 'tblTempUsageDetail_20' ) start [2024-12-20 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062107', 'tblTempUsageDetail_20' ) end [2024-12-20 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062107', 'tblTempVendorCDR_20' ) start [2024-12-20 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062107', 'tblTempVendorCDR_20' ) end [2024-12-20 10:08:18] Production.INFO: ProcessCDR(1,14062107,1,1,2) [2024-12-20 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062107', 'tblTempUsageDetail_20' ) start [2024-12-20 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062107', 'tblTempUsageDetail_20' ) end [2024-12-20 10:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:08:22] Production.INFO: ==27660== Releasing lock... [2024-12-20 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:08:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-20 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:09:05 [end_date_ymd] => 2024-12-20 10:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:09:17] Production.INFO: count ==2188 [2024-12-20 10:09:18] Production.ERROR: pbx CDR StartTime 2024-12-20 07:09:05 - End Time 2024-12-20 10:09:05 [2024-12-20 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062112', 'tblTempUsageDetail_20' ) start [2024-12-20 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062112', 'tblTempUsageDetail_20' ) end [2024-12-20 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062112', 'tblTempVendorCDR_20' ) start [2024-12-20 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062112', 'tblTempVendorCDR_20' ) end [2024-12-20 10:09:18] Production.INFO: ProcessCDR(1,14062112,1,1,2) [2024-12-20 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062112', 'tblTempUsageDetail_20' ) start [2024-12-20 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062112', 'tblTempUsageDetail_20' ) end [2024-12-20 10:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:09:23] Production.INFO: ==27734== Releasing lock... [2024-12-20 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:09:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-20 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:10:05 [end_date_ymd] => 2024-12-20 10:10:05 [RateCDR] => 1 ) [2024-12-20 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:10:05' and `end` < '2024-12-20 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:10:27] Production.INFO: count ==2203 [2024-12-20 10:10:28] Production.ERROR: pbx CDR StartTime 2024-12-20 07:10:05 - End Time 2024-12-20 10:10:05 [2024-12-20 10:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062118', 'tblTempUsageDetail_20' ) start [2024-12-20 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062118', 'tblTempUsageDetail_20' ) end [2024-12-20 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062118', 'tblTempVendorCDR_20' ) start [2024-12-20 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062118', 'tblTempVendorCDR_20' ) end [2024-12-20 10:10:28] Production.INFO: ProcessCDR(1,14062118,1,1,2) [2024-12-20 10:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062118', 'tblTempUsageDetail_20' ) start [2024-12-20 10:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062118', 'tblTempUsageDetail_20' ) end [2024-12-20 10:10:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:10:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:10:33] Production.INFO: ==27811== Releasing lock... [2024-12-20 10:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:10:33] Production.INFO: 44.5 MB #Memory Used# [2024-12-20 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:11:05 [end_date_ymd] => 2024-12-20 10:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:11:24] Production.INFO: count ==2288 [2024-12-20 10:11:25] Production.ERROR: pbx CDR StartTime 2024-12-20 07:11:05 - End Time 2024-12-20 10:11:05 [2024-12-20 10:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062123', 'tblTempUsageDetail_20' ) start [2024-12-20 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062123', 'tblTempUsageDetail_20' ) end [2024-12-20 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062123', 'tblTempVendorCDR_20' ) start [2024-12-20 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062123', 'tblTempVendorCDR_20' ) end [2024-12-20 10:11:25] Production.INFO: ProcessCDR(1,14062123,1,1,2) [2024-12-20 10:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062123', 'tblTempUsageDetail_20' ) start [2024-12-20 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062123', 'tblTempUsageDetail_20' ) end [2024-12-20 10:11:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:11:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:11:30] Production.INFO: ==27894== Releasing lock... [2024-12-20 10:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:11:30] Production.INFO: 45.5 MB #Memory Used# [2024-12-20 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:12:04 [end_date_ymd] => 2024-12-20 10:12:04 [RateCDR] => 1 ) [2024-12-20 10:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:12:04' and `end` < '2024-12-20 10:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:12:23] Production.INFO: count ==2311 [2024-12-20 10:12:24] Production.ERROR: pbx CDR StartTime 2024-12-20 07:12:04 - End Time 2024-12-20 10:12:04 [2024-12-20 10:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062128', 'tblTempUsageDetail_20' ) start [2024-12-20 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062128', 'tblTempUsageDetail_20' ) end [2024-12-20 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062128', 'tblTempVendorCDR_20' ) start [2024-12-20 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062128', 'tblTempVendorCDR_20' ) end [2024-12-20 10:12:24] Production.INFO: ProcessCDR(1,14062128,1,1,2) [2024-12-20 10:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062128', 'tblTempUsageDetail_20' ) start [2024-12-20 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062128', 'tblTempUsageDetail_20' ) end [2024-12-20 10:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:12:29] Production.INFO: ==27972== Releasing lock... [2024-12-20 10:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:12:29] Production.INFO: 45.5 MB #Memory Used# [2024-12-20 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:13:05 [end_date_ymd] => 2024-12-20 10:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:13:19] Production.INFO: count ==2325 [2024-12-20 10:13:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:13:05 - End Time 2024-12-20 10:13:05 [2024-12-20 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062133', 'tblTempUsageDetail_20' ) start [2024-12-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062133', 'tblTempUsageDetail_20' ) end [2024-12-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062133', 'tblTempVendorCDR_20' ) start [2024-12-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062133', 'tblTempVendorCDR_20' ) end [2024-12-20 10:13:19] Production.INFO: ProcessCDR(1,14062133,1,1,2) [2024-12-20 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062133', 'tblTempUsageDetail_20' ) start [2024-12-20 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062133', 'tblTempUsageDetail_20' ) end [2024-12-20 10:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:13:24] Production.INFO: ==28047== Releasing lock... [2024-12-20 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:13:24] Production.INFO: 45.5 MB #Memory Used# [2024-12-20 10:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:14:04 [end_date_ymd] => 2024-12-20 10:14:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:14:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:14:17] Production.INFO: count ==2345 [2024-12-20 10:14:18] Production.ERROR: pbx CDR StartTime 2024-12-20 07:14:04 - End Time 2024-12-20 10:14:04 [2024-12-20 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062138', 'tblTempUsageDetail_20' ) start [2024-12-20 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062138', 'tblTempUsageDetail_20' ) end [2024-12-20 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062138', 'tblTempVendorCDR_20' ) start [2024-12-20 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062138', 'tblTempVendorCDR_20' ) end [2024-12-20 10:14:18] Production.INFO: ProcessCDR(1,14062138,1,1,2) [2024-12-20 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062138', 'tblTempUsageDetail_20' ) start [2024-12-20 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062138', 'tblTempUsageDetail_20' ) end [2024-12-20 10:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:14:23] Production.INFO: ==28120== Releasing lock... [2024-12-20 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:14:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-20 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:15:05 [end_date_ymd] => 2024-12-20 10:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:15:18] Production.INFO: count ==2359 [2024-12-20 10:15:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:15:05 - End Time 2024-12-20 10:15:05 [2024-12-20 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062143', 'tblTempUsageDetail_20' ) start [2024-12-20 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062143', 'tblTempUsageDetail_20' ) end [2024-12-20 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062143', 'tblTempVendorCDR_20' ) start [2024-12-20 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062143', 'tblTempVendorCDR_20' ) end [2024-12-20 10:15:19] Production.INFO: ProcessCDR(1,14062143,1,1,2) [2024-12-20 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062143', 'tblTempUsageDetail_20' ) start [2024-12-20 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062143', 'tblTempUsageDetail_20' ) end [2024-12-20 10:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:15:22] Production.INFO: ==28197== Releasing lock... [2024-12-20 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:15:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-20 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:16:05 [end_date_ymd] => 2024-12-20 10:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:16:18] Production.INFO: count ==2371 [2024-12-20 10:16:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:16:05 - End Time 2024-12-20 10:16:05 [2024-12-20 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062148', 'tblTempUsageDetail_20' ) start [2024-12-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062148', 'tblTempUsageDetail_20' ) end [2024-12-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062148', 'tblTempVendorCDR_20' ) start [2024-12-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062148', 'tblTempVendorCDR_20' ) end [2024-12-20 10:16:19] Production.INFO: ProcessCDR(1,14062148,1,1,2) [2024-12-20 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062148', 'tblTempUsageDetail_20' ) start [2024-12-20 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062148', 'tblTempUsageDetail_20' ) end [2024-12-20 10:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:16:23] Production.INFO: ==28272== Releasing lock... [2024-12-20 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:16:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-20 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:17:05 [end_date_ymd] => 2024-12-20 10:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:17:22] Production.INFO: count ==2386 [2024-12-20 10:17:23] Production.ERROR: pbx CDR StartTime 2024-12-20 07:17:05 - End Time 2024-12-20 10:17:05 [2024-12-20 10:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062153', 'tblTempUsageDetail_20' ) start [2024-12-20 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062153', 'tblTempUsageDetail_20' ) end [2024-12-20 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062153', 'tblTempVendorCDR_20' ) start [2024-12-20 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062153', 'tblTempVendorCDR_20' ) end [2024-12-20 10:17:23] Production.INFO: ProcessCDR(1,14062153,1,1,2) [2024-12-20 10:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062153', 'tblTempUsageDetail_20' ) start [2024-12-20 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062153', 'tblTempUsageDetail_20' ) end [2024-12-20 10:17:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:17:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:17:28] Production.INFO: ==28345== Releasing lock... [2024-12-20 10:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:17:28] Production.INFO: 46 MB #Memory Used# [2024-12-20 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:18:05 [end_date_ymd] => 2024-12-20 10:18:05 [RateCDR] => 1 ) [2024-12-20 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:18:05' and `end` < '2024-12-20 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:18:18] Production.INFO: count ==2390 [2024-12-20 10:18:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:18:05 - End Time 2024-12-20 10:18:05 [2024-12-20 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062158', 'tblTempUsageDetail_20' ) start [2024-12-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062158', 'tblTempUsageDetail_20' ) end [2024-12-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062158', 'tblTempVendorCDR_20' ) start [2024-12-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062158', 'tblTempVendorCDR_20' ) end [2024-12-20 10:18:19] Production.INFO: ProcessCDR(1,14062158,1,1,2) [2024-12-20 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062158', 'tblTempUsageDetail_20' ) start [2024-12-20 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062158', 'tblTempUsageDetail_20' ) end [2024-12-20 10:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:18:23] Production.INFO: ==28416== Releasing lock... [2024-12-20 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:18:23] Production.INFO: 46 MB #Memory Used# [2024-12-20 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:19:04 [end_date_ymd] => 2024-12-20 10:19:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:19:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:19:17] Production.INFO: count ==2399 [2024-12-20 10:19:18] Production.ERROR: pbx CDR StartTime 2024-12-20 07:19:04 - End Time 2024-12-20 10:19:04 [2024-12-20 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062163', 'tblTempUsageDetail_20' ) start [2024-12-20 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062163', 'tblTempUsageDetail_20' ) end [2024-12-20 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062163', 'tblTempVendorCDR_20' ) start [2024-12-20 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062163', 'tblTempVendorCDR_20' ) end [2024-12-20 10:19:18] Production.INFO: ProcessCDR(1,14062163,1,1,2) [2024-12-20 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062163', 'tblTempUsageDetail_20' ) start [2024-12-20 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062163', 'tblTempUsageDetail_20' ) end [2024-12-20 10:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:19:23] Production.INFO: ==28486== Releasing lock... [2024-12-20 10:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:19:23] Production.INFO: 46 MB #Memory Used# [2024-12-20 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:20:06 [end_date_ymd] => 2024-12-20 10:20:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:20:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:20:23] Production.INFO: count ==2425 [2024-12-20 10:20:23] Production.ERROR: pbx CDR StartTime 2024-12-20 07:20:06 - End Time 2024-12-20 10:20:06 [2024-12-20 10:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062169', 'tblTempUsageDetail_20' ) start [2024-12-20 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062169', 'tblTempUsageDetail_20' ) end [2024-12-20 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062169', 'tblTempVendorCDR_20' ) start [2024-12-20 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062169', 'tblTempVendorCDR_20' ) end [2024-12-20 10:20:24] Production.INFO: ProcessCDR(1,14062169,1,1,2) [2024-12-20 10:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062169', 'tblTempUsageDetail_20' ) start [2024-12-20 10:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062169', 'tblTempUsageDetail_20' ) end [2024-12-20 10:20:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:20:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:20:28] Production.INFO: ==28559== Releasing lock... [2024-12-20 10:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:20:28] Production.INFO: 46.25 MB #Memory Used# [2024-12-20 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:21:05 [end_date_ymd] => 2024-12-20 10:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:21:23] Production.INFO: count ==2531 [2024-12-20 10:21:24] Production.ERROR: pbx CDR StartTime 2024-12-20 07:21:05 - End Time 2024-12-20 10:21:05 [2024-12-20 10:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062174', 'tblTempUsageDetail_20' ) start [2024-12-20 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062174', 'tblTempUsageDetail_20' ) end [2024-12-20 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062174', 'tblTempVendorCDR_20' ) start [2024-12-20 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062174', 'tblTempVendorCDR_20' ) end [2024-12-20 10:21:24] Production.INFO: ProcessCDR(1,14062174,1,1,2) [2024-12-20 10:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062174', 'tblTempUsageDetail_20' ) start [2024-12-20 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062174', 'tblTempUsageDetail_20' ) end [2024-12-20 10:21:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:21:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:21:29] Production.INFO: ==28672== Releasing lock... [2024-12-20 10:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:21:29] Production.INFO: 47 MB #Memory Used# [2024-12-20 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:22:05 [end_date_ymd] => 2024-12-20 10:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:22:25] Production.INFO: count ==2535 [2024-12-20 10:22:26] Production.ERROR: pbx CDR StartTime 2024-12-20 07:22:05 - End Time 2024-12-20 10:22:05 [2024-12-20 10:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062179', 'tblTempUsageDetail_20' ) start [2024-12-20 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062179', 'tblTempUsageDetail_20' ) end [2024-12-20 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062179', 'tblTempVendorCDR_20' ) start [2024-12-20 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062179', 'tblTempVendorCDR_20' ) end [2024-12-20 10:22:26] Production.INFO: ProcessCDR(1,14062179,1,1,2) [2024-12-20 10:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062179', 'tblTempUsageDetail_20' ) start [2024-12-20 10:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062179', 'tblTempUsageDetail_20' ) end [2024-12-20 10:22:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:22:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:22:31] Production.INFO: ==28747== Releasing lock... [2024-12-20 10:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:22:31] Production.INFO: 47 MB #Memory Used# [2024-12-20 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:23:04 [end_date_ymd] => 2024-12-20 10:23:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:23:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:23:22] Production.INFO: count ==2567 [2024-12-20 10:23:22] Production.ERROR: pbx CDR StartTime 2024-12-20 07:23:04 - End Time 2024-12-20 10:23:04 [2024-12-20 10:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062184', 'tblTempUsageDetail_20' ) start [2024-12-20 10:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062184', 'tblTempUsageDetail_20' ) end [2024-12-20 10:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062184', 'tblTempVendorCDR_20' ) start [2024-12-20 10:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062184', 'tblTempVendorCDR_20' ) end [2024-12-20 10:23:23] Production.INFO: ProcessCDR(1,14062184,1,1,2) [2024-12-20 10:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062184', 'tblTempUsageDetail_20' ) start [2024-12-20 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062184', 'tblTempUsageDetail_20' ) end [2024-12-20 10:23:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:23:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:23:27] Production.INFO: ==28816== Releasing lock... [2024-12-20 10:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:23:27] Production.INFO: 47.25 MB #Memory Used# [2024-12-20 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:24:05 [end_date_ymd] => 2024-12-20 10:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:24:22] Production.INFO: count ==2576 [2024-12-20 10:24:23] Production.ERROR: pbx CDR StartTime 2024-12-20 07:24:05 - End Time 2024-12-20 10:24:05 [2024-12-20 10:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062189', 'tblTempUsageDetail_20' ) start [2024-12-20 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062189', 'tblTempUsageDetail_20' ) end [2024-12-20 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062189', 'tblTempVendorCDR_20' ) start [2024-12-20 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062189', 'tblTempVendorCDR_20' ) end [2024-12-20 10:24:23] Production.INFO: ProcessCDR(1,14062189,1,1,2) [2024-12-20 10:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062189', 'tblTempUsageDetail_20' ) start [2024-12-20 10:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062189', 'tblTempUsageDetail_20' ) end [2024-12-20 10:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:24:28] Production.INFO: ==28885== Releasing lock... [2024-12-20 10:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:24:28] Production.INFO: 47.5 MB #Memory Used# [2024-12-20 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:25:04 [end_date_ymd] => 2024-12-20 10:25:04 [RateCDR] => 1 ) [2024-12-20 10:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:25:04' and `end` < '2024-12-20 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:25:26] Production.INFO: count ==2600 [2024-12-20 10:25:27] Production.ERROR: pbx CDR StartTime 2024-12-20 07:25:04 - End Time 2024-12-20 10:25:04 [2024-12-20 10:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062194', 'tblTempUsageDetail_20' ) start [2024-12-20 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062194', 'tblTempUsageDetail_20' ) end [2024-12-20 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062194', 'tblTempVendorCDR_20' ) start [2024-12-20 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062194', 'tblTempVendorCDR_20' ) end [2024-12-20 10:25:27] Production.INFO: ProcessCDR(1,14062194,1,1,2) [2024-12-20 10:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062194', 'tblTempUsageDetail_20' ) start [2024-12-20 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062194', 'tblTempUsageDetail_20' ) end [2024-12-20 10:25:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:25:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:25:31] Production.INFO: ==28961== Releasing lock... [2024-12-20 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:25:31] Production.INFO: 47.5 MB #Memory Used# [2024-12-20 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:26:04 [end_date_ymd] => 2024-12-20 10:26:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:26:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:26:17] Production.INFO: count ==2605 [2024-12-20 10:26:18] Production.ERROR: pbx CDR StartTime 2024-12-20 07:26:04 - End Time 2024-12-20 10:26:04 [2024-12-20 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062199', 'tblTempUsageDetail_20' ) start [2024-12-20 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062199', 'tblTempUsageDetail_20' ) end [2024-12-20 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062199', 'tblTempVendorCDR_20' ) start [2024-12-20 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062199', 'tblTempVendorCDR_20' ) end [2024-12-20 10:26:18] Production.INFO: ProcessCDR(1,14062199,1,1,2) [2024-12-20 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062199', 'tblTempUsageDetail_20' ) start [2024-12-20 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062199', 'tblTempUsageDetail_20' ) end [2024-12-20 10:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:26:23] Production.INFO: ==29034== Releasing lock... [2024-12-20 10:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:26:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-20 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:27:04 [end_date_ymd] => 2024-12-20 10:27:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:27:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:27:20] Production.INFO: count ==2613 [2024-12-20 10:27:21] Production.ERROR: pbx CDR StartTime 2024-12-20 07:27:04 - End Time 2024-12-20 10:27:04 [2024-12-20 10:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062204', 'tblTempUsageDetail_20' ) start [2024-12-20 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062204', 'tblTempUsageDetail_20' ) end [2024-12-20 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062204', 'tblTempVendorCDR_20' ) start [2024-12-20 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062204', 'tblTempVendorCDR_20' ) end [2024-12-20 10:27:21] Production.INFO: ProcessCDR(1,14062204,1,1,2) [2024-12-20 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062204', 'tblTempUsageDetail_20' ) start [2024-12-20 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062204', 'tblTempUsageDetail_20' ) end [2024-12-20 10:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:27:25] Production.INFO: ==29109== Releasing lock... [2024-12-20 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:27:25] Production.INFO: 47.75 MB #Memory Used# [2024-12-20 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:28:05 [end_date_ymd] => 2024-12-20 10:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:28:21] Production.INFO: count ==2649 [2024-12-20 10:28:22] Production.ERROR: pbx CDR StartTime 2024-12-20 07:28:05 - End Time 2024-12-20 10:28:05 [2024-12-20 10:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062209', 'tblTempUsageDetail_20' ) start [2024-12-20 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062209', 'tblTempUsageDetail_20' ) end [2024-12-20 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062209', 'tblTempVendorCDR_20' ) start [2024-12-20 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062209', 'tblTempVendorCDR_20' ) end [2024-12-20 10:28:22] Production.INFO: ProcessCDR(1,14062209,1,1,2) [2024-12-20 10:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062209', 'tblTempUsageDetail_20' ) start [2024-12-20 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062209', 'tblTempUsageDetail_20' ) end [2024-12-20 10:28:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:28:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:28:27] Production.INFO: ==29180== Releasing lock... [2024-12-20 10:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:28:27] Production.INFO: 48 MB #Memory Used# [2024-12-20 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:29:05 [end_date_ymd] => 2024-12-20 10:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:29:24] Production.INFO: count ==2670 [2024-12-20 10:29:25] Production.ERROR: pbx CDR StartTime 2024-12-20 07:29:05 - End Time 2024-12-20 10:29:05 [2024-12-20 10:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062214', 'tblTempUsageDetail_20' ) start [2024-12-20 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062214', 'tblTempUsageDetail_20' ) end [2024-12-20 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062214', 'tblTempVendorCDR_20' ) start [2024-12-20 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062214', 'tblTempVendorCDR_20' ) end [2024-12-20 10:29:25] Production.INFO: ProcessCDR(1,14062214,1,1,2) [2024-12-20 10:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062214', 'tblTempUsageDetail_20' ) start [2024-12-20 10:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062214', 'tblTempUsageDetail_20' ) end [2024-12-20 10:29:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:29:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:29:30] Production.INFO: ==29254== Releasing lock... [2024-12-20 10:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:29:30] Production.INFO: 48.5 MB #Memory Used# [2024-12-20 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:30:05 [end_date_ymd] => 2024-12-20 10:30:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:30:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:30:27] Production.INFO: count ==2702 [2024-12-20 10:30:28] Production.ERROR: pbx CDR StartTime 2024-12-20 07:30:05 - End Time 2024-12-20 10:30:05 [2024-12-20 10:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062220', 'tblTempUsageDetail_20' ) start [2024-12-20 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062220', 'tblTempUsageDetail_20' ) end [2024-12-20 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062220', 'tblTempVendorCDR_20' ) start [2024-12-20 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062220', 'tblTempVendorCDR_20' ) end [2024-12-20 10:30:28] Production.INFO: ProcessCDR(1,14062220,1,1,2) [2024-12-20 10:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062220', 'tblTempUsageDetail_20' ) start [2024-12-20 10:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062220', 'tblTempUsageDetail_20' ) end [2024-12-20 10:30:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:30:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:30:33] Production.INFO: ==29328== Releasing lock... [2024-12-20 10:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:30:33] Production.INFO: 48.5 MB #Memory Used# [2024-12-20 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:31:05 [end_date_ymd] => 2024-12-20 10:31:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:31:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:31:22] Production.INFO: count ==2828 [2024-12-20 10:31:23] Production.ERROR: pbx CDR StartTime 2024-12-20 07:31:05 - End Time 2024-12-20 10:31:05 [2024-12-20 10:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062225', 'tblTempUsageDetail_20' ) start [2024-12-20 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062225', 'tblTempUsageDetail_20' ) end [2024-12-20 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062225', 'tblTempVendorCDR_20' ) start [2024-12-20 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062225', 'tblTempVendorCDR_20' ) end [2024-12-20 10:31:23] Production.INFO: ProcessCDR(1,14062225,1,1,2) [2024-12-20 10:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062225', 'tblTempUsageDetail_20' ) start [2024-12-20 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062225', 'tblTempUsageDetail_20' ) end [2024-12-20 10:31:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:31:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:31:28] Production.INFO: ==29400== Releasing lock... [2024-12-20 10:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:31:28] Production.INFO: 49.25 MB #Memory Used# [2024-12-20 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:32:04 [end_date_ymd] => 2024-12-20 10:32:04 [RateCDR] => 1 ) [2024-12-20 10:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:32:04' and `end` < '2024-12-20 10:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:32:21] Production.INFO: count ==2832 [2024-12-20 10:32:22] Production.ERROR: pbx CDR StartTime 2024-12-20 07:32:04 - End Time 2024-12-20 10:32:04 [2024-12-20 10:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062230', 'tblTempUsageDetail_20' ) start [2024-12-20 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062230', 'tblTempUsageDetail_20' ) end [2024-12-20 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062230', 'tblTempVendorCDR_20' ) start [2024-12-20 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062230', 'tblTempVendorCDR_20' ) end [2024-12-20 10:32:22] Production.INFO: ProcessCDR(1,14062230,1,1,2) [2024-12-20 10:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062230', 'tblTempUsageDetail_20' ) start [2024-12-20 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062230', 'tblTempUsageDetail_20' ) end [2024-12-20 10:32:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:32:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:32:27] Production.INFO: ==29470== Releasing lock... [2024-12-20 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:32:27] Production.INFO: 50 MB #Memory Used# [2024-12-20 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:33:05 [end_date_ymd] => 2024-12-20 10:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:33:18] Production.INFO: count ==2840 [2024-12-20 10:33:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:33:05 - End Time 2024-12-20 10:33:05 [2024-12-20 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062235', 'tblTempUsageDetail_20' ) start [2024-12-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062235', 'tblTempUsageDetail_20' ) end [2024-12-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062235', 'tblTempVendorCDR_20' ) start [2024-12-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062235', 'tblTempVendorCDR_20' ) end [2024-12-20 10:33:19] Production.INFO: ProcessCDR(1,14062235,1,1,2) [2024-12-20 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062235', 'tblTempUsageDetail_20' ) start [2024-12-20 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062235', 'tblTempUsageDetail_20' ) end [2024-12-20 10:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:33:23] Production.INFO: ==29540== Releasing lock... [2024-12-20 10:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:33:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-20 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:34:05 [end_date_ymd] => 2024-12-20 10:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:34:19] Production.INFO: count ==2853 [2024-12-20 10:34:20] Production.ERROR: pbx CDR StartTime 2024-12-20 07:34:05 - End Time 2024-12-20 10:34:05 [2024-12-20 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062240', 'tblTempUsageDetail_20' ) start [2024-12-20 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062240', 'tblTempUsageDetail_20' ) end [2024-12-20 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062240', 'tblTempVendorCDR_20' ) start [2024-12-20 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062240', 'tblTempVendorCDR_20' ) end [2024-12-20 10:34:20] Production.INFO: ProcessCDR(1,14062240,1,1,2) [2024-12-20 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062240', 'tblTempUsageDetail_20' ) start [2024-12-20 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062240', 'tblTempUsageDetail_20' ) end [2024-12-20 10:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:34:25] Production.INFO: ==29611== Releasing lock... [2024-12-20 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:34:25] Production.INFO: 50 MB #Memory Used# [2024-12-20 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:35:04 [end_date_ymd] => 2024-12-20 10:35:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:35:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:35:20] Production.INFO: count ==2857 [2024-12-20 10:35:21] Production.ERROR: pbx CDR StartTime 2024-12-20 07:35:04 - End Time 2024-12-20 10:35:04 [2024-12-20 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062245', 'tblTempUsageDetail_20' ) start [2024-12-20 10:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062245', 'tblTempUsageDetail_20' ) end [2024-12-20 10:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062245', 'tblTempVendorCDR_20' ) start [2024-12-20 10:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062245', 'tblTempVendorCDR_20' ) end [2024-12-20 10:35:22] Production.INFO: ProcessCDR(1,14062245,1,1,2) [2024-12-20 10:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062245', 'tblTempUsageDetail_20' ) start [2024-12-20 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062245', 'tblTempUsageDetail_20' ) end [2024-12-20 10:35:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:35:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:35:26] Production.INFO: ==29680== Releasing lock... [2024-12-20 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:35:26] Production.INFO: 49.75 MB #Memory Used# [2024-12-20 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:36:05 [end_date_ymd] => 2024-12-20 10:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:36:18] Production.INFO: count ==2862 [2024-12-20 10:36:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:36:05 - End Time 2024-12-20 10:36:05 [2024-12-20 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062250', 'tblTempUsageDetail_20' ) start [2024-12-20 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062250', 'tblTempUsageDetail_20' ) end [2024-12-20 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062250', 'tblTempVendorCDR_20' ) start [2024-12-20 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062250', 'tblTempVendorCDR_20' ) end [2024-12-20 10:36:19] Production.INFO: ProcessCDR(1,14062250,1,1,2) [2024-12-20 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062250', 'tblTempUsageDetail_20' ) start [2024-12-20 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062250', 'tblTempUsageDetail_20' ) end [2024-12-20 10:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:36:24] Production.INFO: ==29753== Releasing lock... [2024-12-20 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:36:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-20 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:37:04 [end_date_ymd] => 2024-12-20 10:37:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:37:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:37:20] Production.INFO: count ==2881 [2024-12-20 10:37:21] Production.ERROR: pbx CDR StartTime 2024-12-20 07:37:04 - End Time 2024-12-20 10:37:04 [2024-12-20 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062255', 'tblTempUsageDetail_20' ) start [2024-12-20 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062255', 'tblTempUsageDetail_20' ) end [2024-12-20 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062255', 'tblTempVendorCDR_20' ) start [2024-12-20 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062255', 'tblTempVendorCDR_20' ) end [2024-12-20 10:37:21] Production.INFO: ProcessCDR(1,14062255,1,1,2) [2024-12-20 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062255', 'tblTempUsageDetail_20' ) start [2024-12-20 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062255', 'tblTempUsageDetail_20' ) end [2024-12-20 10:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:37:25] Production.INFO: ==29864== Releasing lock... [2024-12-20 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:37:25] Production.INFO: 49.75 MB #Memory Used# [2024-12-20 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:38:05 [end_date_ymd] => 2024-12-20 10:38:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:38:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:38:18] Production.INFO: count ==2883 [2024-12-20 10:38:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:38:05 - End Time 2024-12-20 10:38:05 [2024-12-20 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062260', 'tblTempUsageDetail_20' ) start [2024-12-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062260', 'tblTempUsageDetail_20' ) end [2024-12-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062260', 'tblTempVendorCDR_20' ) start [2024-12-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062260', 'tblTempVendorCDR_20' ) end [2024-12-20 10:38:20] Production.INFO: ProcessCDR(1,14062260,1,1,2) [2024-12-20 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062260', 'tblTempUsageDetail_20' ) start [2024-12-20 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062260', 'tblTempUsageDetail_20' ) end [2024-12-20 10:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:38:24] Production.INFO: ==29935== Releasing lock... [2024-12-20 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:38:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-20 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:39:04 [end_date_ymd] => 2024-12-20 10:39:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:39:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:39:18] Production.INFO: count ==2893 [2024-12-20 10:39:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:39:04 - End Time 2024-12-20 10:39:04 [2024-12-20 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062265', 'tblTempUsageDetail_20' ) start [2024-12-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062265', 'tblTempUsageDetail_20' ) end [2024-12-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062265', 'tblTempVendorCDR_20' ) start [2024-12-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062265', 'tblTempVendorCDR_20' ) end [2024-12-20 10:39:19] Production.INFO: ProcessCDR(1,14062265,1,1,2) [2024-12-20 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062265', 'tblTempUsageDetail_20' ) start [2024-12-20 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062265', 'tblTempUsageDetail_20' ) end [2024-12-20 10:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:39:23] Production.INFO: ==30008== Releasing lock... [2024-12-20 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:39:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-20 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:40:05 [end_date_ymd] => 2024-12-20 10:40:05 [RateCDR] => 1 ) [2024-12-20 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:40:05' and `end` < '2024-12-20 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:40:25] Production.INFO: count ==2906 [2024-12-20 10:40:26] Production.ERROR: pbx CDR StartTime 2024-12-20 07:40:05 - End Time 2024-12-20 10:40:05 [2024-12-20 10:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062270', 'tblTempUsageDetail_20' ) start [2024-12-20 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062270', 'tblTempUsageDetail_20' ) end [2024-12-20 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062270', 'tblTempVendorCDR_20' ) start [2024-12-20 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062270', 'tblTempVendorCDR_20' ) end [2024-12-20 10:40:26] Production.INFO: ProcessCDR(1,14062270,1,1,2) [2024-12-20 10:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062270', 'tblTempUsageDetail_20' ) start [2024-12-20 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062270', 'tblTempUsageDetail_20' ) end [2024-12-20 10:40:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:40:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:40:31] Production.INFO: ==30080== Releasing lock... [2024-12-20 10:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:40:31] Production.INFO: 50.5 MB #Memory Used# [2024-12-20 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:41:05 [end_date_ymd] => 2024-12-20 10:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:41:20] Production.INFO: count ==3016 [2024-12-20 10:41:22] Production.ERROR: pbx CDR StartTime 2024-12-20 07:41:05 - End Time 2024-12-20 10:41:05 [2024-12-20 10:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062276', 'tblTempUsageDetail_20' ) start [2024-12-20 10:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062276', 'tblTempUsageDetail_20' ) end [2024-12-20 10:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062276', 'tblTempVendorCDR_20' ) start [2024-12-20 10:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062276', 'tblTempVendorCDR_20' ) end [2024-12-20 10:41:22] Production.INFO: ProcessCDR(1,14062276,1,1,2) [2024-12-20 10:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062276', 'tblTempUsageDetail_20' ) start [2024-12-20 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062276', 'tblTempUsageDetail_20' ) end [2024-12-20 10:41:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:41:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:41:25] Production.INFO: ==30151== Releasing lock... [2024-12-20 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:41:25] Production.INFO: 51.5 MB #Memory Used# [2024-12-20 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:42:05 [end_date_ymd] => 2024-12-20 10:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:42:21] Production.INFO: count ==3081 [2024-12-20 10:42:23] Production.ERROR: pbx CDR StartTime 2024-12-20 07:42:05 - End Time 2024-12-20 10:42:05 [2024-12-20 10:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062281', 'tblTempUsageDetail_20' ) start [2024-12-20 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062281', 'tblTempUsageDetail_20' ) end [2024-12-20 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062281', 'tblTempVendorCDR_20' ) start [2024-12-20 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062281', 'tblTempVendorCDR_20' ) end [2024-12-20 10:42:23] Production.INFO: ProcessCDR(1,14062281,1,1,2) [2024-12-20 10:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062281', 'tblTempUsageDetail_20' ) start [2024-12-20 10:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062281', 'tblTempUsageDetail_20' ) end [2024-12-20 10:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:42:28] Production.INFO: ==30225== Releasing lock... [2024-12-20 10:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:42:28] Production.INFO: 51.75 MB #Memory Used# [2024-12-20 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:43:05 [end_date_ymd] => 2024-12-20 10:43:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:43:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:43:25] Production.INFO: count ==3086 [2024-12-20 10:43:26] Production.ERROR: pbx CDR StartTime 2024-12-20 07:43:05 - End Time 2024-12-20 10:43:05 [2024-12-20 10:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062286', 'tblTempUsageDetail_20' ) start [2024-12-20 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062286', 'tblTempUsageDetail_20' ) end [2024-12-20 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062286', 'tblTempVendorCDR_20' ) start [2024-12-20 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062286', 'tblTempVendorCDR_20' ) end [2024-12-20 10:43:26] Production.INFO: ProcessCDR(1,14062286,1,1,2) [2024-12-20 10:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062286', 'tblTempUsageDetail_20' ) start [2024-12-20 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062286', 'tblTempUsageDetail_20' ) end [2024-12-20 10:43:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:43:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:43:30] Production.INFO: ==30300== Releasing lock... [2024-12-20 10:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:43:30] Production.INFO: 51.5 MB #Memory Used# [2024-12-20 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:44:05 [end_date_ymd] => 2024-12-20 10:44:05 [RateCDR] => 1 ) [2024-12-20 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:44:05' and `end` < '2024-12-20 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:44:26] Production.INFO: count ==3125 [2024-12-20 10:44:27] Production.ERROR: pbx CDR StartTime 2024-12-20 07:44:05 - End Time 2024-12-20 10:44:05 [2024-12-20 10:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062291', 'tblTempUsageDetail_20' ) start [2024-12-20 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062291', 'tblTempUsageDetail_20' ) end [2024-12-20 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062291', 'tblTempVendorCDR_20' ) start [2024-12-20 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062291', 'tblTempVendorCDR_20' ) end [2024-12-20 10:44:27] Production.INFO: ProcessCDR(1,14062291,1,1,2) [2024-12-20 10:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062291', 'tblTempUsageDetail_20' ) start [2024-12-20 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062291', 'tblTempUsageDetail_20' ) end [2024-12-20 10:44:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:44:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:44:31] Production.INFO: ==30374== Releasing lock... [2024-12-20 10:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:44:31] Production.INFO: 51.5 MB #Memory Used# [2024-12-20 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:45:05 [end_date_ymd] => 2024-12-20 10:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:45:25] Production.INFO: count ==3142 [2024-12-20 10:45:26] Production.ERROR: pbx CDR StartTime 2024-12-20 07:45:05 - End Time 2024-12-20 10:45:05 [2024-12-20 10:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062296', 'tblTempUsageDetail_20' ) start [2024-12-20 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062296', 'tblTempUsageDetail_20' ) end [2024-12-20 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062296', 'tblTempVendorCDR_20' ) start [2024-12-20 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062296', 'tblTempVendorCDR_20' ) end [2024-12-20 10:45:26] Production.INFO: ProcessCDR(1,14062296,1,1,2) [2024-12-20 10:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062296', 'tblTempUsageDetail_20' ) start [2024-12-20 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062296', 'tblTempUsageDetail_20' ) end [2024-12-20 10:45:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:45:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:45:30] Production.INFO: ==30444== Releasing lock... [2024-12-20 10:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:45:30] Production.INFO: 51.5 MB #Memory Used# [2024-12-20 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:46:05 [end_date_ymd] => 2024-12-20 10:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:46:27] Production.INFO: count ==3164 [2024-12-20 10:46:28] Production.ERROR: pbx CDR StartTime 2024-12-20 07:46:05 - End Time 2024-12-20 10:46:05 [2024-12-20 10:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062301', 'tblTempUsageDetail_20' ) start [2024-12-20 10:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062301', 'tblTempUsageDetail_20' ) end [2024-12-20 10:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062301', 'tblTempVendorCDR_20' ) start [2024-12-20 10:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062301', 'tblTempVendorCDR_20' ) end [2024-12-20 10:46:28] Production.INFO: ProcessCDR(1,14062301,1,1,2) [2024-12-20 10:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062301', 'tblTempUsageDetail_20' ) start [2024-12-20 10:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062301', 'tblTempUsageDetail_20' ) end [2024-12-20 10:46:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:46:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:46:32] Production.INFO: ==30513== Releasing lock... [2024-12-20 10:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:46:32] Production.INFO: 52 MB #Memory Used# [2024-12-20 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:47:05 [end_date_ymd] => 2024-12-20 10:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:47:22] Production.INFO: count ==3193 [2024-12-20 10:47:23] Production.ERROR: pbx CDR StartTime 2024-12-20 07:47:05 - End Time 2024-12-20 10:47:05 [2024-12-20 10:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062306', 'tblTempUsageDetail_20' ) start [2024-12-20 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062306', 'tblTempUsageDetail_20' ) end [2024-12-20 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062306', 'tblTempVendorCDR_20' ) start [2024-12-20 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062306', 'tblTempVendorCDR_20' ) end [2024-12-20 10:47:23] Production.INFO: ProcessCDR(1,14062306,1,1,2) [2024-12-20 10:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062306', 'tblTempUsageDetail_20' ) start [2024-12-20 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062306', 'tblTempUsageDetail_20' ) end [2024-12-20 10:47:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:47:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:47:28] Production.INFO: ==30584== Releasing lock... [2024-12-20 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:47:28] Production.INFO: 52.75 MB #Memory Used# [2024-12-20 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:48:05 [end_date_ymd] => 2024-12-20 10:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:48:21] Production.INFO: count ==3223 [2024-12-20 10:48:22] Production.ERROR: pbx CDR StartTime 2024-12-20 07:48:05 - End Time 2024-12-20 10:48:05 [2024-12-20 10:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062311', 'tblTempUsageDetail_20' ) start [2024-12-20 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062311', 'tblTempUsageDetail_20' ) end [2024-12-20 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062311', 'tblTempVendorCDR_20' ) start [2024-12-20 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062311', 'tblTempVendorCDR_20' ) end [2024-12-20 10:48:22] Production.INFO: ProcessCDR(1,14062311,1,1,2) [2024-12-20 10:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062311', 'tblTempUsageDetail_20' ) start [2024-12-20 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062311', 'tblTempUsageDetail_20' ) end [2024-12-20 10:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:48:26] Production.INFO: ==30657== Releasing lock... [2024-12-20 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:48:26] Production.INFO: 53 MB #Memory Used# [2024-12-20 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:49:04 [end_date_ymd] => 2024-12-20 10:49:04 [RateCDR] => 1 ) [2024-12-20 10:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:49:04' and `end` < '2024-12-20 10:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:49:18] Production.INFO: count ==3243 [2024-12-20 10:49:19] Production.ERROR: pbx CDR StartTime 2024-12-20 07:49:04 - End Time 2024-12-20 10:49:04 [2024-12-20 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062316', 'tblTempUsageDetail_20' ) start [2024-12-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062316', 'tblTempUsageDetail_20' ) end [2024-12-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062316', 'tblTempVendorCDR_20' ) start [2024-12-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062316', 'tblTempVendorCDR_20' ) end [2024-12-20 10:49:19] Production.INFO: ProcessCDR(1,14062316,1,1,2) [2024-12-20 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062316', 'tblTempUsageDetail_20' ) start [2024-12-20 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062316', 'tblTempUsageDetail_20' ) end [2024-12-20 10:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:49:23] Production.INFO: ==30727== Releasing lock... [2024-12-20 10:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:49:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-20 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:50:05 [end_date_ymd] => 2024-12-20 10:50:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:50:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:50:25] Production.INFO: count ==3269 [2024-12-20 10:50:26] Production.ERROR: pbx CDR StartTime 2024-12-20 07:50:05 - End Time 2024-12-20 10:50:05 [2024-12-20 10:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062322', 'tblTempUsageDetail_20' ) start [2024-12-20 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062322', 'tblTempUsageDetail_20' ) end [2024-12-20 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062322', 'tblTempVendorCDR_20' ) start [2024-12-20 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062322', 'tblTempVendorCDR_20' ) end [2024-12-20 10:50:27] Production.INFO: ProcessCDR(1,14062322,1,1,2) [2024-12-20 10:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062322', 'tblTempUsageDetail_20' ) start [2024-12-20 10:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062322', 'tblTempUsageDetail_20' ) end [2024-12-20 10:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:50:31] Production.INFO: ==30802== Releasing lock... [2024-12-20 10:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:50:31] Production.INFO: 53.25 MB #Memory Used# [2024-12-20 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:51:05 [end_date_ymd] => 2024-12-20 10:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:51:23] Production.INFO: count ==3368 [2024-12-20 10:51:24] Production.ERROR: pbx CDR StartTime 2024-12-20 07:51:05 - End Time 2024-12-20 10:51:05 [2024-12-20 10:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062327', 'tblTempUsageDetail_20' ) start [2024-12-20 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062327', 'tblTempUsageDetail_20' ) end [2024-12-20 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062327', 'tblTempVendorCDR_20' ) start [2024-12-20 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062327', 'tblTempVendorCDR_20' ) end [2024-12-20 10:51:24] Production.INFO: ProcessCDR(1,14062327,1,1,2) [2024-12-20 10:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062327', 'tblTempUsageDetail_20' ) start [2024-12-20 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062327', 'tblTempUsageDetail_20' ) end [2024-12-20 10:51:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:51:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:51:27] Production.INFO: ==30880== Releasing lock... [2024-12-20 10:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:51:27] Production.INFO: 53.25 MB #Memory Used# [2024-12-20 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:52:04 [end_date_ymd] => 2024-12-20 10:52:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:52:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:52:20] Production.INFO: count ==3370 [2024-12-20 10:52:21] Production.ERROR: pbx CDR StartTime 2024-12-20 07:52:04 - End Time 2024-12-20 10:52:04 [2024-12-20 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062332', 'tblTempUsageDetail_20' ) start [2024-12-20 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062332', 'tblTempUsageDetail_20' ) end [2024-12-20 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062332', 'tblTempVendorCDR_20' ) start [2024-12-20 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062332', 'tblTempVendorCDR_20' ) end [2024-12-20 10:52:21] Production.INFO: ProcessCDR(1,14062332,1,1,2) [2024-12-20 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062332', 'tblTempUsageDetail_20' ) start [2024-12-20 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062332', 'tblTempUsageDetail_20' ) end [2024-12-20 10:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:52:26] Production.INFO: ==30950== Releasing lock... [2024-12-20 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:52:26] Production.INFO: 53.25 MB #Memory Used# [2024-12-20 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:53:05 [end_date_ymd] => 2024-12-20 10:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:53:24] Production.INFO: count ==3382 [2024-12-20 10:53:25] Production.ERROR: pbx CDR StartTime 2024-12-20 07:53:05 - End Time 2024-12-20 10:53:05 [2024-12-20 10:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062337', 'tblTempUsageDetail_20' ) start [2024-12-20 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062337', 'tblTempUsageDetail_20' ) end [2024-12-20 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062337', 'tblTempVendorCDR_20' ) start [2024-12-20 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062337', 'tblTempVendorCDR_20' ) end [2024-12-20 10:53:25] Production.INFO: ProcessCDR(1,14062337,1,1,2) [2024-12-20 10:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062337', 'tblTempUsageDetail_20' ) start [2024-12-20 10:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062337', 'tblTempUsageDetail_20' ) end [2024-12-20 10:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:53:30] Production.INFO: ==31060== Releasing lock... [2024-12-20 10:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:53:30] Production.INFO: 54 MB #Memory Used# [2024-12-20 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:54:05 [end_date_ymd] => 2024-12-20 10:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:54:22] Production.INFO: count ==3391 [2024-12-20 10:54:23] Production.ERROR: pbx CDR StartTime 2024-12-20 07:54:05 - End Time 2024-12-20 10:54:05 [2024-12-20 10:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062342', 'tblTempUsageDetail_20' ) start [2024-12-20 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062342', 'tblTempUsageDetail_20' ) end [2024-12-20 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062342', 'tblTempVendorCDR_20' ) start [2024-12-20 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062342', 'tblTempVendorCDR_20' ) end [2024-12-20 10:54:23] Production.INFO: ProcessCDR(1,14062342,1,1,2) [2024-12-20 10:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062342', 'tblTempUsageDetail_20' ) start [2024-12-20 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062342', 'tblTempUsageDetail_20' ) end [2024-12-20 10:54:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:54:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:54:27] Production.INFO: ==31129== Releasing lock... [2024-12-20 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:54:27] Production.INFO: 53.25 MB #Memory Used# [2024-12-20 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:55:04 [end_date_ymd] => 2024-12-20 10:55:04 [RateCDR] => 1 ) [2024-12-20 10: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` >= '2024-12-20 07:55:04' and `end` < '2024-12-20 10: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 ,'') [2024-12-20 10:55:28] Production.INFO: count ==3419 [2024-12-20 10:55:29] Production.ERROR: pbx CDR StartTime 2024-12-20 07:55:04 - End Time 2024-12-20 10:55:04 [2024-12-20 10:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062347', 'tblTempUsageDetail_20' ) start [2024-12-20 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062347', 'tblTempUsageDetail_20' ) end [2024-12-20 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062347', 'tblTempVendorCDR_20' ) start [2024-12-20 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062347', 'tblTempVendorCDR_20' ) end [2024-12-20 10:55:29] Production.INFO: ProcessCDR(1,14062347,1,1,2) [2024-12-20 10:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062347', 'tblTempUsageDetail_20' ) start [2024-12-20 10:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062347', 'tblTempUsageDetail_20' ) end [2024-12-20 10:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:55:33] Production.INFO: ==31210== Releasing lock... [2024-12-20 10:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:55:33] Production.INFO: 53.75 MB #Memory Used# [2024-12-20 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:56:05 [end_date_ymd] => 2024-12-20 10:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:56:22] Production.INFO: count ==3431 [2024-12-20 10:56:23] Production.ERROR: pbx CDR StartTime 2024-12-20 07:56:05 - End Time 2024-12-20 10:56:05 [2024-12-20 10:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062352', 'tblTempUsageDetail_20' ) start [2024-12-20 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062352', 'tblTempUsageDetail_20' ) end [2024-12-20 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062352', 'tblTempVendorCDR_20' ) start [2024-12-20 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062352', 'tblTempVendorCDR_20' ) end [2024-12-20 10:56:23] Production.INFO: ProcessCDR(1,14062352,1,1,2) [2024-12-20 10:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062352', 'tblTempUsageDetail_20' ) start [2024-12-20 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062352', 'tblTempUsageDetail_20' ) end [2024-12-20 10:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:56:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:56:29] Production.INFO: ==31321== Releasing lock... [2024-12-20 10:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:56:29] Production.INFO: 54 MB #Memory Used# [2024-12-20 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:57:05 [end_date_ymd] => 2024-12-20 10:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 07:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 10:57:27] Production.INFO: count ==3472 [2024-12-20 10:57:29] Production.ERROR: pbx CDR StartTime 2024-12-20 07:57:05 - End Time 2024-12-20 10:57:05 [2024-12-20 10:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062357', 'tblTempUsageDetail_20' ) start [2024-12-20 10:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062357', 'tblTempUsageDetail_20' ) end [2024-12-20 10:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062357', 'tblTempVendorCDR_20' ) start [2024-12-20 10:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062357', 'tblTempVendorCDR_20' ) end [2024-12-20 10:57:29] Production.INFO: ProcessCDR(1,14062357,1,1,2) [2024-12-20 10:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062357', 'tblTempUsageDetail_20' ) start [2024-12-20 10:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062357', 'tblTempUsageDetail_20' ) end [2024-12-20 10:57:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:57:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:57:34] Production.INFO: ==31432== Releasing lock... [2024-12-20 10:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:57:34] Production.INFO: 54 MB #Memory Used# [2024-12-20 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:58:05 [end_date_ymd] => 2024-12-20 10:58:05 [RateCDR] => 1 ) [2024-12-20 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:58:05' and `end` < '2024-12-20 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:58:31] Production.INFO: count ==3491 [2024-12-20 10:58:32] Production.ERROR: pbx CDR StartTime 2024-12-20 07:58:05 - End Time 2024-12-20 10:58:05 [2024-12-20 10:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062362', 'tblTempUsageDetail_20' ) start [2024-12-20 10:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062362', 'tblTempUsageDetail_20' ) end [2024-12-20 10:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062362', 'tblTempVendorCDR_20' ) start [2024-12-20 10:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062362', 'tblTempVendorCDR_20' ) end [2024-12-20 10:58:32] Production.INFO: ProcessCDR(1,14062362,1,1,2) [2024-12-20 10:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:58:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:58:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:58:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062362', 'tblTempUsageDetail_20' ) start [2024-12-20 10:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062362', 'tblTempUsageDetail_20' ) end [2024-12-20 10:58:37] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:58:37] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:58:37] Production.INFO: ==31513== Releasing lock... [2024-12-20 10:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:58:37] Production.INFO: 54.75 MB #Memory Used# [2024-12-20 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 07:59:04 [end_date_ymd] => 2024-12-20 10:59:04 [RateCDR] => 1 ) [2024-12-20 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 07:59:04' and `end` < '2024-12-20 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 10:59:26] Production.INFO: count ==3504 [2024-12-20 10:59:27] Production.ERROR: pbx CDR StartTime 2024-12-20 07:59:04 - End Time 2024-12-20 10:59:04 [2024-12-20 10:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062367', 'tblTempUsageDetail_20' ) start [2024-12-20 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062367', 'tblTempUsageDetail_20' ) end [2024-12-20 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062367', 'tblTempVendorCDR_20' ) start [2024-12-20 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062367', 'tblTempVendorCDR_20' ) end [2024-12-20 10:59:27] Production.INFO: ProcessCDR(1,14062367,1,1,2) [2024-12-20 10:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 10:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 10:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062367', 'tblTempUsageDetail_20' ) start [2024-12-20 10:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062367', 'tblTempUsageDetail_20' ) end [2024-12-20 10:59:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 10:59:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 10:59:32] Production.INFO: ==31584== Releasing lock... [2024-12-20 10:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 10:59:32] Production.INFO: 55 MB #Memory Used# [2024-12-20 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:00:05 [end_date_ymd] => 2024-12-20 11:00:05 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:00:05' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:00:25] Production.INFO: count ==3507 [2024-12-20 11:00:26] Production.ERROR: pbx CDR StartTime 2024-12-20 08:00:05 - End Time 2024-12-20 11:00:05 [2024-12-20 11:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062373', 'tblTempUsageDetail_20' ) start [2024-12-20 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062373', 'tblTempUsageDetail_20' ) end [2024-12-20 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062373', 'tblTempVendorCDR_20' ) start [2024-12-20 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062373', 'tblTempVendorCDR_20' ) end [2024-12-20 11:00:26] Production.INFO: ProcessCDR(1,14062373,1,1,2) [2024-12-20 11:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062373', 'tblTempUsageDetail_20' ) start [2024-12-20 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062373', 'tblTempUsageDetail_20' ) end [2024-12-20 11:00:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:00:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:00:31] Production.INFO: ==31656== Releasing lock... [2024-12-20 11:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:00:31] Production.INFO: 55.25 MB #Memory Used# [2024-12-20 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:01:04 [end_date_ymd] => 2024-12-20 11:01:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:01:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:01:25] Production.INFO: count ==3623 [2024-12-20 11:01:26] Production.ERROR: pbx CDR StartTime 2024-12-20 08:01:04 - End Time 2024-12-20 11:01:04 [2024-12-20 11:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062378', 'tblTempUsageDetail_20' ) start [2024-12-20 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062378', 'tblTempUsageDetail_20' ) end [2024-12-20 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062378', 'tblTempVendorCDR_20' ) start [2024-12-20 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062378', 'tblTempVendorCDR_20' ) end [2024-12-20 11:01:26] Production.INFO: ProcessCDR(1,14062378,1,1,2) [2024-12-20 11:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062378', 'tblTempUsageDetail_20' ) start [2024-12-20 11:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062378', 'tblTempUsageDetail_20' ) end [2024-12-20 11:01:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:01:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:01:31] Production.INFO: ==31779== Releasing lock... [2024-12-20 11:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:01:31] Production.INFO: 55.25 MB #Memory Used# [2024-12-20 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:02:04 [end_date_ymd] => 2024-12-20 11:02:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:02:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:02:30] Production.INFO: count ==3633 [2024-12-20 11:02:32] Production.ERROR: pbx CDR StartTime 2024-12-20 08:02:04 - End Time 2024-12-20 11:02:04 [2024-12-20 11:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062383', 'tblTempUsageDetail_20' ) start [2024-12-20 11:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062383', 'tblTempUsageDetail_20' ) end [2024-12-20 11:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062383', 'tblTempVendorCDR_20' ) start [2024-12-20 11:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062383', 'tblTempVendorCDR_20' ) end [2024-12-20 11:02:32] Production.INFO: ProcessCDR(1,14062383,1,1,2) [2024-12-20 11:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062383', 'tblTempUsageDetail_20' ) start [2024-12-20 11:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062383', 'tblTempUsageDetail_20' ) end [2024-12-20 11:02:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:02:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:02:36] Production.INFO: ==31889== Releasing lock... [2024-12-20 11:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:02:36] Production.INFO: 55.25 MB #Memory Used# [2024-12-20 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:03:05 [end_date_ymd] => 2024-12-20 11:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:03:30] Production.INFO: count ==3636 [2024-12-20 11:03:31] Production.ERROR: pbx CDR StartTime 2024-12-20 08:03:05 - End Time 2024-12-20 11:03:05 [2024-12-20 11:03:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062388', 'tblTempUsageDetail_20' ) start [2024-12-20 11:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062388', 'tblTempUsageDetail_20' ) end [2024-12-20 11:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062388', 'tblTempVendorCDR_20' ) start [2024-12-20 11:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062388', 'tblTempVendorCDR_20' ) end [2024-12-20 11:03:31] Production.INFO: ProcessCDR(1,14062388,1,1,2) [2024-12-20 11:03:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:03:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062388', 'tblTempUsageDetail_20' ) start [2024-12-20 11:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062388', 'tblTempUsageDetail_20' ) end [2024-12-20 11:03:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:03:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:03:36] Production.INFO: ==31962== Releasing lock... [2024-12-20 11:03:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:03:36] Production.INFO: 55.25 MB #Memory Used# [2024-12-20 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:04:04 [end_date_ymd] => 2024-12-20 11:04:04 [RateCDR] => 1 ) [2024-12-20 11:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:04:04' and `end` < '2024-12-20 11:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:04:30] Production.INFO: count ==3653 [2024-12-20 11:04:32] Production.ERROR: pbx CDR StartTime 2024-12-20 08:04:04 - End Time 2024-12-20 11:04:04 [2024-12-20 11:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062393', 'tblTempUsageDetail_20' ) start [2024-12-20 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062393', 'tblTempUsageDetail_20' ) end [2024-12-20 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062393', 'tblTempVendorCDR_20' ) start [2024-12-20 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062393', 'tblTempVendorCDR_20' ) end [2024-12-20 11:04:32] Production.INFO: ProcessCDR(1,14062393,1,1,2) [2024-12-20 11:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062393', 'tblTempUsageDetail_20' ) start [2024-12-20 11:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062393', 'tblTempUsageDetail_20' ) end [2024-12-20 11:04:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:04:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:04:36] Production.INFO: ==32034== Releasing lock... [2024-12-20 11:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:04:36] Production.INFO: 55.25 MB #Memory Used# [2024-12-20 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:05:04 [end_date_ymd] => 2024-12-20 11:05:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:05:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:05:31] Production.INFO: count ==3664 [2024-12-20 11:05:33] Production.ERROR: pbx CDR StartTime 2024-12-20 08:05:04 - End Time 2024-12-20 11:05:04 [2024-12-20 11:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062398', 'tblTempUsageDetail_20' ) start [2024-12-20 11:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062398', 'tblTempUsageDetail_20' ) end [2024-12-20 11:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062398', 'tblTempVendorCDR_20' ) start [2024-12-20 11:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062398', 'tblTempVendorCDR_20' ) end [2024-12-20 11:05:33] Production.INFO: ProcessCDR(1,14062398,1,1,2) [2024-12-20 11:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:05:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:05:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062398', 'tblTempUsageDetail_20' ) start [2024-12-20 11:05:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062398', 'tblTempUsageDetail_20' ) end [2024-12-20 11:05:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:05:38] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:05:38] Production.INFO: ==32185== Releasing lock... [2024-12-20 11:05:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:05:38] Production.INFO: 56 MB #Memory Used# [2024-12-20 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:06:05 [end_date_ymd] => 2024-12-20 11:06:05 [RateCDR] => 1 ) [2024-12-20 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:06:05' and `end` < '2024-12-20 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:06:29] Production.INFO: count ==3679 [2024-12-20 11:06:30] Production.ERROR: pbx CDR StartTime 2024-12-20 08:06:05 - End Time 2024-12-20 11:06:05 [2024-12-20 11:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062403', 'tblTempUsageDetail_20' ) start [2024-12-20 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062403', 'tblTempUsageDetail_20' ) end [2024-12-20 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062403', 'tblTempVendorCDR_20' ) start [2024-12-20 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062403', 'tblTempVendorCDR_20' ) end [2024-12-20 11:06:30] Production.INFO: ProcessCDR(1,14062403,1,1,2) [2024-12-20 11:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062403', 'tblTempUsageDetail_20' ) start [2024-12-20 11:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062403', 'tblTempUsageDetail_20' ) end [2024-12-20 11:06:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:06:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:06:35] Production.INFO: ==32259== Releasing lock... [2024-12-20 11:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:06:35] Production.INFO: 56 MB #Memory Used# [2024-12-20 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:07:04 [end_date_ymd] => 2024-12-20 11:07:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:07:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:07:23] Production.INFO: count ==3689 [2024-12-20 11:07:24] Production.ERROR: pbx CDR StartTime 2024-12-20 08:07:04 - End Time 2024-12-20 11:07:04 [2024-12-20 11:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062408', 'tblTempUsageDetail_20' ) start [2024-12-20 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062408', 'tblTempUsageDetail_20' ) end [2024-12-20 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062408', 'tblTempVendorCDR_20' ) start [2024-12-20 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062408', 'tblTempVendorCDR_20' ) end [2024-12-20 11:07:24] Production.INFO: ProcessCDR(1,14062408,1,1,2) [2024-12-20 11:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062408', 'tblTempUsageDetail_20' ) start [2024-12-20 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062408', 'tblTempUsageDetail_20' ) end [2024-12-20 11:07:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:07:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:07:29] Production.INFO: ==32331== Releasing lock... [2024-12-20 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:07:29] Production.INFO: 55.5 MB #Memory Used# [2024-12-20 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:08:05 [end_date_ymd] => 2024-12-20 11:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:08:20] Production.INFO: count ==3720 [2024-12-20 11:08:22] Production.ERROR: pbx CDR StartTime 2024-12-20 08:08:05 - End Time 2024-12-20 11:08:05 [2024-12-20 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062413', 'tblTempUsageDetail_20' ) start [2024-12-20 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062413', 'tblTempUsageDetail_20' ) end [2024-12-20 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062413', 'tblTempVendorCDR_20' ) start [2024-12-20 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062413', 'tblTempVendorCDR_20' ) end [2024-12-20 11:08:22] Production.INFO: ProcessCDR(1,14062413,1,1,2) [2024-12-20 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062413', 'tblTempUsageDetail_20' ) start [2024-12-20 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062413', 'tblTempUsageDetail_20' ) end [2024-12-20 11:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:08:27] Production.INFO: ==32482== Releasing lock... [2024-12-20 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:08:27] Production.INFO: 56.5 MB #Memory Used# [2024-12-20 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:09:04 [end_date_ymd] => 2024-12-20 11:09:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:09:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:09:26] Production.INFO: count ==3736 [2024-12-20 11:09:27] Production.ERROR: pbx CDR StartTime 2024-12-20 08:09:04 - End Time 2024-12-20 11:09:04 [2024-12-20 11:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062418', 'tblTempUsageDetail_20' ) start [2024-12-20 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062418', 'tblTempUsageDetail_20' ) end [2024-12-20 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062418', 'tblTempVendorCDR_20' ) start [2024-12-20 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062418', 'tblTempVendorCDR_20' ) end [2024-12-20 11:09:27] Production.INFO: ProcessCDR(1,14062418,1,1,2) [2024-12-20 11:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062418', 'tblTempUsageDetail_20' ) start [2024-12-20 11:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062418', 'tblTempUsageDetail_20' ) end [2024-12-20 11:09:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:09:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:09:32] Production.INFO: ==32589== Releasing lock... [2024-12-20 11:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:09:32] Production.INFO: 56 MB #Memory Used# [2024-12-20 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:10:05 [end_date_ymd] => 2024-12-20 11:10:05 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:10:05' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:10:26] Production.INFO: count ==3761 [2024-12-20 11:10:27] Production.ERROR: pbx CDR StartTime 2024-12-20 08:10:05 - End Time 2024-12-20 11:10:05 [2024-12-20 11:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062424', 'tblTempUsageDetail_20' ) start [2024-12-20 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062424', 'tblTempUsageDetail_20' ) end [2024-12-20 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062424', 'tblTempVendorCDR_20' ) start [2024-12-20 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062424', 'tblTempVendorCDR_20' ) end [2024-12-20 11:10:27] Production.INFO: ProcessCDR(1,14062424,1,1,2) [2024-12-20 11:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062424', 'tblTempUsageDetail_20' ) start [2024-12-20 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062424', 'tblTempUsageDetail_20' ) end [2024-12-20 11:10:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:10:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:10:32] Production.INFO: ==32662== Releasing lock... [2024-12-20 11:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:10:32] Production.INFO: 56 MB #Memory Used# [2024-12-20 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:11:05 [end_date_ymd] => 2024-12-20 11:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:11:27] Production.INFO: count ==3878 [2024-12-20 11:11:29] Production.ERROR: pbx CDR StartTime 2024-12-20 08:11:05 - End Time 2024-12-20 11:11:05 [2024-12-20 11:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062429', 'tblTempUsageDetail_20' ) start [2024-12-20 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062429', 'tblTempUsageDetail_20' ) end [2024-12-20 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062429', 'tblTempVendorCDR_20' ) start [2024-12-20 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062429', 'tblTempVendorCDR_20' ) end [2024-12-20 11:11:29] Production.INFO: ProcessCDR(1,14062429,1,1,2) [2024-12-20 11:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062429', 'tblTempUsageDetail_20' ) start [2024-12-20 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062429', 'tblTempUsageDetail_20' ) end [2024-12-20 11:11:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:11:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:11:34] Production.INFO: ==32736== Releasing lock... [2024-12-20 11:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:11:34] Production.INFO: 57.5 MB #Memory Used# [2024-12-20 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:12:05 [end_date_ymd] => 2024-12-20 11:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:12:26] Production.INFO: count ==3897 [2024-12-20 11:12:27] Production.ERROR: pbx CDR StartTime 2024-12-20 08:12:05 - End Time 2024-12-20 11:12:05 [2024-12-20 11:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062434', 'tblTempUsageDetail_20' ) start [2024-12-20 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062434', 'tblTempUsageDetail_20' ) end [2024-12-20 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062434', 'tblTempVendorCDR_20' ) start [2024-12-20 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062434', 'tblTempVendorCDR_20' ) end [2024-12-20 11:12:27] Production.INFO: ProcessCDR(1,14062434,1,1,2) [2024-12-20 11:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062434', 'tblTempUsageDetail_20' ) start [2024-12-20 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062434', 'tblTempUsageDetail_20' ) end [2024-12-20 11:12:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:12:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:12:32] Production.INFO: ==440== Releasing lock... [2024-12-20 11:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:12:32] Production.INFO: 57 MB #Memory Used# [2024-12-20 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:13:05 [end_date_ymd] => 2024-12-20 11:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:13:22] Production.INFO: count ==3874 [2024-12-20 11:13:23] Production.ERROR: pbx CDR StartTime 2024-12-20 08:13:05 - End Time 2024-12-20 11:13:05 [2024-12-20 11:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062439', 'tblTempUsageDetail_20' ) start [2024-12-20 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062439', 'tblTempUsageDetail_20' ) end [2024-12-20 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062439', 'tblTempVendorCDR_20' ) start [2024-12-20 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062439', 'tblTempVendorCDR_20' ) end [2024-12-20 11:13:23] Production.INFO: ProcessCDR(1,14062439,1,1,2) [2024-12-20 11:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062439', 'tblTempUsageDetail_20' ) start [2024-12-20 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062439', 'tblTempUsageDetail_20' ) end [2024-12-20 11:13:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:13:27] Production.INFO: ==520== Releasing lock... [2024-12-20 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:13:27] Production.INFO: 57 MB #Memory Used# [2024-12-20 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:14:05 [end_date_ymd] => 2024-12-20 11:14:05 [RateCDR] => 1 ) [2024-12-20 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:14:05' and `end` < '2024-12-20 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:14:27] Production.INFO: count ==3861 [2024-12-20 11:14:28] Production.ERROR: pbx CDR StartTime 2024-12-20 08:14:05 - End Time 2024-12-20 11:14:05 [2024-12-20 11:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062444', 'tblTempUsageDetail_20' ) start [2024-12-20 11:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062444', 'tblTempUsageDetail_20' ) end [2024-12-20 11:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062444', 'tblTempVendorCDR_20' ) start [2024-12-20 11:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062444', 'tblTempVendorCDR_20' ) end [2024-12-20 11:14:28] Production.INFO: ProcessCDR(1,14062444,1,1,2) [2024-12-20 11:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062444', 'tblTempUsageDetail_20' ) start [2024-12-20 11:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062444', 'tblTempUsageDetail_20' ) end [2024-12-20 11:14:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:14:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:14:33] Production.INFO: ==592== Releasing lock... [2024-12-20 11:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:14:33] Production.INFO: 56.75 MB #Memory Used# [2024-12-20 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:15:05 [end_date_ymd] => 2024-12-20 11:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:15:28] Production.INFO: count ==3901 [2024-12-20 11:15:29] Production.ERROR: pbx CDR StartTime 2024-12-20 08:15:05 - End Time 2024-12-20 11:15:05 [2024-12-20 11:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062449', 'tblTempUsageDetail_20' ) start [2024-12-20 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062449', 'tblTempUsageDetail_20' ) end [2024-12-20 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062449', 'tblTempVendorCDR_20' ) start [2024-12-20 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062449', 'tblTempVendorCDR_20' ) end [2024-12-20 11:15:30] Production.INFO: ProcessCDR(1,14062449,1,1,2) [2024-12-20 11:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062449', 'tblTempUsageDetail_20' ) start [2024-12-20 11:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062449', 'tblTempUsageDetail_20' ) end [2024-12-20 11:15:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:15:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:15:35] Production.INFO: ==776== Releasing lock... [2024-12-20 11:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:15:35] Production.INFO: 57.25 MB #Memory Used# [2024-12-20 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:16:05 [end_date_ymd] => 2024-12-20 11:16:05 [RateCDR] => 1 ) [2024-12-20 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:16:05' and `end` < '2024-12-20 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:16:25] Production.INFO: count ==3905 [2024-12-20 11:16:26] Production.ERROR: pbx CDR StartTime 2024-12-20 08:16:05 - End Time 2024-12-20 11:16:05 [2024-12-20 11:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062454', 'tblTempUsageDetail_20' ) start [2024-12-20 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062454', 'tblTempUsageDetail_20' ) end [2024-12-20 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062454', 'tblTempVendorCDR_20' ) start [2024-12-20 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062454', 'tblTempVendorCDR_20' ) end [2024-12-20 11:16:26] Production.INFO: ProcessCDR(1,14062454,1,1,2) [2024-12-20 11:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062454', 'tblTempUsageDetail_20' ) start [2024-12-20 11:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062454', 'tblTempUsageDetail_20' ) end [2024-12-20 11:16:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:16:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:16:31] Production.INFO: ==846== Releasing lock... [2024-12-20 11:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:16:31] Production.INFO: 57.25 MB #Memory Used# [2024-12-20 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:17:05 [end_date_ymd] => 2024-12-20 11:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:17:28] Production.INFO: count ==3923 [2024-12-20 11:17:29] Production.ERROR: pbx CDR StartTime 2024-12-20 08:17:05 - End Time 2024-12-20 11:17:05 [2024-12-20 11:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062459', 'tblTempUsageDetail_20' ) start [2024-12-20 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062459', 'tblTempUsageDetail_20' ) end [2024-12-20 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062459', 'tblTempVendorCDR_20' ) start [2024-12-20 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062459', 'tblTempVendorCDR_20' ) end [2024-12-20 11:17:29] Production.INFO: ProcessCDR(1,14062459,1,1,2) [2024-12-20 11:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062459', 'tblTempUsageDetail_20' ) start [2024-12-20 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062459', 'tblTempUsageDetail_20' ) end [2024-12-20 11:17:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:17:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:17:34] Production.INFO: ==917== Releasing lock... [2024-12-20 11:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:17:34] Production.INFO: 57.25 MB #Memory Used# [2024-12-20 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:18:04 [end_date_ymd] => 2024-12-20 11:18:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:18:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:18:31] Production.INFO: count ==3934 [2024-12-20 11:18:33] Production.ERROR: pbx CDR StartTime 2024-12-20 08:18:04 - End Time 2024-12-20 11:18:04 [2024-12-20 11:18:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062464', 'tblTempUsageDetail_20' ) start [2024-12-20 11:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062464', 'tblTempUsageDetail_20' ) end [2024-12-20 11:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062464', 'tblTempVendorCDR_20' ) start [2024-12-20 11:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062464', 'tblTempVendorCDR_20' ) end [2024-12-20 11:18:33] Production.INFO: ProcessCDR(1,14062464,1,1,2) [2024-12-20 11:18:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:18:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:18:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:18:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062464', 'tblTempUsageDetail_20' ) start [2024-12-20 11:18:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062464', 'tblTempUsageDetail_20' ) end [2024-12-20 11:18:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:18:38] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:18:38] Production.INFO: ==991== Releasing lock... [2024-12-20 11:18:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:18:38] Production.INFO: 57.5 MB #Memory Used# [2024-12-20 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:19:05 [end_date_ymd] => 2024-12-20 11:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:19:24] Production.INFO: count ==3975 [2024-12-20 11:19:26] Production.ERROR: pbx CDR StartTime 2024-12-20 08:19:05 - End Time 2024-12-20 11:19:05 [2024-12-20 11:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062469', 'tblTempUsageDetail_20' ) start [2024-12-20 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062469', 'tblTempUsageDetail_20' ) end [2024-12-20 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062469', 'tblTempVendorCDR_20' ) start [2024-12-20 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062469', 'tblTempVendorCDR_20' ) end [2024-12-20 11:19:26] Production.INFO: ProcessCDR(1,14062469,1,1,2) [2024-12-20 11:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062469', 'tblTempUsageDetail_20' ) start [2024-12-20 11:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062469', 'tblTempUsageDetail_20' ) end [2024-12-20 11:19:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:19:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:19:30] Production.INFO: ==1062== Releasing lock... [2024-12-20 11:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:19:30] Production.INFO: 57.75 MB #Memory Used# [2024-12-20 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:20:05 [end_date_ymd] => 2024-12-20 11:20:05 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:20:05' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:20:23] Production.INFO: count ==3969 [2024-12-20 11:20:25] Production.ERROR: pbx CDR StartTime 2024-12-20 08:20:05 - End Time 2024-12-20 11:20:05 [2024-12-20 11:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062474', 'tblTempUsageDetail_20' ) start [2024-12-20 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062474', 'tblTempUsageDetail_20' ) end [2024-12-20 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062474', 'tblTempVendorCDR_20' ) start [2024-12-20 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062474', 'tblTempVendorCDR_20' ) end [2024-12-20 11:20:25] Production.INFO: ProcessCDR(1,14062474,1,1,2) [2024-12-20 11:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062474', 'tblTempUsageDetail_20' ) start [2024-12-20 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062474', 'tblTempUsageDetail_20' ) end [2024-12-20 11:20:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:20:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:20:30] Production.INFO: ==1142== Releasing lock... [2024-12-20 11:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:20:30] Production.INFO: 57.75 MB #Memory Used# [2024-12-20 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:21:05 [end_date_ymd] => 2024-12-20 11:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:21:23] Production.INFO: count ==4044 [2024-12-20 11:21:24] Production.ERROR: pbx CDR StartTime 2024-12-20 08:21:05 - End Time 2024-12-20 11:21:05 [2024-12-20 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062480', 'tblTempUsageDetail_20' ) start [2024-12-20 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062480', 'tblTempUsageDetail_20' ) end [2024-12-20 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062480', 'tblTempVendorCDR_20' ) start [2024-12-20 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062480', 'tblTempVendorCDR_20' ) end [2024-12-20 11:21:24] Production.INFO: ProcessCDR(1,14062480,1,1,2) [2024-12-20 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062480', 'tblTempUsageDetail_20' ) start [2024-12-20 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062480', 'tblTempUsageDetail_20' ) end [2024-12-20 11:21:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:21:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:21:29] Production.INFO: ==1222== Releasing lock... [2024-12-20 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:21:29] Production.INFO: 58.25 MB #Memory Used# [2024-12-20 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:22:05 [end_date_ymd] => 2024-12-20 11:22:05 [RateCDR] => 1 ) [2024-12-20 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:22:05' and `end` < '2024-12-20 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:22:28] Production.INFO: count ==4044 [2024-12-20 11:22:30] Production.ERROR: pbx CDR StartTime 2024-12-20 08:22:05 - End Time 2024-12-20 11:22:05 [2024-12-20 11:22:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062485', 'tblTempUsageDetail_20' ) start [2024-12-20 11:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062485', 'tblTempUsageDetail_20' ) end [2024-12-20 11:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062485', 'tblTempVendorCDR_20' ) start [2024-12-20 11:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062485', 'tblTempVendorCDR_20' ) end [2024-12-20 11:22:30] Production.INFO: ProcessCDR(1,14062485,1,1,2) [2024-12-20 11:22:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062485', 'tblTempUsageDetail_20' ) start [2024-12-20 11:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062485', 'tblTempUsageDetail_20' ) end [2024-12-20 11:22:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:22:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:22:34] Production.INFO: ==1313== Releasing lock... [2024-12-20 11:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:22:34] Production.INFO: 58.25 MB #Memory Used# [2024-12-20 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:23:05 [end_date_ymd] => 2024-12-20 11:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:23:24] Production.INFO: count ==4026 [2024-12-20 11:23:26] Production.ERROR: pbx CDR StartTime 2024-12-20 08:23:05 - End Time 2024-12-20 11:23:05 [2024-12-20 11:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062490', 'tblTempUsageDetail_20' ) start [2024-12-20 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062490', 'tblTempUsageDetail_20' ) end [2024-12-20 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062490', 'tblTempVendorCDR_20' ) start [2024-12-20 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062490', 'tblTempVendorCDR_20' ) end [2024-12-20 11:23:26] Production.INFO: ProcessCDR(1,14062490,1,1,2) [2024-12-20 11:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062490', 'tblTempUsageDetail_20' ) start [2024-12-20 11:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062490', 'tblTempUsageDetail_20' ) end [2024-12-20 11:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:23:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:23:31] Production.INFO: ==1383== Releasing lock... [2024-12-20 11:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:23:31] Production.INFO: 58 MB #Memory Used# [2024-12-20 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:24:05 [end_date_ymd] => 2024-12-20 11:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:24:20] Production.INFO: count ==4029 [2024-12-20 11:24:22] Production.ERROR: pbx CDR StartTime 2024-12-20 08:24:05 - End Time 2024-12-20 11:24:05 [2024-12-20 11:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062495', 'tblTempUsageDetail_20' ) start [2024-12-20 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062495', 'tblTempUsageDetail_20' ) end [2024-12-20 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062495', 'tblTempVendorCDR_20' ) start [2024-12-20 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062495', 'tblTempVendorCDR_20' ) end [2024-12-20 11:24:22] Production.INFO: ProcessCDR(1,14062495,1,1,2) [2024-12-20 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062495', 'tblTempUsageDetail_20' ) start [2024-12-20 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062495', 'tblTempUsageDetail_20' ) end [2024-12-20 11:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:24:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:24:26] Production.INFO: ==1493== Releasing lock... [2024-12-20 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:24:26] Production.INFO: 58 MB #Memory Used# [2024-12-20 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:25:04 [end_date_ymd] => 2024-12-20 11:25:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:25:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:25:21] Production.INFO: count ==4016 [2024-12-20 11:25:22] Production.ERROR: pbx CDR StartTime 2024-12-20 08:25:04 - End Time 2024-12-20 11:25:04 [2024-12-20 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062500', 'tblTempUsageDetail_20' ) start [2024-12-20 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062500', 'tblTempUsageDetail_20' ) end [2024-12-20 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062500', 'tblTempVendorCDR_20' ) start [2024-12-20 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062500', 'tblTempVendorCDR_20' ) end [2024-12-20 11:25:23] Production.INFO: ProcessCDR(1,14062500,1,1,2) [2024-12-20 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062500', 'tblTempUsageDetail_20' ) start [2024-12-20 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062500', 'tblTempUsageDetail_20' ) end [2024-12-20 11:25:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:25:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:25:26] Production.INFO: ==1600== Releasing lock... [2024-12-20 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:25:26] Production.INFO: 58 MB #Memory Used# [2024-12-20 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:26:05 [end_date_ymd] => 2024-12-20 11:26:05 [RateCDR] => 1 ) [2024-12-20 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:26:05' and `end` < '2024-12-20 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:26:22] Production.INFO: count ==4032 [2024-12-20 11:26:23] Production.ERROR: pbx CDR StartTime 2024-12-20 08:26:05 - End Time 2024-12-20 11:26:05 [2024-12-20 11:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062505', 'tblTempUsageDetail_20' ) start [2024-12-20 11:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062505', 'tblTempUsageDetail_20' ) end [2024-12-20 11:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062505', 'tblTempVendorCDR_20' ) start [2024-12-20 11:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062505', 'tblTempVendorCDR_20' ) end [2024-12-20 11:26:24] Production.INFO: ProcessCDR(1,14062505,1,1,2) [2024-12-20 11:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062505', 'tblTempUsageDetail_20' ) start [2024-12-20 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062505', 'tblTempUsageDetail_20' ) end [2024-12-20 11:26:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:26:28] Production.INFO: ==1671== Releasing lock... [2024-12-20 11:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:26:28] Production.INFO: 58 MB #Memory Used# [2024-12-20 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:27:05 [end_date_ymd] => 2024-12-20 11:27:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:27:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:27:21] Production.INFO: count ==4052 [2024-12-20 11:27:22] Production.ERROR: pbx CDR StartTime 2024-12-20 08:27:05 - End Time 2024-12-20 11:27:05 [2024-12-20 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062510', 'tblTempUsageDetail_20' ) start [2024-12-20 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062510', 'tblTempUsageDetail_20' ) end [2024-12-20 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062510', 'tblTempVendorCDR_20' ) start [2024-12-20 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062510', 'tblTempVendorCDR_20' ) end [2024-12-20 11:27:22] Production.INFO: ProcessCDR(1,14062510,1,1,2) [2024-12-20 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062510', 'tblTempUsageDetail_20' ) start [2024-12-20 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062510', 'tblTempUsageDetail_20' ) end [2024-12-20 11:27:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:27:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:27:27] Production.INFO: ==1751== Releasing lock... [2024-12-20 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:27:27] Production.INFO: 58.25 MB #Memory Used# [2024-12-20 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:28:05 [end_date_ymd] => 2024-12-20 11:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:28:25] Production.INFO: count ==4072 [2024-12-20 11:28:26] Production.ERROR: pbx CDR StartTime 2024-12-20 08:28:05 - End Time 2024-12-20 11:28:05 [2024-12-20 11:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062515', 'tblTempUsageDetail_20' ) start [2024-12-20 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062515', 'tblTempUsageDetail_20' ) end [2024-12-20 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062515', 'tblTempVendorCDR_20' ) start [2024-12-20 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062515', 'tblTempVendorCDR_20' ) end [2024-12-20 11:28:26] Production.INFO: ProcessCDR(1,14062515,1,1,2) [2024-12-20 11:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062515', 'tblTempUsageDetail_20' ) start [2024-12-20 11:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062515', 'tblTempUsageDetail_20' ) end [2024-12-20 11:28:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:28:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:28:31] Production.INFO: ==1832== Releasing lock... [2024-12-20 11:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:28:31] Production.INFO: 58.5 MB #Memory Used# [2024-12-20 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:29:04 [end_date_ymd] => 2024-12-20 11:29:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:29:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:29:26] Production.INFO: count ==4092 [2024-12-20 11:29:27] Production.ERROR: pbx CDR StartTime 2024-12-20 08:29:04 - End Time 2024-12-20 11:29:04 [2024-12-20 11:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062520', 'tblTempUsageDetail_20' ) start [2024-12-20 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062520', 'tblTempUsageDetail_20' ) end [2024-12-20 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062520', 'tblTempVendorCDR_20' ) start [2024-12-20 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062520', 'tblTempVendorCDR_20' ) end [2024-12-20 11:29:27] Production.INFO: ProcessCDR(1,14062520,1,1,2) [2024-12-20 11:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062520', 'tblTempUsageDetail_20' ) start [2024-12-20 11:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062520', 'tblTempUsageDetail_20' ) end [2024-12-20 11:29:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:29:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:29:32] Production.INFO: ==1905== Releasing lock... [2024-12-20 11:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:29:32] Production.INFO: 58.5 MB #Memory Used# [2024-12-20 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:30:05 [end_date_ymd] => 2024-12-20 11:30:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:30:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:30:21] Production.INFO: count ==4081 [2024-12-20 11:30:23] Production.ERROR: pbx CDR StartTime 2024-12-20 08:30:05 - End Time 2024-12-20 11:30:05 [2024-12-20 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062525', 'tblTempUsageDetail_20' ) start [2024-12-20 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062525', 'tblTempUsageDetail_20' ) end [2024-12-20 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062525', 'tblTempVendorCDR_20' ) start [2024-12-20 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062525', 'tblTempVendorCDR_20' ) end [2024-12-20 11:30:23] Production.INFO: ProcessCDR(1,14062525,1,1,2) [2024-12-20 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062525', 'tblTempUsageDetail_20' ) start [2024-12-20 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062525', 'tblTempUsageDetail_20' ) end [2024-12-20 11:30:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:30:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:30:27] Production.INFO: ==1980== Releasing lock... [2024-12-20 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:30:27] Production.INFO: 58.75 MB #Memory Used# [2024-12-20 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:31:05 [end_date_ymd] => 2024-12-20 11:31:05 [RateCDR] => 1 ) [2024-12-20 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:31:05' and `end` < '2024-12-20 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:31:24] Production.INFO: count ==4154 [2024-12-20 11:31:25] Production.ERROR: pbx CDR StartTime 2024-12-20 08:31:05 - End Time 2024-12-20 11:31:05 [2024-12-20 11:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062531', 'tblTempUsageDetail_20' ) start [2024-12-20 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062531', 'tblTempUsageDetail_20' ) end [2024-12-20 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062531', 'tblTempVendorCDR_20' ) start [2024-12-20 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062531', 'tblTempVendorCDR_20' ) end [2024-12-20 11:31:25] Production.INFO: ProcessCDR(1,14062531,1,1,2) [2024-12-20 11:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062531', 'tblTempUsageDetail_20' ) start [2024-12-20 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062531', 'tblTempUsageDetail_20' ) end [2024-12-20 11:31:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:31:30] Production.INFO: ==2056== Releasing lock... [2024-12-20 11:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:31:30] Production.INFO: 59 MB #Memory Used# [2024-12-20 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:32:05 [end_date_ymd] => 2024-12-20 11:32:05 [RateCDR] => 1 ) [2024-12-20 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:32:05' and `end` < '2024-12-20 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:32:22] Production.INFO: count ==4151 [2024-12-20 11:32:23] Production.ERROR: pbx CDR StartTime 2024-12-20 08:32:05 - End Time 2024-12-20 11:32:05 [2024-12-20 11:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062536', 'tblTempUsageDetail_20' ) start [2024-12-20 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062536', 'tblTempUsageDetail_20' ) end [2024-12-20 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062536', 'tblTempVendorCDR_20' ) start [2024-12-20 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062536', 'tblTempVendorCDR_20' ) end [2024-12-20 11:32:24] Production.INFO: ProcessCDR(1,14062536,1,1,2) [2024-12-20 11:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062536', 'tblTempUsageDetail_20' ) start [2024-12-20 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062536', 'tblTempUsageDetail_20' ) end [2024-12-20 11:32:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:32:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:32:28] Production.INFO: ==2138== Releasing lock... [2024-12-20 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:32:28] Production.INFO: 59 MB #Memory Used# [2024-12-20 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:33:05 [end_date_ymd] => 2024-12-20 11:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:33:24] Production.INFO: count ==4156 [2024-12-20 11:33:25] Production.ERROR: pbx CDR StartTime 2024-12-20 08:33:05 - End Time 2024-12-20 11:33:05 [2024-12-20 11:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062541', 'tblTempUsageDetail_20' ) start [2024-12-20 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062541', 'tblTempUsageDetail_20' ) end [2024-12-20 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062541', 'tblTempVendorCDR_20' ) start [2024-12-20 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062541', 'tblTempVendorCDR_20' ) end [2024-12-20 11:33:25] Production.INFO: ProcessCDR(1,14062541,1,1,2) [2024-12-20 11:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062541', 'tblTempUsageDetail_20' ) start [2024-12-20 11:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062541', 'tblTempUsageDetail_20' ) end [2024-12-20 11:33:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:33:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:33:30] Production.INFO: ==2214== Releasing lock... [2024-12-20 11:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:33:30] Production.INFO: 59 MB #Memory Used# [2024-12-20 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:34:04 [end_date_ymd] => 2024-12-20 11:34:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:34:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:34:24] Production.INFO: count ==4192 [2024-12-20 11:34:25] Production.ERROR: pbx CDR StartTime 2024-12-20 08:34:04 - End Time 2024-12-20 11:34:04 [2024-12-20 11:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062544', 'tblTempUsageDetail_20' ) start [2024-12-20 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062544', 'tblTempUsageDetail_20' ) end [2024-12-20 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062544', 'tblTempVendorCDR_20' ) start [2024-12-20 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062544', 'tblTempVendorCDR_20' ) end [2024-12-20 11:34:26] Production.INFO: ProcessCDR(1,14062544,1,1,2) [2024-12-20 11:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062544', 'tblTempUsageDetail_20' ) start [2024-12-20 11:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062544', 'tblTempUsageDetail_20' ) end [2024-12-20 11:34:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:34:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:34:30] Production.INFO: ==2295== Releasing lock... [2024-12-20 11:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:34:30] Production.INFO: 59.25 MB #Memory Used# [2024-12-20 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:35:04 [end_date_ymd] => 2024-12-20 11:35:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:35:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:35:22] Production.INFO: count ==4190 [2024-12-20 11:35:24] Production.ERROR: pbx CDR StartTime 2024-12-20 08:35:04 - End Time 2024-12-20 11:35:04 [2024-12-20 11:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062551', 'tblTempUsageDetail_20' ) start [2024-12-20 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062551', 'tblTempUsageDetail_20' ) end [2024-12-20 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062551', 'tblTempVendorCDR_20' ) start [2024-12-20 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062551', 'tblTempVendorCDR_20' ) end [2024-12-20 11:35:24] Production.INFO: ProcessCDR(1,14062551,1,1,2) [2024-12-20 11:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062551', 'tblTempUsageDetail_20' ) start [2024-12-20 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062551', 'tblTempUsageDetail_20' ) end [2024-12-20 11:35:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:35:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:35:28] Production.INFO: ==2371== Releasing lock... [2024-12-20 11:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:35:28] Production.INFO: 59.25 MB #Memory Used# [2024-12-20 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:36:05 [end_date_ymd] => 2024-12-20 11:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:36:26] Production.INFO: count ==4203 [2024-12-20 11:36:28] Production.ERROR: pbx CDR StartTime 2024-12-20 08:36:05 - End Time 2024-12-20 11:36:05 [2024-12-20 11:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062556', 'tblTempUsageDetail_20' ) start [2024-12-20 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062556', 'tblTempUsageDetail_20' ) end [2024-12-20 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062556', 'tblTempVendorCDR_20' ) start [2024-12-20 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062556', 'tblTempVendorCDR_20' ) end [2024-12-20 11:36:28] Production.INFO: ProcessCDR(1,14062556,1,1,2) [2024-12-20 11:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062556', 'tblTempUsageDetail_20' ) start [2024-12-20 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062556', 'tblTempUsageDetail_20' ) end [2024-12-20 11:36:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:36:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:36:33] Production.INFO: ==2450== Releasing lock... [2024-12-20 11:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:36:33] Production.INFO: 59.5 MB #Memory Used# [2024-12-20 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:37:04 [end_date_ymd] => 2024-12-20 11:37:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:37:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:37:26] Production.INFO: count ==4209 [2024-12-20 11:37:28] Production.ERROR: pbx CDR StartTime 2024-12-20 08:37:04 - End Time 2024-12-20 11:37:04 [2024-12-20 11:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062561', 'tblTempUsageDetail_20' ) start [2024-12-20 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062561', 'tblTempUsageDetail_20' ) end [2024-12-20 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062561', 'tblTempVendorCDR_20' ) start [2024-12-20 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062561', 'tblTempVendorCDR_20' ) end [2024-12-20 11:37:28] Production.INFO: ProcessCDR(1,14062561,1,1,2) [2024-12-20 11:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062561', 'tblTempUsageDetail_20' ) start [2024-12-20 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062561', 'tblTempUsageDetail_20' ) end [2024-12-20 11:37:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:37:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:37:32] Production.INFO: ==2529== Releasing lock... [2024-12-20 11:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:37:32] Production.INFO: 59.5 MB #Memory Used# [2024-12-20 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:38:04 [end_date_ymd] => 2024-12-20 11:38:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:38:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:38:23] Production.INFO: count ==4210 [2024-12-20 11:38:24] Production.ERROR: pbx CDR StartTime 2024-12-20 08:38:04 - End Time 2024-12-20 11:38:04 [2024-12-20 11:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062566', 'tblTempUsageDetail_20' ) start [2024-12-20 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062566', 'tblTempUsageDetail_20' ) end [2024-12-20 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062566', 'tblTempVendorCDR_20' ) start [2024-12-20 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062566', 'tblTempVendorCDR_20' ) end [2024-12-20 11:38:25] Production.INFO: ProcessCDR(1,14062566,1,1,2) [2024-12-20 11:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062566', 'tblTempUsageDetail_20' ) start [2024-12-20 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062566', 'tblTempUsageDetail_20' ) end [2024-12-20 11:38:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:38:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:38:29] Production.INFO: ==2611== Releasing lock... [2024-12-20 11:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:38:29] Production.INFO: 59.5 MB #Memory Used# [2024-12-20 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:39:05 [end_date_ymd] => 2024-12-20 11:39:05 [RateCDR] => 1 ) [2024-12-20 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:39:05' and `end` < '2024-12-20 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:39:20] Production.INFO: count ==4230 [2024-12-20 11:39:22] Production.ERROR: pbx CDR StartTime 2024-12-20 08:39:05 - End Time 2024-12-20 11:39:05 [2024-12-20 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062571', 'tblTempUsageDetail_20' ) start [2024-12-20 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062571', 'tblTempUsageDetail_20' ) end [2024-12-20 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062571', 'tblTempVendorCDR_20' ) start [2024-12-20 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062571', 'tblTempVendorCDR_20' ) end [2024-12-20 11:39:22] Production.INFO: ProcessCDR(1,14062571,1,1,2) [2024-12-20 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062571', 'tblTempUsageDetail_20' ) start [2024-12-20 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062571', 'tblTempUsageDetail_20' ) end [2024-12-20 11:39:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:39:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:39:27] Production.INFO: ==2687== Releasing lock... [2024-12-20 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:39:27] Production.INFO: 59.75 MB #Memory Used# [2024-12-20 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:40:05 [end_date_ymd] => 2024-12-20 11:40:05 [RateCDR] => 1 ) [2024-12-20 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:40:05' and `end` < '2024-12-20 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:40:28] Production.INFO: count ==4250 [2024-12-20 11:40:30] Production.ERROR: pbx CDR StartTime 2024-12-20 08:40:05 - End Time 2024-12-20 11:40:05 [2024-12-20 11:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062577', 'tblTempUsageDetail_20' ) start [2024-12-20 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062577', 'tblTempUsageDetail_20' ) end [2024-12-20 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062577', 'tblTempVendorCDR_20' ) start [2024-12-20 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062577', 'tblTempVendorCDR_20' ) end [2024-12-20 11:40:30] Production.INFO: ProcessCDR(1,14062577,1,1,2) [2024-12-20 11:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062577', 'tblTempUsageDetail_20' ) start [2024-12-20 11:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062577', 'tblTempUsageDetail_20' ) end [2024-12-20 11:40:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:40:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:40:35] Production.INFO: ==2803== Releasing lock... [2024-12-20 11:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:40:35] Production.INFO: 59.75 MB #Memory Used# [2024-12-20 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:41:05 [end_date_ymd] => 2024-12-20 11:41:05 [RateCDR] => 1 ) [2024-12-20 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:41:05' and `end` < '2024-12-20 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:41:29] Production.INFO: count ==4298 [2024-12-20 11:41:31] Production.ERROR: pbx CDR StartTime 2024-12-20 08:41:05 - End Time 2024-12-20 11:41:05 [2024-12-20 11:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062582', 'tblTempUsageDetail_20' ) start [2024-12-20 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062582', 'tblTempUsageDetail_20' ) end [2024-12-20 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062582', 'tblTempVendorCDR_20' ) start [2024-12-20 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062582', 'tblTempVendorCDR_20' ) end [2024-12-20 11:41:31] Production.INFO: ProcessCDR(1,14062582,1,1,2) [2024-12-20 11:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062582', 'tblTempUsageDetail_20' ) start [2024-12-20 11:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062582', 'tblTempUsageDetail_20' ) end [2024-12-20 11:41:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:41:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:41:36] Production.INFO: ==2891== Releasing lock... [2024-12-20 11:41:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:41:36] Production.INFO: 60.25 MB #Memory Used# [2024-12-20 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:42:05 [end_date_ymd] => 2024-12-20 11:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:42:25] Production.INFO: count ==4305 [2024-12-20 11:42:27] Production.ERROR: pbx CDR StartTime 2024-12-20 08:42:05 - End Time 2024-12-20 11:42:05 [2024-12-20 11:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062587', 'tblTempUsageDetail_20' ) start [2024-12-20 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062587', 'tblTempUsageDetail_20' ) end [2024-12-20 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062587', 'tblTempVendorCDR_20' ) start [2024-12-20 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062587', 'tblTempVendorCDR_20' ) end [2024-12-20 11:42:27] Production.INFO: ProcessCDR(1,14062587,1,1,2) [2024-12-20 11:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062587', 'tblTempUsageDetail_20' ) start [2024-12-20 11:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062587', 'tblTempUsageDetail_20' ) end [2024-12-20 11:42:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:42:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:42:31] Production.INFO: ==2973== Releasing lock... [2024-12-20 11:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:42:31] Production.INFO: 60.25 MB #Memory Used# [2024-12-20 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:43:05 [end_date_ymd] => 2024-12-20 11:43:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:43:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:43:22] Production.INFO: count ==4310 [2024-12-20 11:43:24] Production.ERROR: pbx CDR StartTime 2024-12-20 08:43:05 - End Time 2024-12-20 11:43:05 [2024-12-20 11:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062591', 'tblTempUsageDetail_20' ) start [2024-12-20 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062591', 'tblTempUsageDetail_20' ) end [2024-12-20 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062591', 'tblTempVendorCDR_20' ) start [2024-12-20 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062591', 'tblTempVendorCDR_20' ) end [2024-12-20 11:43:24] Production.INFO: ProcessCDR(1,14062591,1,1,2) [2024-12-20 11:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062591', 'tblTempUsageDetail_20' ) start [2024-12-20 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062591', 'tblTempUsageDetail_20' ) end [2024-12-20 11:43:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:43:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:43:29] Production.INFO: ==3066== Releasing lock... [2024-12-20 11:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:43:29] Production.INFO: 60.25 MB #Memory Used# [2024-12-20 11:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:44:04 [end_date_ymd] => 2024-12-20 11:44:04 [RateCDR] => 1 ) [2024-12-20 11:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:44:04' and `end` < '2024-12-20 11:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:44:22] Production.INFO: count ==4323 [2024-12-20 11:44:23] Production.ERROR: pbx CDR StartTime 2024-12-20 08:44:04 - End Time 2024-12-20 11:44:04 [2024-12-20 11:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062597', 'tblTempUsageDetail_20' ) start [2024-12-20 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062597', 'tblTempUsageDetail_20' ) end [2024-12-20 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062597', 'tblTempVendorCDR_20' ) start [2024-12-20 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062597', 'tblTempVendorCDR_20' ) end [2024-12-20 11:44:24] Production.INFO: ProcessCDR(1,14062597,1,1,2) [2024-12-20 11:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062597', 'tblTempUsageDetail_20' ) start [2024-12-20 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062597', 'tblTempUsageDetail_20' ) end [2024-12-20 11:44:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:44:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:44:29] Production.INFO: ==3153== Releasing lock... [2024-12-20 11:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:44:29] Production.INFO: 60.25 MB #Memory Used# [2024-12-20 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:45:05 [end_date_ymd] => 2024-12-20 11:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:45:18] Production.INFO: count ==4324 [2024-12-20 11:45:19] Production.ERROR: pbx CDR StartTime 2024-12-20 08:45:05 - End Time 2024-12-20 11:45:05 [2024-12-20 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062602', 'tblTempUsageDetail_20' ) start [2024-12-20 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062602', 'tblTempUsageDetail_20' ) end [2024-12-20 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062602', 'tblTempVendorCDR_20' ) start [2024-12-20 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062602', 'tblTempVendorCDR_20' ) end [2024-12-20 11:45:20] Production.INFO: ProcessCDR(1,14062602,1,1,2) [2024-12-20 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062602', 'tblTempUsageDetail_20' ) start [2024-12-20 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062602', 'tblTempUsageDetail_20' ) end [2024-12-20 11:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:45:24] Production.INFO: ==3240== Releasing lock... [2024-12-20 11:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:45:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-20 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:46:05 [end_date_ymd] => 2024-12-20 11:46:05 [RateCDR] => 1 ) [2024-12-20 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:46:05' and `end` < '2024-12-20 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:46:19] Production.INFO: count ==4340 [2024-12-20 11:46:21] Production.ERROR: pbx CDR StartTime 2024-12-20 08:46:05 - End Time 2024-12-20 11:46:05 [2024-12-20 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062607', 'tblTempUsageDetail_20' ) start [2024-12-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062607', 'tblTempUsageDetail_20' ) end [2024-12-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062607', 'tblTempVendorCDR_20' ) start [2024-12-20 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062607', 'tblTempVendorCDR_20' ) end [2024-12-20 11:46:22] Production.INFO: ProcessCDR(1,14062607,1,1,2) [2024-12-20 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062607', 'tblTempUsageDetail_20' ) start [2024-12-20 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062607', 'tblTempUsageDetail_20' ) end [2024-12-20 11:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:46:26] Production.INFO: ==3323== Releasing lock... [2024-12-20 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:46:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-20 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:47:04 [end_date_ymd] => 2024-12-20 11:47:04 [RateCDR] => 1 ) [2024-12-20 11:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 08:47:04' and `end` < '2024-12-20 11:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 11:47:19] Production.INFO: count ==4365 [2024-12-20 11:47:21] Production.ERROR: pbx CDR StartTime 2024-12-20 08:47:04 - End Time 2024-12-20 11:47:04 [2024-12-20 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062612', 'tblTempUsageDetail_20' ) start [2024-12-20 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062612', 'tblTempUsageDetail_20' ) end [2024-12-20 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062612', 'tblTempVendorCDR_20' ) start [2024-12-20 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062612', 'tblTempVendorCDR_20' ) end [2024-12-20 11:47:21] Production.INFO: ProcessCDR(1,14062612,1,1,2) [2024-12-20 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062612', 'tblTempUsageDetail_20' ) start [2024-12-20 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062612', 'tblTempUsageDetail_20' ) end [2024-12-20 11:47:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:47:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:47:26] Production.INFO: ==3411== Releasing lock... [2024-12-20 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:47:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-20 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:48:05 [end_date_ymd] => 2024-12-20 11:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:48:33] Production.INFO: count ==4384 [2024-12-20 11:48:35] Production.ERROR: pbx CDR StartTime 2024-12-20 08:48:05 - End Time 2024-12-20 11:48:05 [2024-12-20 11:48:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062617', 'tblTempUsageDetail_20' ) start [2024-12-20 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062617', 'tblTempUsageDetail_20' ) end [2024-12-20 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062617', 'tblTempVendorCDR_20' ) start [2024-12-20 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062617', 'tblTempVendorCDR_20' ) end [2024-12-20 11:48:35] Production.INFO: ProcessCDR(1,14062617,1,1,2) [2024-12-20 11:48:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:48:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:48:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:48:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062617', 'tblTempUsageDetail_20' ) start [2024-12-20 11:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062617', 'tblTempUsageDetail_20' ) end [2024-12-20 11:48:40] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:48:40] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:48:40] Production.INFO: ==3492== Releasing lock... [2024-12-20 11:48:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:48:40] Production.INFO: 61 MB #Memory Used# [2024-12-20 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:49:04 [end_date_ymd] => 2024-12-20 11:49:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:49:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:49:27] Production.INFO: count ==4427 [2024-12-20 11:49:29] Production.ERROR: pbx CDR StartTime 2024-12-20 08:49:04 - End Time 2024-12-20 11:49:04 [2024-12-20 11:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062622', 'tblTempUsageDetail_20' ) start [2024-12-20 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062622', 'tblTempUsageDetail_20' ) end [2024-12-20 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062622', 'tblTempVendorCDR_20' ) start [2024-12-20 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062622', 'tblTempVendorCDR_20' ) end [2024-12-20 11:49:29] Production.INFO: ProcessCDR(1,14062622,1,1,2) [2024-12-20 11:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062622', 'tblTempUsageDetail_20' ) start [2024-12-20 11:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062622', 'tblTempUsageDetail_20' ) end [2024-12-20 11:49:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:49:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:49:34] Production.INFO: ==3582== Releasing lock... [2024-12-20 11:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:49:34] Production.INFO: 61.25 MB #Memory Used# [2024-12-20 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:50:06 [end_date_ymd] => 2024-12-20 11:50:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:50:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:50:26] Production.INFO: count ==4430 [2024-12-20 11:50:27] Production.ERROR: pbx CDR StartTime 2024-12-20 08:50:06 - End Time 2024-12-20 11:50:06 [2024-12-20 11:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062628', 'tblTempUsageDetail_20' ) start [2024-12-20 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062628', 'tblTempUsageDetail_20' ) end [2024-12-20 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062628', 'tblTempVendorCDR_20' ) start [2024-12-20 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062628', 'tblTempVendorCDR_20' ) end [2024-12-20 11:50:28] Production.INFO: ProcessCDR(1,14062628,1,1,2) [2024-12-20 11:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062628', 'tblTempUsageDetail_20' ) start [2024-12-20 11:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062628', 'tblTempUsageDetail_20' ) end [2024-12-20 11:50:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:50:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:50:32] Production.INFO: ==3669== Releasing lock... [2024-12-20 11:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:50:32] Production.INFO: 61.25 MB #Memory Used# [2024-12-20 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:51:05 [end_date_ymd] => 2024-12-20 11:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:51:20] Production.INFO: count ==4499 [2024-12-20 11:51:21] Production.ERROR: pbx CDR StartTime 2024-12-20 08:51:05 - End Time 2024-12-20 11:51:05 [2024-12-20 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062633', 'tblTempUsageDetail_20' ) start [2024-12-20 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062633', 'tblTempUsageDetail_20' ) end [2024-12-20 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062633', 'tblTempVendorCDR_20' ) start [2024-12-20 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062633', 'tblTempVendorCDR_20' ) end [2024-12-20 11:51:22] Production.INFO: ProcessCDR(1,14062633,1,1,2) [2024-12-20 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062633', 'tblTempUsageDetail_20' ) start [2024-12-20 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062633', 'tblTempUsageDetail_20' ) end [2024-12-20 11:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:51:26] Production.INFO: ==3752== Releasing lock... [2024-12-20 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:51:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-20 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:52:05 [end_date_ymd] => 2024-12-20 11:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:52:18] Production.INFO: count ==4494 [2024-12-20 11:52:20] Production.ERROR: pbx CDR StartTime 2024-12-20 08:52:05 - End Time 2024-12-20 11:52:05 [2024-12-20 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062638', 'tblTempUsageDetail_20' ) start [2024-12-20 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062638', 'tblTempUsageDetail_20' ) end [2024-12-20 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062638', 'tblTempVendorCDR_20' ) start [2024-12-20 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062638', 'tblTempVendorCDR_20' ) end [2024-12-20 11:52:20] Production.INFO: ProcessCDR(1,14062638,1,1,2) [2024-12-20 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062638', 'tblTempUsageDetail_20' ) start [2024-12-20 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062638', 'tblTempUsageDetail_20' ) end [2024-12-20 11:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:52:24] Production.INFO: ==3835== Releasing lock... [2024-12-20 11:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:52:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-20 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:53:04 [end_date_ymd] => 2024-12-20 11:53:04 [RateCDR] => 1 ) [2024-12-20 11: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` >= '2024-12-20 08:53:04' and `end` < '2024-12-20 11: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 ,'') [2024-12-20 11:53:29] Production.INFO: count ==4509 [2024-12-20 11:53:31] Production.ERROR: pbx CDR StartTime 2024-12-20 08:53:04 - End Time 2024-12-20 11:53:04 [2024-12-20 11:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062643', 'tblTempUsageDetail_20' ) start [2024-12-20 11:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062643', 'tblTempUsageDetail_20' ) end [2024-12-20 11:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062643', 'tblTempVendorCDR_20' ) start [2024-12-20 11:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062643', 'tblTempVendorCDR_20' ) end [2024-12-20 11:53:31] Production.INFO: ProcessCDR(1,14062643,1,1,2) [2024-12-20 11:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:53:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:53:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062643', 'tblTempUsageDetail_20' ) start [2024-12-20 11:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062643', 'tblTempUsageDetail_20' ) end [2024-12-20 11:53:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:53:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:53:36] Production.INFO: ==3923== Releasing lock... [2024-12-20 11:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:53:36] Production.INFO: 61.75 MB #Memory Used# [2024-12-20 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:54:05 [end_date_ymd] => 2024-12-20 11:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:54:29] Production.INFO: count ==4512 [2024-12-20 11:54:31] Production.ERROR: pbx CDR StartTime 2024-12-20 08:54:05 - End Time 2024-12-20 11:54:05 [2024-12-20 11:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062648', 'tblTempUsageDetail_20' ) start [2024-12-20 11:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062648', 'tblTempUsageDetail_20' ) end [2024-12-20 11:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062648', 'tblTempVendorCDR_20' ) start [2024-12-20 11:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062648', 'tblTempVendorCDR_20' ) end [2024-12-20 11:54:31] Production.INFO: ProcessCDR(1,14062648,1,1,2) [2024-12-20 11:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062648', 'tblTempUsageDetail_20' ) start [2024-12-20 11:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062648', 'tblTempUsageDetail_20' ) end [2024-12-20 11:54:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:54:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:54:36] Production.INFO: ==4044== Releasing lock... [2024-12-20 11:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:54:36] Production.INFO: 61.75 MB #Memory Used# [2024-12-20 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:55:05 [end_date_ymd] => 2024-12-20 11:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:55:26] Production.INFO: count ==4515 [2024-12-20 11:55:28] Production.ERROR: pbx CDR StartTime 2024-12-20 08:55:05 - End Time 2024-12-20 11:55:05 [2024-12-20 11:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062653', 'tblTempUsageDetail_20' ) start [2024-12-20 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062653', 'tblTempUsageDetail_20' ) end [2024-12-20 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062653', 'tblTempVendorCDR_20' ) start [2024-12-20 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062653', 'tblTempVendorCDR_20' ) end [2024-12-20 11:55:28] Production.INFO: ProcessCDR(1,14062653,1,1,2) [2024-12-20 11:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062653', 'tblTempUsageDetail_20' ) start [2024-12-20 11:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062653', 'tblTempUsageDetail_20' ) end [2024-12-20 11:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:55:33] Production.INFO: ==4174== Releasing lock... [2024-12-20 11:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:55:33] Production.INFO: 61.75 MB #Memory Used# [2024-12-20 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:56:05 [end_date_ymd] => 2024-12-20 11:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:56:27] Production.INFO: count ==4520 [2024-12-20 11:56:29] Production.ERROR: pbx CDR StartTime 2024-12-20 08:56:05 - End Time 2024-12-20 11:56:05 [2024-12-20 11:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062658', 'tblTempUsageDetail_20' ) start [2024-12-20 11:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062658', 'tblTempUsageDetail_20' ) end [2024-12-20 11:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062658', 'tblTempVendorCDR_20' ) start [2024-12-20 11:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062658', 'tblTempVendorCDR_20' ) end [2024-12-20 11:56:29] Production.INFO: ProcessCDR(1,14062658,1,1,2) [2024-12-20 11:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062658', 'tblTempUsageDetail_20' ) start [2024-12-20 11:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062658', 'tblTempUsageDetail_20' ) end [2024-12-20 11:56:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:56:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:56:34] Production.INFO: ==4300== Releasing lock... [2024-12-20 11:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:56:34] Production.INFO: 61.75 MB #Memory Used# [2024-12-20 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:57:05 [end_date_ymd] => 2024-12-20 11:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:57:36] Production.INFO: count ==4521 [2024-12-20 11:57:38] Production.ERROR: pbx CDR StartTime 2024-12-20 08:57:05 - End Time 2024-12-20 11:57:05 [2024-12-20 11:57:38] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062663', 'tblTempUsageDetail_20' ) start [2024-12-20 11:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062663', 'tblTempUsageDetail_20' ) end [2024-12-20 11:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062663', 'tblTempVendorCDR_20' ) start [2024-12-20 11:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062663', 'tblTempVendorCDR_20' ) end [2024-12-20 11:57:38] Production.INFO: ProcessCDR(1,14062663,1,1,2) [2024-12-20 11:57:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:57:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:57:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:57:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:57:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062663', 'tblTempUsageDetail_20' ) start [2024-12-20 11:57:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062663', 'tblTempUsageDetail_20' ) end [2024-12-20 11:57:43] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:57:43] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:57:43] Production.INFO: ==4389== Releasing lock... [2024-12-20 11:57:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:57:43] Production.INFO: 61.75 MB #Memory Used# [2024-12-20 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:58:05 [end_date_ymd] => 2024-12-20 11:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:58:34] Production.INFO: count ==4541 [2024-12-20 11:58:36] Production.ERROR: pbx CDR StartTime 2024-12-20 08:58:05 - End Time 2024-12-20 11:58:05 [2024-12-20 11:58:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062668', 'tblTempUsageDetail_20' ) start [2024-12-20 11:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062668', 'tblTempUsageDetail_20' ) end [2024-12-20 11:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062668', 'tblTempVendorCDR_20' ) start [2024-12-20 11:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062668', 'tblTempVendorCDR_20' ) end [2024-12-20 11:58:36] Production.INFO: ProcessCDR(1,14062668,1,1,2) [2024-12-20 11:58:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:58:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:58:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:58:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062668', 'tblTempUsageDetail_20' ) start [2024-12-20 11:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062668', 'tblTempUsageDetail_20' ) end [2024-12-20 11:58:41] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:58:41] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:58:41] Production.INFO: ==4468== Releasing lock... [2024-12-20 11:58:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:58:41] Production.INFO: 62 MB #Memory Used# [2024-12-20 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 08:59:05 [end_date_ymd] => 2024-12-20 11:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 08:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 11:59:27] Production.INFO: count ==4552 [2024-12-20 11:59:29] Production.ERROR: pbx CDR StartTime 2024-12-20 08:59:05 - End Time 2024-12-20 11:59:05 [2024-12-20 11:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 11:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062673', 'tblTempUsageDetail_20' ) start [2024-12-20 11:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062673', 'tblTempUsageDetail_20' ) end [2024-12-20 11:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062673', 'tblTempVendorCDR_20' ) start [2024-12-20 11:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062673', 'tblTempVendorCDR_20' ) end [2024-12-20 11:59:29] Production.INFO: ProcessCDR(1,14062673,1,1,2) [2024-12-20 11:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 11:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 11:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062673', 'tblTempUsageDetail_20' ) start [2024-12-20 11:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062673', 'tblTempUsageDetail_20' ) end [2024-12-20 11:59:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 11:59:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 11:59:33] Production.INFO: ==4558== Releasing lock... [2024-12-20 11:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 11:59:33] Production.INFO: 62 MB #Memory Used# [2024-12-20 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:00:05 [end_date_ymd] => 2024-12-20 12:00:05 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:00:05' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:00:28] Production.INFO: count ==4572 [2024-12-20 12:00:29] Production.ERROR: pbx CDR StartTime 2024-12-20 09:00:05 - End Time 2024-12-20 12:00:05 [2024-12-20 12:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062678', 'tblTempUsageDetail_20' ) start [2024-12-20 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062678', 'tblTempUsageDetail_20' ) end [2024-12-20 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062678', 'tblTempVendorCDR_20' ) start [2024-12-20 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062678', 'tblTempVendorCDR_20' ) end [2024-12-20 12:00:29] Production.INFO: ProcessCDR(1,14062678,1,1,2) [2024-12-20 12:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062678', 'tblTempUsageDetail_20' ) start [2024-12-20 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062678', 'tblTempUsageDetail_20' ) end [2024-12-20 12:00:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:00:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:00:34] Production.INFO: ==4644== Releasing lock... [2024-12-20 12:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:00:34] Production.INFO: 62.25 MB #Memory Used# [2024-12-20 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:01:05 [end_date_ymd] => 2024-12-20 12:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:01:23] Production.INFO: count ==4631 [2024-12-20 12:01:24] Production.ERROR: pbx CDR StartTime 2024-12-20 09:01:05 - End Time 2024-12-20 12:01:05 [2024-12-20 12:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062684', 'tblTempUsageDetail_20' ) start [2024-12-20 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062684', 'tblTempUsageDetail_20' ) end [2024-12-20 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062684', 'tblTempVendorCDR_20' ) start [2024-12-20 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062684', 'tblTempVendorCDR_20' ) end [2024-12-20 12:01:25] Production.INFO: ProcessCDR(1,14062684,1,1,2) [2024-12-20 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062684', 'tblTempUsageDetail_20' ) start [2024-12-20 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062684', 'tblTempUsageDetail_20' ) end [2024-12-20 12:01:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:01:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:01:29] Production.INFO: ==4739== Releasing lock... [2024-12-20 12:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:01:29] Production.INFO: 62.75 MB #Memory Used# [2024-12-20 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:02:05 [end_date_ymd] => 2024-12-20 12:02:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:02:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:02:19] Production.INFO: count ==4650 [2024-12-20 12:02:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:02:05 - End Time 2024-12-20 12:02:05 [2024-12-20 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062689', 'tblTempUsageDetail_20' ) start [2024-12-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062689', 'tblTempUsageDetail_20' ) end [2024-12-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062689', 'tblTempVendorCDR_20' ) start [2024-12-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062689', 'tblTempVendorCDR_20' ) end [2024-12-20 12:02:21] Production.INFO: ProcessCDR(1,14062689,1,1,2) [2024-12-20 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062689', 'tblTempUsageDetail_20' ) start [2024-12-20 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062689', 'tblTempUsageDetail_20' ) end [2024-12-20 12:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:02:26] Production.INFO: ==4817== Releasing lock... [2024-12-20 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:02:26] Production.INFO: 62.75 MB #Memory Used# [2024-12-20 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:03:05 [end_date_ymd] => 2024-12-20 12:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:03:19] Production.INFO: count ==4666 [2024-12-20 12:03:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:03:05 - End Time 2024-12-20 12:03:05 [2024-12-20 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062694', 'tblTempUsageDetail_20' ) start [2024-12-20 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062694', 'tblTempUsageDetail_20' ) end [2024-12-20 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062694', 'tblTempVendorCDR_20' ) start [2024-12-20 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062694', 'tblTempVendorCDR_20' ) end [2024-12-20 12:03:21] Production.INFO: ProcessCDR(1,14062694,1,1,2) [2024-12-20 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062694', 'tblTempUsageDetail_20' ) start [2024-12-20 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062694', 'tblTempUsageDetail_20' ) end [2024-12-20 12:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:03:25] Production.INFO: ==4903== Releasing lock... [2024-12-20 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:03:25] Production.INFO: 63 MB #Memory Used# [2024-12-20 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:04:04 [end_date_ymd] => 2024-12-20 12:04:04 [RateCDR] => 1 ) [2024-12-20 12:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:04:04' and `end` < '2024-12-20 12:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:04:24] Production.INFO: count ==4685 [2024-12-20 12:04:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:04:04 - End Time 2024-12-20 12:04:04 [2024-12-20 12:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062699', 'tblTempUsageDetail_20' ) start [2024-12-20 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062699', 'tblTempUsageDetail_20' ) end [2024-12-20 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062699', 'tblTempVendorCDR_20' ) start [2024-12-20 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062699', 'tblTempVendorCDR_20' ) end [2024-12-20 12:04:26] Production.INFO: ProcessCDR(1,14062699,1,1,2) [2024-12-20 12:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062699', 'tblTempUsageDetail_20' ) start [2024-12-20 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062699', 'tblTempUsageDetail_20' ) end [2024-12-20 12:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:04:30] Production.INFO: ==4980== Releasing lock... [2024-12-20 12:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:04:30] Production.INFO: 63 MB #Memory Used# [2024-12-20 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:05:04 [end_date_ymd] => 2024-12-20 12:05:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:05:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:05:24] Production.INFO: count ==4710 [2024-12-20 12:05:26] Production.ERROR: pbx CDR StartTime 2024-12-20 09:05:04 - End Time 2024-12-20 12:05:04 [2024-12-20 12:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062704', 'tblTempUsageDetail_20' ) start [2024-12-20 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062704', 'tblTempUsageDetail_20' ) end [2024-12-20 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062704', 'tblTempVendorCDR_20' ) start [2024-12-20 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062704', 'tblTempVendorCDR_20' ) end [2024-12-20 12:05:26] Production.INFO: ProcessCDR(1,14062704,1,1,2) [2024-12-20 12:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062704', 'tblTempUsageDetail_20' ) start [2024-12-20 12:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062704', 'tblTempUsageDetail_20' ) end [2024-12-20 12:05:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:05:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:05:31] Production.INFO: ==5072== Releasing lock... [2024-12-20 12:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:05:31] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:06:05 [end_date_ymd] => 2024-12-20 12:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:06:22] Production.INFO: count ==4701 [2024-12-20 12:06:24] Production.ERROR: pbx CDR StartTime 2024-12-20 09:06:05 - End Time 2024-12-20 12:06:05 [2024-12-20 12:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062709', 'tblTempUsageDetail_20' ) start [2024-12-20 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062709', 'tblTempUsageDetail_20' ) end [2024-12-20 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062709', 'tblTempVendorCDR_20' ) start [2024-12-20 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062709', 'tblTempVendorCDR_20' ) end [2024-12-20 12:06:24] Production.INFO: ProcessCDR(1,14062709,1,1,2) [2024-12-20 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062709', 'tblTempUsageDetail_20' ) start [2024-12-20 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062709', 'tblTempUsageDetail_20' ) end [2024-12-20 12:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:06:27] Production.INFO: ==5154== Releasing lock... [2024-12-20 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:06:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:07:04 [end_date_ymd] => 2024-12-20 12:07:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:07:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:07:23] Production.INFO: count ==4689 [2024-12-20 12:07:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:07:04 - End Time 2024-12-20 12:07:04 [2024-12-20 12:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062714', 'tblTempUsageDetail_20' ) start [2024-12-20 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062714', 'tblTempUsageDetail_20' ) end [2024-12-20 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062714', 'tblTempVendorCDR_20' ) start [2024-12-20 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062714', 'tblTempVendorCDR_20' ) end [2024-12-20 12:07:25] Production.INFO: ProcessCDR(1,14062714,1,1,2) [2024-12-20 12:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062714', 'tblTempUsageDetail_20' ) start [2024-12-20 12:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062714', 'tblTempUsageDetail_20' ) end [2024-12-20 12:07:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:07:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:07:30] Production.INFO: ==5234== Releasing lock... [2024-12-20 12:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:07:30] Production.INFO: 63 MB #Memory Used# [2024-12-20 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:08:05 [end_date_ymd] => 2024-12-20 12:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:08:23] Production.INFO: count ==4688 [2024-12-20 12:08:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:08:05 - End Time 2024-12-20 12:08:05 [2024-12-20 12:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062719', 'tblTempUsageDetail_20' ) start [2024-12-20 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062719', 'tblTempUsageDetail_20' ) end [2024-12-20 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062719', 'tblTempVendorCDR_20' ) start [2024-12-20 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062719', 'tblTempVendorCDR_20' ) end [2024-12-20 12:08:25] Production.INFO: ProcessCDR(1,14062719,1,1,2) [2024-12-20 12:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062719', 'tblTempUsageDetail_20' ) start [2024-12-20 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062719', 'tblTempUsageDetail_20' ) end [2024-12-20 12:08:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:08:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:08:30] Production.INFO: ==5319== Releasing lock... [2024-12-20 12:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:08:30] Production.INFO: 63 MB #Memory Used# [2024-12-20 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:09:05 [end_date_ymd] => 2024-12-20 12:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:09:25] Production.INFO: count ==4687 [2024-12-20 12:09:27] Production.ERROR: pbx CDR StartTime 2024-12-20 09:09:05 - End Time 2024-12-20 12:09:05 [2024-12-20 12:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062724', 'tblTempUsageDetail_20' ) start [2024-12-20 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062724', 'tblTempUsageDetail_20' ) end [2024-12-20 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062724', 'tblTempVendorCDR_20' ) start [2024-12-20 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062724', 'tblTempVendorCDR_20' ) end [2024-12-20 12:09:27] Production.INFO: ProcessCDR(1,14062724,1,1,2) [2024-12-20 12:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062724', 'tblTempUsageDetail_20' ) start [2024-12-20 12:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062724', 'tblTempUsageDetail_20' ) end [2024-12-20 12:09:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:09:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:09:31] Production.INFO: ==5399== Releasing lock... [2024-12-20 12:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:09:31] Production.INFO: 63 MB #Memory Used# [2024-12-20 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:10:05 [end_date_ymd] => 2024-12-20 12:10:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:10:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:10:18] Production.INFO: count ==4689 [2024-12-20 12:10:20] Production.ERROR: pbx CDR StartTime 2024-12-20 09:10:05 - End Time 2024-12-20 12:10:05 [2024-12-20 12:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062729', 'tblTempUsageDetail_20' ) start [2024-12-20 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062729', 'tblTempUsageDetail_20' ) end [2024-12-20 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062729', 'tblTempVendorCDR_20' ) start [2024-12-20 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062729', 'tblTempVendorCDR_20' ) end [2024-12-20 12:10:20] Production.INFO: ProcessCDR(1,14062729,1,1,2) [2024-12-20 12:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062729', 'tblTempUsageDetail_20' ) start [2024-12-20 12:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062729', 'tblTempUsageDetail_20' ) end [2024-12-20 12:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:10:25] Production.INFO: ==5482== Releasing lock... [2024-12-20 12:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:10:25] Production.INFO: 63 MB #Memory Used# [2024-12-20 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:11:05 [end_date_ymd] => 2024-12-20 12:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:11:18] Production.INFO: count ==4714 [2024-12-20 12:11:19] Production.ERROR: pbx CDR StartTime 2024-12-20 09:11:05 - End Time 2024-12-20 12:11:05 [2024-12-20 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062735', 'tblTempUsageDetail_20' ) start [2024-12-20 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062735', 'tblTempUsageDetail_20' ) end [2024-12-20 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062735', 'tblTempVendorCDR_20' ) start [2024-12-20 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062735', 'tblTempVendorCDR_20' ) end [2024-12-20 12:11:20] Production.INFO: ProcessCDR(1,14062735,1,1,2) [2024-12-20 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062735', 'tblTempUsageDetail_20' ) start [2024-12-20 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062735', 'tblTempUsageDetail_20' ) end [2024-12-20 12:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:11:24] Production.INFO: ==5604== Releasing lock... [2024-12-20 12:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:11:24] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:12:04 [end_date_ymd] => 2024-12-20 12:12:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:12:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:12:17] Production.INFO: count ==4707 [2024-12-20 12:12:19] Production.ERROR: pbx CDR StartTime 2024-12-20 09:12:04 - End Time 2024-12-20 12:12:04 [2024-12-20 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062740', 'tblTempUsageDetail_20' ) start [2024-12-20 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062740', 'tblTempUsageDetail_20' ) end [2024-12-20 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062740', 'tblTempVendorCDR_20' ) start [2024-12-20 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062740', 'tblTempVendorCDR_20' ) end [2024-12-20 12:12:19] Production.INFO: ProcessCDR(1,14062740,1,1,2) [2024-12-20 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062740', 'tblTempUsageDetail_20' ) start [2024-12-20 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062740', 'tblTempUsageDetail_20' ) end [2024-12-20 12:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:12:24] Production.INFO: ==5682== Releasing lock... [2024-12-20 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:12:24] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:13:05 [end_date_ymd] => 2024-12-20 12:13:05 [RateCDR] => 1 ) [2024-12-20 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:13:05' and `end` < '2024-12-20 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:13:18] Production.INFO: count ==4709 [2024-12-20 12:13:19] Production.ERROR: pbx CDR StartTime 2024-12-20 09:13:05 - End Time 2024-12-20 12:13:05 [2024-12-20 12:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062745', 'tblTempUsageDetail_20' ) start [2024-12-20 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062745', 'tblTempUsageDetail_20' ) end [2024-12-20 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062745', 'tblTempVendorCDR_20' ) start [2024-12-20 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062745', 'tblTempVendorCDR_20' ) end [2024-12-20 12:13:20] Production.INFO: ProcessCDR(1,14062745,1,1,2) [2024-12-20 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062745', 'tblTempUsageDetail_20' ) start [2024-12-20 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062745', 'tblTempUsageDetail_20' ) end [2024-12-20 12:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:13:24] Production.INFO: ==5764== Releasing lock... [2024-12-20 12:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:13:24] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:14:05 [end_date_ymd] => 2024-12-20 12:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:14:19] Production.INFO: count ==4727 [2024-12-20 12:14:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:14:05 - End Time 2024-12-20 12:14:05 [2024-12-20 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062750', 'tblTempUsageDetail_20' ) start [2024-12-20 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062750', 'tblTempUsageDetail_20' ) end [2024-12-20 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062750', 'tblTempVendorCDR_20' ) start [2024-12-20 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062750', 'tblTempVendorCDR_20' ) end [2024-12-20 12:14:21] Production.INFO: ProcessCDR(1,14062750,1,1,2) [2024-12-20 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062750', 'tblTempUsageDetail_20' ) start [2024-12-20 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062750', 'tblTempUsageDetail_20' ) end [2024-12-20 12:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:14:25] Production.INFO: ==5848== Releasing lock... [2024-12-20 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:14:25] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:15:04 [end_date_ymd] => 2024-12-20 12:15:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:15:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:15:19] Production.INFO: count ==4718 [2024-12-20 12:15:20] Production.ERROR: pbx CDR StartTime 2024-12-20 09:15:04 - End Time 2024-12-20 12:15:04 [2024-12-20 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062755', 'tblTempUsageDetail_20' ) start [2024-12-20 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062755', 'tblTempUsageDetail_20' ) end [2024-12-20 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062755', 'tblTempVendorCDR_20' ) start [2024-12-20 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062755', 'tblTempVendorCDR_20' ) end [2024-12-20 12:15:21] Production.INFO: ProcessCDR(1,14062755,1,1,2) [2024-12-20 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062755', 'tblTempUsageDetail_20' ) start [2024-12-20 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062755', 'tblTempUsageDetail_20' ) end [2024-12-20 12:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:15:25] Production.INFO: ==5925== Releasing lock... [2024-12-20 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:15:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:16:05 [end_date_ymd] => 2024-12-20 12:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:16:18] Production.INFO: count ==4724 [2024-12-20 12:16:19] Production.ERROR: pbx CDR StartTime 2024-12-20 09:16:05 - End Time 2024-12-20 12:16:05 [2024-12-20 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062760', 'tblTempUsageDetail_20' ) start [2024-12-20 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062760', 'tblTempUsageDetail_20' ) end [2024-12-20 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062760', 'tblTempVendorCDR_20' ) start [2024-12-20 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062760', 'tblTempVendorCDR_20' ) end [2024-12-20 12:16:19] Production.INFO: ProcessCDR(1,14062760,1,1,2) [2024-12-20 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062760', 'tblTempUsageDetail_20' ) start [2024-12-20 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062760', 'tblTempUsageDetail_20' ) end [2024-12-20 12:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:16:24] Production.INFO: ==6003== Releasing lock... [2024-12-20 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:16:24] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:17:04 [end_date_ymd] => 2024-12-20 12:17:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:17:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:17:18] Production.INFO: count ==4736 [2024-12-20 12:17:19] Production.ERROR: pbx CDR StartTime 2024-12-20 09:17:04 - End Time 2024-12-20 12:17:04 [2024-12-20 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062765', 'tblTempUsageDetail_20' ) start [2024-12-20 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062765', 'tblTempUsageDetail_20' ) end [2024-12-20 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062765', 'tblTempVendorCDR_20' ) start [2024-12-20 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062765', 'tblTempVendorCDR_20' ) end [2024-12-20 12:17:19] Production.INFO: ProcessCDR(1,14062765,1,1,2) [2024-12-20 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062765', 'tblTempUsageDetail_20' ) start [2024-12-20 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062765', 'tblTempUsageDetail_20' ) end [2024-12-20 12:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:17:24] Production.INFO: ==6089== Releasing lock... [2024-12-20 12:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:17:24] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:18:05 [end_date_ymd] => 2024-12-20 12:18:05 [RateCDR] => 1 ) [2024-12-20 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:18:05' and `end` < '2024-12-20 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:18:21] Production.INFO: count ==4747 [2024-12-20 12:18:23] Production.ERROR: pbx CDR StartTime 2024-12-20 09:18:05 - End Time 2024-12-20 12:18:05 [2024-12-20 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062770', 'tblTempUsageDetail_20' ) start [2024-12-20 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062770', 'tblTempUsageDetail_20' ) end [2024-12-20 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062770', 'tblTempVendorCDR_20' ) start [2024-12-20 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062770', 'tblTempVendorCDR_20' ) end [2024-12-20 12:18:23] Production.INFO: ProcessCDR(1,14062770,1,1,2) [2024-12-20 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062770', 'tblTempUsageDetail_20' ) start [2024-12-20 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062770', 'tblTempUsageDetail_20' ) end [2024-12-20 12:18:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:18:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:18:28] Production.INFO: ==6176== Releasing lock... [2024-12-20 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:18:28] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:19:04 [end_date_ymd] => 2024-12-20 12:19:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:19:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:19:21] Production.INFO: count ==4753 [2024-12-20 12:19:22] Production.ERROR: pbx CDR StartTime 2024-12-20 09:19:04 - End Time 2024-12-20 12:19:04 [2024-12-20 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062775', 'tblTempUsageDetail_20' ) start [2024-12-20 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062775', 'tblTempUsageDetail_20' ) end [2024-12-20 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062775', 'tblTempVendorCDR_20' ) start [2024-12-20 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062775', 'tblTempVendorCDR_20' ) end [2024-12-20 12:19:23] Production.INFO: ProcessCDR(1,14062775,1,1,2) [2024-12-20 12:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062775', 'tblTempUsageDetail_20' ) start [2024-12-20 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062775', 'tblTempUsageDetail_20' ) end [2024-12-20 12:19:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:19:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:19:27] Production.INFO: ==6250== Releasing lock... [2024-12-20 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:19:27] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:20:06 [end_date_ymd] => 2024-12-20 12:20:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:20:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:20:19] Production.INFO: count ==4760 [2024-12-20 12:20:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:20:06 - End Time 2024-12-20 12:20:06 [2024-12-20 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062781', 'tblTempUsageDetail_20' ) start [2024-12-20 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062781', 'tblTempUsageDetail_20' ) end [2024-12-20 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062781', 'tblTempVendorCDR_20' ) start [2024-12-20 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062781', 'tblTempVendorCDR_20' ) end [2024-12-20 12:20:21] Production.INFO: ProcessCDR(1,14062781,1,1,2) [2024-12-20 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062781', 'tblTempUsageDetail_20' ) start [2024-12-20 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062781', 'tblTempUsageDetail_20' ) end [2024-12-20 12:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:20:25] Production.INFO: ==6330== Releasing lock... [2024-12-20 12:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:20:25] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:21:05 [end_date_ymd] => 2024-12-20 12:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:21:25] Production.INFO: count ==4789 [2024-12-20 12:21:26] Production.ERROR: pbx CDR StartTime 2024-12-20 09:21:05 - End Time 2024-12-20 12:21:05 [2024-12-20 12:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062786', 'tblTempUsageDetail_20' ) start [2024-12-20 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062786', 'tblTempUsageDetail_20' ) end [2024-12-20 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062786', 'tblTempVendorCDR_20' ) start [2024-12-20 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062786', 'tblTempVendorCDR_20' ) end [2024-12-20 12:21:27] Production.INFO: ProcessCDR(1,14062786,1,1,2) [2024-12-20 12:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062786', 'tblTempUsageDetail_20' ) start [2024-12-20 12:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062786', 'tblTempUsageDetail_20' ) end [2024-12-20 12:21:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:21:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:21:31] Production.INFO: ==6406== Releasing lock... [2024-12-20 12:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:21:31] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:22:04 [end_date_ymd] => 2024-12-20 12:22:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:22:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:22:23] Production.INFO: count ==4782 [2024-12-20 12:22:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:22:04 - End Time 2024-12-20 12:22:04 [2024-12-20 12:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062791', 'tblTempUsageDetail_20' ) start [2024-12-20 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062791', 'tblTempUsageDetail_20' ) end [2024-12-20 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062791', 'tblTempVendorCDR_20' ) start [2024-12-20 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062791', 'tblTempVendorCDR_20' ) end [2024-12-20 12:22:25] Production.INFO: ProcessCDR(1,14062791,1,1,2) [2024-12-20 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062791', 'tblTempUsageDetail_20' ) start [2024-12-20 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062791', 'tblTempUsageDetail_20' ) end [2024-12-20 12:22:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:22:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:22:29] Production.INFO: ==6484== Releasing lock... [2024-12-20 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:22:29] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:23:05 [end_date_ymd] => 2024-12-20 12:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:23:19] Production.INFO: count ==4801 [2024-12-20 12:23:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:23:05 - End Time 2024-12-20 12:23:05 [2024-12-20 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062796', 'tblTempUsageDetail_20' ) start [2024-12-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062796', 'tblTempUsageDetail_20' ) end [2024-12-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062796', 'tblTempVendorCDR_20' ) start [2024-12-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062796', 'tblTempVendorCDR_20' ) end [2024-12-20 12:23:21] Production.INFO: ProcessCDR(1,14062796,1,1,2) [2024-12-20 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062796', 'tblTempUsageDetail_20' ) start [2024-12-20 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062796', 'tblTempUsageDetail_20' ) end [2024-12-20 12:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:23:25] Production.INFO: ==6555== Releasing lock... [2024-12-20 12:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:23:25] Production.INFO: 64 MB #Memory Used# [2024-12-20 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:24:05 [end_date_ymd] => 2024-12-20 12:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:24:23] Production.INFO: count ==4787 [2024-12-20 12:24:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:24:05 - End Time 2024-12-20 12:24:05 [2024-12-20 12:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062801', 'tblTempUsageDetail_20' ) start [2024-12-20 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062801', 'tblTempUsageDetail_20' ) end [2024-12-20 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062801', 'tblTempVendorCDR_20' ) start [2024-12-20 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062801', 'tblTempVendorCDR_20' ) end [2024-12-20 12:24:25] Production.INFO: ProcessCDR(1,14062801,1,1,2) [2024-12-20 12:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062801', 'tblTempUsageDetail_20' ) start [2024-12-20 12:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062801', 'tblTempUsageDetail_20' ) end [2024-12-20 12:24:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:24:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:24:30] Production.INFO: ==6632== Releasing lock... [2024-12-20 12:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:24:30] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:25:05 [end_date_ymd] => 2024-12-20 12:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:25:26] Production.INFO: count ==4757 [2024-12-20 12:25:28] Production.ERROR: pbx CDR StartTime 2024-12-20 09:25:05 - End Time 2024-12-20 12:25:05 [2024-12-20 12:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062806', 'tblTempUsageDetail_20' ) start [2024-12-20 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062806', 'tblTempUsageDetail_20' ) end [2024-12-20 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062806', 'tblTempVendorCDR_20' ) start [2024-12-20 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062806', 'tblTempVendorCDR_20' ) end [2024-12-20 12:25:28] Production.INFO: ProcessCDR(1,14062806,1,1,2) [2024-12-20 12:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062806', 'tblTempUsageDetail_20' ) start [2024-12-20 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062806', 'tblTempUsageDetail_20' ) end [2024-12-20 12:25:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:25:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:25:33] Production.INFO: ==6709== Releasing lock... [2024-12-20 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:25:33] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:26:05 [end_date_ymd] => 2024-12-20 12:26:05 [RateCDR] => 1 ) [2024-12-20 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:26:05' and `end` < '2024-12-20 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:26:22] Production.INFO: count ==4750 [2024-12-20 12:26:24] Production.ERROR: pbx CDR StartTime 2024-12-20 09:26:05 - End Time 2024-12-20 12:26:05 [2024-12-20 12:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062811', 'tblTempUsageDetail_20' ) start [2024-12-20 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062811', 'tblTempUsageDetail_20' ) end [2024-12-20 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062811', 'tblTempVendorCDR_20' ) start [2024-12-20 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062811', 'tblTempVendorCDR_20' ) end [2024-12-20 12:26:24] Production.INFO: ProcessCDR(1,14062811,1,1,2) [2024-12-20 12:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062811', 'tblTempUsageDetail_20' ) start [2024-12-20 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062811', 'tblTempUsageDetail_20' ) end [2024-12-20 12:26:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:26:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:26:29] Production.INFO: ==6784== Releasing lock... [2024-12-20 12:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:26:29] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:27:05 [end_date_ymd] => 2024-12-20 12:27:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:27:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:27:25] Production.INFO: count ==4757 [2024-12-20 12:27:26] Production.ERROR: pbx CDR StartTime 2024-12-20 09:27:05 - End Time 2024-12-20 12:27:05 [2024-12-20 12:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062816', 'tblTempUsageDetail_20' ) start [2024-12-20 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062816', 'tblTempUsageDetail_20' ) end [2024-12-20 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062816', 'tblTempVendorCDR_20' ) start [2024-12-20 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062816', 'tblTempVendorCDR_20' ) end [2024-12-20 12:27:27] Production.INFO: ProcessCDR(1,14062816,1,1,2) [2024-12-20 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062816', 'tblTempUsageDetail_20' ) start [2024-12-20 12:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062816', 'tblTempUsageDetail_20' ) end [2024-12-20 12:27:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:27:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:27:31] Production.INFO: ==6897== Releasing lock... [2024-12-20 12:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:27:31] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:28:04 [end_date_ymd] => 2024-12-20 12:28:04 [RateCDR] => 1 ) [2024-12-20 12:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:28:04' and `end` < '2024-12-20 12:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:28:22] Production.INFO: count ==4752 [2024-12-20 12:28:23] Production.ERROR: pbx CDR StartTime 2024-12-20 09:28:04 - End Time 2024-12-20 12:28:04 [2024-12-20 12:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062821', 'tblTempUsageDetail_20' ) start [2024-12-20 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062821', 'tblTempUsageDetail_20' ) end [2024-12-20 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062821', 'tblTempVendorCDR_20' ) start [2024-12-20 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062821', 'tblTempVendorCDR_20' ) end [2024-12-20 12:28:24] Production.INFO: ProcessCDR(1,14062821,1,1,2) [2024-12-20 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062821', 'tblTempUsageDetail_20' ) start [2024-12-20 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062821', 'tblTempUsageDetail_20' ) end [2024-12-20 12:28:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:28:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:28:28] Production.INFO: ==6976== Releasing lock... [2024-12-20 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:28:28] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:29:04 [end_date_ymd] => 2024-12-20 12:29:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:29:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:29:28] Production.INFO: count ==4743 [2024-12-20 12:29:30] Production.ERROR: pbx CDR StartTime 2024-12-20 09:29:04 - End Time 2024-12-20 12:29:04 [2024-12-20 12:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062826', 'tblTempUsageDetail_20' ) start [2024-12-20 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062826', 'tblTempUsageDetail_20' ) end [2024-12-20 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062826', 'tblTempVendorCDR_20' ) start [2024-12-20 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062826', 'tblTempVendorCDR_20' ) end [2024-12-20 12:29:30] Production.INFO: ProcessCDR(1,14062826,1,1,2) [2024-12-20 12:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062826', 'tblTempUsageDetail_20' ) start [2024-12-20 12:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062826', 'tblTempUsageDetail_20' ) end [2024-12-20 12:29:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:29:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:29:35] Production.INFO: ==7050== Releasing lock... [2024-12-20 12:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:29:35] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:30:06 [end_date_ymd] => 2024-12-20 12:30:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:30:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:30:31] Production.INFO: count ==4749 [2024-12-20 12:30:33] Production.ERROR: pbx CDR StartTime 2024-12-20 09:30:06 - End Time 2024-12-20 12:30:06 [2024-12-20 12:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062832', 'tblTempUsageDetail_20' ) start [2024-12-20 12:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062832', 'tblTempUsageDetail_20' ) end [2024-12-20 12:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062832', 'tblTempVendorCDR_20' ) start [2024-12-20 12:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062832', 'tblTempVendorCDR_20' ) end [2024-12-20 12:30:33] Production.INFO: ProcessCDR(1,14062832,1,1,2) [2024-12-20 12:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:30:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062832', 'tblTempUsageDetail_20' ) start [2024-12-20 12:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062832', 'tblTempUsageDetail_20' ) end [2024-12-20 12:30:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:30:38] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:30:38] Production.INFO: ==7125== Releasing lock... [2024-12-20 12:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:30:38] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:31:04 [end_date_ymd] => 2024-12-20 12:31:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:31:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:31:23] Production.INFO: count ==4767 [2024-12-20 12:31:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:31:04 - End Time 2024-12-20 12:31:04 [2024-12-20 12:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062837', 'tblTempUsageDetail_20' ) start [2024-12-20 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062837', 'tblTempUsageDetail_20' ) end [2024-12-20 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062837', 'tblTempVendorCDR_20' ) start [2024-12-20 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062837', 'tblTempVendorCDR_20' ) end [2024-12-20 12:31:25] Production.INFO: ProcessCDR(1,14062837,1,1,2) [2024-12-20 12:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062837', 'tblTempUsageDetail_20' ) start [2024-12-20 12:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062837', 'tblTempUsageDetail_20' ) end [2024-12-20 12:31:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:31:30] Production.INFO: ==7198== Releasing lock... [2024-12-20 12:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:31:30] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:32:05 [end_date_ymd] => 2024-12-20 12:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:32:20] Production.INFO: count ==4766 [2024-12-20 12:32:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:32:05 - End Time 2024-12-20 12:32:05 [2024-12-20 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062842', 'tblTempUsageDetail_20' ) start [2024-12-20 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062842', 'tblTempUsageDetail_20' ) end [2024-12-20 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062842', 'tblTempVendorCDR_20' ) start [2024-12-20 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062842', 'tblTempVendorCDR_20' ) end [2024-12-20 12:32:22] Production.INFO: ProcessCDR(1,14062842,1,1,2) [2024-12-20 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062842', 'tblTempUsageDetail_20' ) start [2024-12-20 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062842', 'tblTempUsageDetail_20' ) end [2024-12-20 12:32:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:32:26] Production.INFO: ==7273== Releasing lock... [2024-12-20 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:32:26] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:33:04 [end_date_ymd] => 2024-12-20 12:33:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:33:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:33:22] Production.INFO: count ==4766 [2024-12-20 12:33:24] Production.ERROR: pbx CDR StartTime 2024-12-20 09:33:04 - End Time 2024-12-20 12:33:04 [2024-12-20 12:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062847', 'tblTempUsageDetail_20' ) start [2024-12-20 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062847', 'tblTempUsageDetail_20' ) end [2024-12-20 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062847', 'tblTempVendorCDR_20' ) start [2024-12-20 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062847', 'tblTempVendorCDR_20' ) end [2024-12-20 12:33:24] Production.INFO: ProcessCDR(1,14062847,1,1,2) [2024-12-20 12:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062847', 'tblTempUsageDetail_20' ) start [2024-12-20 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062847', 'tblTempUsageDetail_20' ) end [2024-12-20 12:33:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:33:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:33:29] Production.INFO: ==7346== Releasing lock... [2024-12-20 12:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:33:29] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:34:05 [end_date_ymd] => 2024-12-20 12:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:34:19] Production.INFO: count ==4769 [2024-12-20 12:34:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:34:05 - End Time 2024-12-20 12:34:05 [2024-12-20 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062852', 'tblTempUsageDetail_20' ) start [2024-12-20 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062852', 'tblTempUsageDetail_20' ) end [2024-12-20 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062852', 'tblTempVendorCDR_20' ) start [2024-12-20 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062852', 'tblTempVendorCDR_20' ) end [2024-12-20 12:34:21] Production.INFO: ProcessCDR(1,14062852,1,1,2) [2024-12-20 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062852', 'tblTempUsageDetail_20' ) start [2024-12-20 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062852', 'tblTempUsageDetail_20' ) end [2024-12-20 12:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:34:25] Production.INFO: ==7419== Releasing lock... [2024-12-20 12:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:34:25] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:35:04 [end_date_ymd] => 2024-12-20 12:35:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:35:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:35:18] Production.INFO: count ==4776 [2024-12-20 12:35:20] Production.ERROR: pbx CDR StartTime 2024-12-20 09:35:04 - End Time 2024-12-20 12:35:04 [2024-12-20 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062857', 'tblTempUsageDetail_20' ) start [2024-12-20 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062857', 'tblTempUsageDetail_20' ) end [2024-12-20 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062857', 'tblTempVendorCDR_20' ) start [2024-12-20 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062857', 'tblTempVendorCDR_20' ) end [2024-12-20 12:35:20] Production.INFO: ProcessCDR(1,14062857,1,1,2) [2024-12-20 12:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062857', 'tblTempUsageDetail_20' ) start [2024-12-20 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062857', 'tblTempUsageDetail_20' ) end [2024-12-20 12:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:35:24] Production.INFO: ==7490== Releasing lock... [2024-12-20 12:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:35:24] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:36:04 [end_date_ymd] => 2024-12-20 12:36:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:36:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:36:25] Production.INFO: count ==4783 [2024-12-20 12:36:27] Production.ERROR: pbx CDR StartTime 2024-12-20 09:36:04 - End Time 2024-12-20 12:36:04 [2024-12-20 12:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062862', 'tblTempUsageDetail_20' ) start [2024-12-20 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062862', 'tblTempUsageDetail_20' ) end [2024-12-20 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062862', 'tblTempVendorCDR_20' ) start [2024-12-20 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062862', 'tblTempVendorCDR_20' ) end [2024-12-20 12:36:27] Production.INFO: ProcessCDR(1,14062862,1,1,2) [2024-12-20 12:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062862', 'tblTempUsageDetail_20' ) start [2024-12-20 12:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062862', 'tblTempUsageDetail_20' ) end [2024-12-20 12:36:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:36:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:36:31] Production.INFO: ==7563== Releasing lock... [2024-12-20 12:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:36:31] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:37:05 [end_date_ymd] => 2024-12-20 12:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:37:22] Production.INFO: count ==4810 [2024-12-20 12:37:24] Production.ERROR: pbx CDR StartTime 2024-12-20 09:37:05 - End Time 2024-12-20 12:37:05 [2024-12-20 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062867', 'tblTempUsageDetail_20' ) start [2024-12-20 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062867', 'tblTempUsageDetail_20' ) end [2024-12-20 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062867', 'tblTempVendorCDR_20' ) start [2024-12-20 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062867', 'tblTempVendorCDR_20' ) end [2024-12-20 12:37:24] Production.INFO: ProcessCDR(1,14062867,1,1,2) [2024-12-20 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062867', 'tblTempUsageDetail_20' ) start [2024-12-20 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062867', 'tblTempUsageDetail_20' ) end [2024-12-20 12:37:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:37:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:37:28] Production.INFO: ==7634== Releasing lock... [2024-12-20 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:37:28] Production.INFO: 64 MB #Memory Used# [2024-12-20 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:38:05 [end_date_ymd] => 2024-12-20 12:38:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:38:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:38:29] Production.INFO: count ==4823 [2024-12-20 12:38:31] Production.ERROR: pbx CDR StartTime 2024-12-20 09:38:05 - End Time 2024-12-20 12:38:05 [2024-12-20 12:38:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062872', 'tblTempUsageDetail_20' ) start [2024-12-20 12:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062872', 'tblTempUsageDetail_20' ) end [2024-12-20 12:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062872', 'tblTempVendorCDR_20' ) start [2024-12-20 12:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062872', 'tblTempVendorCDR_20' ) end [2024-12-20 12:38:31] Production.INFO: ProcessCDR(1,14062872,1,1,2) [2024-12-20 12:38:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:38:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:38:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:38:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062872', 'tblTempUsageDetail_20' ) start [2024-12-20 12:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062872', 'tblTempUsageDetail_20' ) end [2024-12-20 12:38:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:38:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:38:36] Production.INFO: ==7708== Releasing lock... [2024-12-20 12:38:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:38:36] Production.INFO: 64 MB #Memory Used# [2024-12-20 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:39:05 [end_date_ymd] => 2024-12-20 12:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:39:29] Production.INFO: count ==4835 [2024-12-20 12:39:31] Production.ERROR: pbx CDR StartTime 2024-12-20 09:39:05 - End Time 2024-12-20 12:39:05 [2024-12-20 12:39:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062877', 'tblTempUsageDetail_20' ) start [2024-12-20 12:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062877', 'tblTempUsageDetail_20' ) end [2024-12-20 12:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062877', 'tblTempVendorCDR_20' ) start [2024-12-20 12:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062877', 'tblTempVendorCDR_20' ) end [2024-12-20 12:39:31] Production.INFO: ProcessCDR(1,14062877,1,1,2) [2024-12-20 12:39:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062877', 'tblTempUsageDetail_20' ) start [2024-12-20 12:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062877', 'tblTempUsageDetail_20' ) end [2024-12-20 12:39:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:39:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:39:36] Production.INFO: ==7783== Releasing lock... [2024-12-20 12:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:39:36] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:40:05 [end_date_ymd] => 2024-12-20 12:40:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:40:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:40:28] Production.INFO: count ==4818 [2024-12-20 12:40:30] Production.ERROR: pbx CDR StartTime 2024-12-20 09:40:05 - End Time 2024-12-20 12:40:05 [2024-12-20 12:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062883', 'tblTempUsageDetail_20' ) start [2024-12-20 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062883', 'tblTempUsageDetail_20' ) end [2024-12-20 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062883', 'tblTempVendorCDR_20' ) start [2024-12-20 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062883', 'tblTempVendorCDR_20' ) end [2024-12-20 12:40:30] Production.INFO: ProcessCDR(1,14062883,1,1,2) [2024-12-20 12:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062883', 'tblTempUsageDetail_20' ) start [2024-12-20 12:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062883', 'tblTempUsageDetail_20' ) end [2024-12-20 12:40:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:40:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:40:33] Production.INFO: ==7857== Releasing lock... [2024-12-20 12:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:40:33] Production.INFO: 64 MB #Memory Used# [2024-12-20 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:41:05 [end_date_ymd] => 2024-12-20 12:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:41:24] Production.INFO: count ==4873 [2024-12-20 12:41:26] Production.ERROR: pbx CDR StartTime 2024-12-20 09:41:05 - End Time 2024-12-20 12:41:05 [2024-12-20 12:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062888', 'tblTempUsageDetail_20' ) start [2024-12-20 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062888', 'tblTempUsageDetail_20' ) end [2024-12-20 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062888', 'tblTempVendorCDR_20' ) start [2024-12-20 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062888', 'tblTempVendorCDR_20' ) end [2024-12-20 12:41:26] Production.INFO: ProcessCDR(1,14062888,1,1,2) [2024-12-20 12:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062888', 'tblTempUsageDetail_20' ) start [2024-12-20 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062888', 'tblTempUsageDetail_20' ) end [2024-12-20 12:41:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:41:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:41:31] Production.INFO: ==7929== Releasing lock... [2024-12-20 12:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:41:31] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 12:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:42:04 [end_date_ymd] => 2024-12-20 12:42:04 [RateCDR] => 1 ) [2024-12-20 12:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:42:04' and `end` < '2024-12-20 12:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:42:22] Production.INFO: count ==4869 [2024-12-20 12:42:24] Production.ERROR: pbx CDR StartTime 2024-12-20 09:42:04 - End Time 2024-12-20 12:42:04 [2024-12-20 12:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062893', 'tblTempUsageDetail_20' ) start [2024-12-20 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062893', 'tblTempUsageDetail_20' ) end [2024-12-20 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062893', 'tblTempVendorCDR_20' ) start [2024-12-20 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062893', 'tblTempVendorCDR_20' ) end [2024-12-20 12:42:24] Production.INFO: ProcessCDR(1,14062893,1,1,2) [2024-12-20 12:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062893', 'tblTempUsageDetail_20' ) start [2024-12-20 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062893', 'tblTempUsageDetail_20' ) end [2024-12-20 12:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:42:28] Production.INFO: ==7998== Releasing lock... [2024-12-20 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:42:28] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:43:05 [end_date_ymd] => 2024-12-20 12:43:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:43:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:43:18] Production.INFO: count ==4867 [2024-12-20 12:43:20] Production.ERROR: pbx CDR StartTime 2024-12-20 09:43:05 - End Time 2024-12-20 12:43:05 [2024-12-20 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062898', 'tblTempUsageDetail_20' ) start [2024-12-20 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062898', 'tblTempUsageDetail_20' ) end [2024-12-20 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062898', 'tblTempVendorCDR_20' ) start [2024-12-20 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062898', 'tblTempVendorCDR_20' ) end [2024-12-20 12:43:20] Production.INFO: ProcessCDR(1,14062898,1,1,2) [2024-12-20 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062898', 'tblTempUsageDetail_20' ) start [2024-12-20 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062898', 'tblTempUsageDetail_20' ) end [2024-12-20 12:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:43:25] Production.INFO: ==8109== Releasing lock... [2024-12-20 12:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:43:25] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:44:05 [end_date_ymd] => 2024-12-20 12:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:44:24] Production.INFO: count ==4836 [2024-12-20 12:44:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:44:05 - End Time 2024-12-20 12:44:05 [2024-12-20 12:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062903', 'tblTempUsageDetail_20' ) start [2024-12-20 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062903', 'tblTempUsageDetail_20' ) end [2024-12-20 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062903', 'tblTempVendorCDR_20' ) start [2024-12-20 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062903', 'tblTempVendorCDR_20' ) end [2024-12-20 12:44:26] Production.INFO: ProcessCDR(1,14062903,1,1,2) [2024-12-20 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062903', 'tblTempUsageDetail_20' ) start [2024-12-20 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062903', 'tblTempUsageDetail_20' ) end [2024-12-20 12:44:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:44:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:44:30] Production.INFO: ==8188== Releasing lock... [2024-12-20 12:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:44:30] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:45:04 [end_date_ymd] => 2024-12-20 12:45:04 [RateCDR] => 1 ) [2024-12-20 12:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:45:04' and `end` < '2024-12-20 12:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:45:18] Production.INFO: count ==4828 [2024-12-20 12:45:20] Production.ERROR: pbx CDR StartTime 2024-12-20 09:45:04 - End Time 2024-12-20 12:45:04 [2024-12-20 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062908', 'tblTempUsageDetail_20' ) start [2024-12-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062908', 'tblTempUsageDetail_20' ) end [2024-12-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062908', 'tblTempVendorCDR_20' ) start [2024-12-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062908', 'tblTempVendorCDR_20' ) end [2024-12-20 12:45:20] Production.INFO: ProcessCDR(1,14062908,1,1,2) [2024-12-20 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062908', 'tblTempUsageDetail_20' ) start [2024-12-20 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062908', 'tblTempUsageDetail_20' ) end [2024-12-20 12:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:45:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:45:25] Production.INFO: ==8263== Releasing lock... [2024-12-20 12:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:45:25] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:46:05 [end_date_ymd] => 2024-12-20 12:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:46:24] Production.INFO: count ==4835 [2024-12-20 12:46:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:46:05 - End Time 2024-12-20 12:46:05 [2024-12-20 12:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062913', 'tblTempUsageDetail_20' ) start [2024-12-20 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062913', 'tblTempUsageDetail_20' ) end [2024-12-20 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062913', 'tblTempVendorCDR_20' ) start [2024-12-20 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062913', 'tblTempVendorCDR_20' ) end [2024-12-20 12:46:26] Production.INFO: ProcessCDR(1,14062913,1,1,2) [2024-12-20 12:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062913', 'tblTempUsageDetail_20' ) start [2024-12-20 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062913', 'tblTempUsageDetail_20' ) end [2024-12-20 12:46:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:46:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:46:30] Production.INFO: ==8336== Releasing lock... [2024-12-20 12:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:46:30] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:47:04 [end_date_ymd] => 2024-12-20 12:47:04 [RateCDR] => 1 ) [2024-12-20 12:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:47:04' and `end` < '2024-12-20 12:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:47:22] Production.INFO: count ==4808 [2024-12-20 12:47:24] Production.ERROR: pbx CDR StartTime 2024-12-20 09:47:04 - End Time 2024-12-20 12:47:04 [2024-12-20 12:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062918', 'tblTempUsageDetail_20' ) start [2024-12-20 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062918', 'tblTempUsageDetail_20' ) end [2024-12-20 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062918', 'tblTempVendorCDR_20' ) start [2024-12-20 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062918', 'tblTempVendorCDR_20' ) end [2024-12-20 12:47:24] Production.INFO: ProcessCDR(1,14062918,1,1,2) [2024-12-20 12:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062918', 'tblTempUsageDetail_20' ) start [2024-12-20 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062918', 'tblTempUsageDetail_20' ) end [2024-12-20 12:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:47:29] Production.INFO: ==8410== Releasing lock... [2024-12-20 12:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:47:29] Production.INFO: 64 MB #Memory Used# [2024-12-20 12:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:48:04 [end_date_ymd] => 2024-12-20 12:48:04 [RateCDR] => 1 ) [2024-12-20 12:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:48:04' and `end` < '2024-12-20 12:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:48:21] Production.INFO: count ==4802 [2024-12-20 12:48:23] Production.ERROR: pbx CDR StartTime 2024-12-20 09:48:04 - End Time 2024-12-20 12:48:04 [2024-12-20 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062923', 'tblTempUsageDetail_20' ) start [2024-12-20 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062923', 'tblTempUsageDetail_20' ) end [2024-12-20 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062923', 'tblTempVendorCDR_20' ) start [2024-12-20 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062923', 'tblTempVendorCDR_20' ) end [2024-12-20 12:48:23] Production.INFO: ProcessCDR(1,14062923,1,1,2) [2024-12-20 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062923', 'tblTempUsageDetail_20' ) start [2024-12-20 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062923', 'tblTempUsageDetail_20' ) end [2024-12-20 12:48:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:48:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:48:27] Production.INFO: ==8488== Releasing lock... [2024-12-20 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:48:27] Production.INFO: 64 MB #Memory Used# [2024-12-20 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:49:05 [end_date_ymd] => 2024-12-20 12:49:05 [RateCDR] => 1 ) [2024-12-20 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:49:05' and `end` < '2024-12-20 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:49:23] Production.INFO: count ==4813 [2024-12-20 12:49:25] Production.ERROR: pbx CDR StartTime 2024-12-20 09:49:05 - End Time 2024-12-20 12:49:05 [2024-12-20 12:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062928', 'tblTempUsageDetail_20' ) start [2024-12-20 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062928', 'tblTempUsageDetail_20' ) end [2024-12-20 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062928', 'tblTempVendorCDR_20' ) start [2024-12-20 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062928', 'tblTempVendorCDR_20' ) end [2024-12-20 12:49:25] Production.INFO: ProcessCDR(1,14062928,1,1,2) [2024-12-20 12:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062928', 'tblTempUsageDetail_20' ) start [2024-12-20 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062928', 'tblTempUsageDetail_20' ) end [2024-12-20 12:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:49:29] Production.INFO: ==8565== Releasing lock... [2024-12-20 12:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:49:29] Production.INFO: 64 MB #Memory Used# [2024-12-20 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:50:05 [end_date_ymd] => 2024-12-20 12:50:05 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:50:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:50:25] Production.INFO: count ==4814 [2024-12-20 12:50:27] Production.ERROR: pbx CDR StartTime 2024-12-20 09:50:05 - End Time 2024-12-20 12:50:05 [2024-12-20 12:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062934', 'tblTempUsageDetail_20' ) start [2024-12-20 12:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062934', 'tblTempUsageDetail_20' ) end [2024-12-20 12:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062934', 'tblTempVendorCDR_20' ) start [2024-12-20 12:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062934', 'tblTempVendorCDR_20' ) end [2024-12-20 12:50:27] Production.INFO: ProcessCDR(1,14062934,1,1,2) [2024-12-20 12:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062934', 'tblTempUsageDetail_20' ) start [2024-12-20 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062934', 'tblTempUsageDetail_20' ) end [2024-12-20 12:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:50:31] Production.INFO: ==8642== Releasing lock... [2024-12-20 12:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:50:31] Production.INFO: 64 MB #Memory Used# [2024-12-20 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:51:05 [end_date_ymd] => 2024-12-20 12:51:05 [RateCDR] => 1 ) [2024-12-20 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:51:05' and `end` < '2024-12-20 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:51:19] Production.INFO: count ==4856 [2024-12-20 12:51:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:51:05 - End Time 2024-12-20 12:51:05 [2024-12-20 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062939', 'tblTempUsageDetail_20' ) start [2024-12-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062939', 'tblTempUsageDetail_20' ) end [2024-12-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062939', 'tblTempVendorCDR_20' ) start [2024-12-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062939', 'tblTempVendorCDR_20' ) end [2024-12-20 12:51:21] Production.INFO: ProcessCDR(1,14062939,1,1,2) [2024-12-20 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062939', 'tblTempUsageDetail_20' ) start [2024-12-20 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062939', 'tblTempUsageDetail_20' ) end [2024-12-20 12:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:51:26] Production.INFO: ==8718== Releasing lock... [2024-12-20 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:51:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 12:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:52:04 [end_date_ymd] => 2024-12-20 12:52:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:52:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:52:17] Production.INFO: count ==4864 [2024-12-20 12:52:19] Production.ERROR: pbx CDR StartTime 2024-12-20 09:52:04 - End Time 2024-12-20 12:52:04 [2024-12-20 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062944', 'tblTempUsageDetail_20' ) start [2024-12-20 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062944', 'tblTempUsageDetail_20' ) end [2024-12-20 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062944', 'tblTempVendorCDR_20' ) start [2024-12-20 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062944', 'tblTempVendorCDR_20' ) end [2024-12-20 12:52:19] Production.INFO: ProcessCDR(1,14062944,1,1,2) [2024-12-20 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062944', 'tblTempUsageDetail_20' ) start [2024-12-20 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062944', 'tblTempUsageDetail_20' ) end [2024-12-20 12:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:52:24] Production.INFO: ==8794== Releasing lock... [2024-12-20 12:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:52:24] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:53:05 [end_date_ymd] => 2024-12-20 12:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:53:19] Production.INFO: count ==4870 [2024-12-20 12:53:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:53:05 - End Time 2024-12-20 12:53:05 [2024-12-20 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062949', 'tblTempUsageDetail_20' ) start [2024-12-20 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062949', 'tblTempUsageDetail_20' ) end [2024-12-20 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062949', 'tblTempVendorCDR_20' ) start [2024-12-20 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062949', 'tblTempVendorCDR_20' ) end [2024-12-20 12:53:21] Production.INFO: ProcessCDR(1,14062949,1,1,2) [2024-12-20 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062949', 'tblTempUsageDetail_20' ) start [2024-12-20 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062949', 'tblTempUsageDetail_20' ) end [2024-12-20 12:53:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:53:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:53:26] Production.INFO: ==8873== Releasing lock... [2024-12-20 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:53:26] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:54:05 [end_date_ymd] => 2024-12-20 12:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:54:19] Production.INFO: count ==4869 [2024-12-20 12:54:21] Production.ERROR: pbx CDR StartTime 2024-12-20 09:54:05 - End Time 2024-12-20 12:54:05 [2024-12-20 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062954', 'tblTempUsageDetail_20' ) start [2024-12-20 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062954', 'tblTempUsageDetail_20' ) end [2024-12-20 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062954', 'tblTempVendorCDR_20' ) start [2024-12-20 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062954', 'tblTempVendorCDR_20' ) end [2024-12-20 12:54:21] Production.INFO: ProcessCDR(1,14062954,1,1,2) [2024-12-20 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062954', 'tblTempUsageDetail_20' ) start [2024-12-20 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062954', 'tblTempUsageDetail_20' ) end [2024-12-20 12:54:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:54:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:54:26] Production.INFO: ==8950== Releasing lock... [2024-12-20 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:54:26] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:55:05 [end_date_ymd] => 2024-12-20 12:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:55:25] Production.INFO: count ==4859 [2024-12-20 12:55:27] Production.ERROR: pbx CDR StartTime 2024-12-20 09:55:05 - End Time 2024-12-20 12:55:05 [2024-12-20 12:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062959', 'tblTempUsageDetail_20' ) start [2024-12-20 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062959', 'tblTempUsageDetail_20' ) end [2024-12-20 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062959', 'tblTempVendorCDR_20' ) start [2024-12-20 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062959', 'tblTempVendorCDR_20' ) end [2024-12-20 12:55:27] Production.INFO: ProcessCDR(1,14062959,1,1,2) [2024-12-20 12:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062959', 'tblTempUsageDetail_20' ) start [2024-12-20 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062959', 'tblTempUsageDetail_20' ) end [2024-12-20 12:55:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:55:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:55:32] Production.INFO: ==9027== Releasing lock... [2024-12-20 12:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:55:32] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:56:05 [end_date_ymd] => 2024-12-20 12:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:56:21] Production.INFO: count ==4858 [2024-12-20 12:56:23] Production.ERROR: pbx CDR StartTime 2024-12-20 09:56:05 - End Time 2024-12-20 12:56:05 [2024-12-20 12:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062964', 'tblTempUsageDetail_20' ) start [2024-12-20 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062964', 'tblTempUsageDetail_20' ) end [2024-12-20 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062964', 'tblTempVendorCDR_20' ) start [2024-12-20 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062964', 'tblTempVendorCDR_20' ) end [2024-12-20 12:56:23] Production.INFO: ProcessCDR(1,14062964,1,1,2) [2024-12-20 12:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062964', 'tblTempUsageDetail_20' ) start [2024-12-20 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062964', 'tblTempUsageDetail_20' ) end [2024-12-20 12:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:56:28] Production.INFO: ==9102== Releasing lock... [2024-12-20 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:56:28] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:57:04 [end_date_ymd] => 2024-12-20 12:57:04 [RateCDR] => 1 ) [2024-12-20 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 09:57:04' and `end` < '2024-12-20 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 12:57:29] Production.INFO: count ==4852 [2024-12-20 12:57:30] Production.ERROR: pbx CDR StartTime 2024-12-20 09:57:04 - End Time 2024-12-20 12:57:04 [2024-12-20 12:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062969', 'tblTempUsageDetail_20' ) start [2024-12-20 12:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062969', 'tblTempUsageDetail_20' ) end [2024-12-20 12:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062969', 'tblTempVendorCDR_20' ) start [2024-12-20 12:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062969', 'tblTempVendorCDR_20' ) end [2024-12-20 12:57:31] Production.INFO: ProcessCDR(1,14062969,1,1,2) [2024-12-20 12:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062969', 'tblTempUsageDetail_20' ) start [2024-12-20 12:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062969', 'tblTempUsageDetail_20' ) end [2024-12-20 12:57:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:57:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:57:34] Production.INFO: ==9178== Releasing lock... [2024-12-20 12:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:57:34] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:58:04 [end_date_ymd] => 2024-12-20 12:58:04 [RateCDR] => 1 ) [2024-12-20 12: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` >= '2024-12-20 09:58:04' and `end` < '2024-12-20 12: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 ,'') [2024-12-20 12:58:22] Production.INFO: count ==4848 [2024-12-20 12:58:24] Production.ERROR: pbx CDR StartTime 2024-12-20 09:58:04 - End Time 2024-12-20 12:58:04 [2024-12-20 12:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062974', 'tblTempUsageDetail_20' ) start [2024-12-20 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062974', 'tblTempUsageDetail_20' ) end [2024-12-20 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062974', 'tblTempVendorCDR_20' ) start [2024-12-20 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062974', 'tblTempVendorCDR_20' ) end [2024-12-20 12:58:24] Production.INFO: ProcessCDR(1,14062974,1,1,2) [2024-12-20 12:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062974', 'tblTempUsageDetail_20' ) start [2024-12-20 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062974', 'tblTempUsageDetail_20' ) end [2024-12-20 12:58:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:58:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:58:29] Production.INFO: ==9295== Releasing lock... [2024-12-20 12:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:58:29] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 09:59:05 [end_date_ymd] => 2024-12-20 12:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 09:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 12:59:18] Production.INFO: count ==4837 [2024-12-20 12:59:20] Production.ERROR: pbx CDR StartTime 2024-12-20 09:59:05 - End Time 2024-12-20 12:59:05 [2024-12-20 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062979', 'tblTempUsageDetail_20' ) start [2024-12-20 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062979', 'tblTempUsageDetail_20' ) end [2024-12-20 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062979', 'tblTempVendorCDR_20' ) start [2024-12-20 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062979', 'tblTempVendorCDR_20' ) end [2024-12-20 12:59:20] Production.INFO: ProcessCDR(1,14062979,1,1,2) [2024-12-20 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062979', 'tblTempUsageDetail_20' ) start [2024-12-20 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062979', 'tblTempUsageDetail_20' ) end [2024-12-20 12:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 12:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 12:59:23] Production.INFO: ==9374== Releasing lock... [2024-12-20 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 12:59:23] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:00:05 [end_date_ymd] => 2024-12-20 13:00:05 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:00:05' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:00:18] Production.INFO: count ==4824 [2024-12-20 13:00:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:00:05 - End Time 2024-12-20 13:00:05 [2024-12-20 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062985', 'tblTempUsageDetail_20' ) start [2024-12-20 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062985', 'tblTempUsageDetail_20' ) end [2024-12-20 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062985', 'tblTempVendorCDR_20' ) start [2024-12-20 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062985', 'tblTempVendorCDR_20' ) end [2024-12-20 13:00:20] Production.INFO: ProcessCDR(1,14062985,1,1,2) [2024-12-20 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062985', 'tblTempUsageDetail_20' ) start [2024-12-20 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062985', 'tblTempUsageDetail_20' ) end [2024-12-20 13:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:00:25] Production.INFO: ==9454== Releasing lock... [2024-12-20 13:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:00:25] Production.INFO: 64 MB #Memory Used# [2024-12-20 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:01:04 [end_date_ymd] => 2024-12-20 13:01:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:01:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:01:17] Production.INFO: count ==4849 [2024-12-20 13:01:19] Production.ERROR: pbx CDR StartTime 2024-12-20 10:01:04 - End Time 2024-12-20 13:01:04 [2024-12-20 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062990', 'tblTempUsageDetail_20' ) start [2024-12-20 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062990', 'tblTempUsageDetail_20' ) end [2024-12-20 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062990', 'tblTempVendorCDR_20' ) start [2024-12-20 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062990', 'tblTempVendorCDR_20' ) end [2024-12-20 13:01:19] Production.INFO: ProcessCDR(1,14062990,1,1,2) [2024-12-20 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062990', 'tblTempUsageDetail_20' ) start [2024-12-20 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062990', 'tblTempUsageDetail_20' ) end [2024-12-20 13:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:01:24] Production.INFO: ==9546== Releasing lock... [2024-12-20 13:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:01:24] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 13:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:02:04 [end_date_ymd] => 2024-12-20 13:02:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:02:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:02:20] Production.INFO: count ==4851 [2024-12-20 13:02:21] Production.ERROR: pbx CDR StartTime 2024-12-20 10:02:04 - End Time 2024-12-20 13:02:04 [2024-12-20 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062995', 'tblTempUsageDetail_20' ) start [2024-12-20 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14062995', 'tblTempUsageDetail_20' ) end [2024-12-20 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062995', 'tblTempVendorCDR_20' ) start [2024-12-20 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14062995', 'tblTempVendorCDR_20' ) end [2024-12-20 13:02:22] Production.INFO: ProcessCDR(1,14062995,1,1,2) [2024-12-20 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14062995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14062995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14062995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14062995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062995', 'tblTempUsageDetail_20' ) start [2024-12-20 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14062995', 'tblTempUsageDetail_20' ) end [2024-12-20 13:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:02:26] Production.INFO: ==9621== Releasing lock... [2024-12-20 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:02:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:03:05 [end_date_ymd] => 2024-12-20 13:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:03:21] Production.INFO: count ==4856 [2024-12-20 13:03:23] Production.ERROR: pbx CDR StartTime 2024-12-20 10:03:05 - End Time 2024-12-20 13:03:05 [2024-12-20 13:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063000', 'tblTempUsageDetail_20' ) start [2024-12-20 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063000', 'tblTempUsageDetail_20' ) end [2024-12-20 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063000', 'tblTempVendorCDR_20' ) start [2024-12-20 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063000', 'tblTempVendorCDR_20' ) end [2024-12-20 13:03:23] Production.INFO: ProcessCDR(1,14063000,1,1,2) [2024-12-20 13:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063000', 'tblTempUsageDetail_20' ) start [2024-12-20 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063000', 'tblTempUsageDetail_20' ) end [2024-12-20 13:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:03:27] Production.INFO: ==9698== Releasing lock... [2024-12-20 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:03:27] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:04:05 [end_date_ymd] => 2024-12-20 13:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:04:29] Production.INFO: count ==4847 [2024-12-20 13:04:30] Production.ERROR: pbx CDR StartTime 2024-12-20 10:04:05 - End Time 2024-12-20 13:04:05 [2024-12-20 13:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063005', 'tblTempUsageDetail_20' ) start [2024-12-20 13:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063005', 'tblTempUsageDetail_20' ) end [2024-12-20 13:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063005', 'tblTempVendorCDR_20' ) start [2024-12-20 13:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063005', 'tblTempVendorCDR_20' ) end [2024-12-20 13:04:31] Production.INFO: ProcessCDR(1,14063005,1,1,2) [2024-12-20 13:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063005', 'tblTempUsageDetail_20' ) start [2024-12-20 13:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063005', 'tblTempUsageDetail_20' ) end [2024-12-20 13:04:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:04:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:04:35] Production.INFO: ==9777== Releasing lock... [2024-12-20 13:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:04:35] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:05:05 [end_date_ymd] => 2024-12-20 13:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:05:23] Production.INFO: count ==4841 [2024-12-20 13:05:25] Production.ERROR: pbx CDR StartTime 2024-12-20 10:05:05 - End Time 2024-12-20 13:05:05 [2024-12-20 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063010', 'tblTempUsageDetail_20' ) start [2024-12-20 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063010', 'tblTempUsageDetail_20' ) end [2024-12-20 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063010', 'tblTempVendorCDR_20' ) start [2024-12-20 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063010', 'tblTempVendorCDR_20' ) end [2024-12-20 13:05:25] Production.INFO: ProcessCDR(1,14063010,1,1,2) [2024-12-20 13:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063010', 'tblTempUsageDetail_20' ) start [2024-12-20 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063010', 'tblTempUsageDetail_20' ) end [2024-12-20 13:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:05:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:05:30] Production.INFO: ==9853== Releasing lock... [2024-12-20 13:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:05:30] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:06:05 [end_date_ymd] => 2024-12-20 13:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:06:23] Production.INFO: count ==4856 [2024-12-20 13:06:25] Production.ERROR: pbx CDR StartTime 2024-12-20 10:06:05 - End Time 2024-12-20 13:06:05 [2024-12-20 13:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063015', 'tblTempUsageDetail_20' ) start [2024-12-20 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063015', 'tblTempUsageDetail_20' ) end [2024-12-20 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063015', 'tblTempVendorCDR_20' ) start [2024-12-20 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063015', 'tblTempVendorCDR_20' ) end [2024-12-20 13:06:25] Production.INFO: ProcessCDR(1,14063015,1,1,2) [2024-12-20 13:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063015', 'tblTempUsageDetail_20' ) start [2024-12-20 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063015', 'tblTempUsageDetail_20' ) end [2024-12-20 13:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:06:30] Production.INFO: ==9929== Releasing lock... [2024-12-20 13:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:06:30] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:07:04 [end_date_ymd] => 2024-12-20 13:07:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:07:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:07:18] Production.INFO: count ==4862 [2024-12-20 13:07:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:07:04 - End Time 2024-12-20 13:07:04 [2024-12-20 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063020', 'tblTempUsageDetail_20' ) start [2024-12-20 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063020', 'tblTempUsageDetail_20' ) end [2024-12-20 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063020', 'tblTempVendorCDR_20' ) start [2024-12-20 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063020', 'tblTempVendorCDR_20' ) end [2024-12-20 13:07:20] Production.INFO: ProcessCDR(1,14063020,1,1,2) [2024-12-20 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063020', 'tblTempUsageDetail_20' ) start [2024-12-20 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063020', 'tblTempUsageDetail_20' ) end [2024-12-20 13:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:07:25] Production.INFO: ==10003== Releasing lock... [2024-12-20 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:07:25] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:08:05 [end_date_ymd] => 2024-12-20 13:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:08:20] Production.INFO: count ==4875 [2024-12-20 13:08:22] Production.ERROR: pbx CDR StartTime 2024-12-20 10:08:05 - End Time 2024-12-20 13:08:05 [2024-12-20 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063025', 'tblTempUsageDetail_20' ) start [2024-12-20 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063025', 'tblTempUsageDetail_20' ) end [2024-12-20 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063025', 'tblTempVendorCDR_20' ) start [2024-12-20 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063025', 'tblTempVendorCDR_20' ) end [2024-12-20 13:08:22] Production.INFO: ProcessCDR(1,14063025,1,1,2) [2024-12-20 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063025', 'tblTempUsageDetail_20' ) start [2024-12-20 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063025', 'tblTempUsageDetail_20' ) end [2024-12-20 13:08:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:08:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:08:26] Production.INFO: ==10079== Releasing lock... [2024-12-20 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:08:26] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:09:04 [end_date_ymd] => 2024-12-20 13:09:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:09:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:09:19] Production.INFO: count ==4860 [2024-12-20 13:09:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:09:04 - End Time 2024-12-20 13:09:04 [2024-12-20 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063030', 'tblTempUsageDetail_20' ) start [2024-12-20 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063030', 'tblTempUsageDetail_20' ) end [2024-12-20 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063030', 'tblTempVendorCDR_20' ) start [2024-12-20 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063030', 'tblTempVendorCDR_20' ) end [2024-12-20 13:09:21] Production.INFO: ProcessCDR(1,14063030,1,1,2) [2024-12-20 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063030', 'tblTempUsageDetail_20' ) start [2024-12-20 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063030', 'tblTempUsageDetail_20' ) end [2024-12-20 13:09:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:09:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:09:25] Production.INFO: ==10159== Releasing lock... [2024-12-20 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:09:25] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:10:06 [end_date_ymd] => 2024-12-20 13:10:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:10:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:10:20] Production.INFO: count ==4869 [2024-12-20 13:10:22] Production.ERROR: pbx CDR StartTime 2024-12-20 10:10:06 - End Time 2024-12-20 13:10:06 [2024-12-20 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063036', 'tblTempUsageDetail_20' ) start [2024-12-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063036', 'tblTempUsageDetail_20' ) end [2024-12-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063036', 'tblTempVendorCDR_20' ) start [2024-12-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063036', 'tblTempVendorCDR_20' ) end [2024-12-20 13:10:22] Production.INFO: ProcessCDR(1,14063036,1,1,2) [2024-12-20 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063036', 'tblTempUsageDetail_20' ) start [2024-12-20 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063036', 'tblTempUsageDetail_20' ) end [2024-12-20 13:10:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:10:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:10:26] Production.INFO: ==10244== Releasing lock... [2024-12-20 13:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:10:26] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:11:05 [end_date_ymd] => 2024-12-20 13:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:11:25] Production.INFO: count ==4929 [2024-12-20 13:11:27] Production.ERROR: pbx CDR StartTime 2024-12-20 10:11:05 - End Time 2024-12-20 13:11:05 [2024-12-20 13:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063041', 'tblTempUsageDetail_20' ) start [2024-12-20 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063041', 'tblTempUsageDetail_20' ) end [2024-12-20 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063041', 'tblTempVendorCDR_20' ) start [2024-12-20 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063041', 'tblTempVendorCDR_20' ) end [2024-12-20 13:11:27] Production.INFO: ProcessCDR(1,14063041,1,1,2) [2024-12-20 13:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063041', 'tblTempUsageDetail_20' ) start [2024-12-20 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063041', 'tblTempUsageDetail_20' ) end [2024-12-20 13:11:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:11:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:11:32] Production.INFO: ==10321== Releasing lock... [2024-12-20 13:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:11:32] Production.INFO: 65 MB #Memory Used# [2024-12-20 13:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:12:04 [end_date_ymd] => 2024-12-20 13:12:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:12:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:12:20] Production.INFO: count ==4936 [2024-12-20 13:12:22] Production.ERROR: pbx CDR StartTime 2024-12-20 10:12:04 - End Time 2024-12-20 13:12:04 [2024-12-20 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063046', 'tblTempUsageDetail_20' ) start [2024-12-20 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063046', 'tblTempUsageDetail_20' ) end [2024-12-20 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063046', 'tblTempVendorCDR_20' ) start [2024-12-20 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063046', 'tblTempVendorCDR_20' ) end [2024-12-20 13:12:22] Production.INFO: ProcessCDR(1,14063046,1,1,2) [2024-12-20 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063046', 'tblTempUsageDetail_20' ) start [2024-12-20 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063046', 'tblTempUsageDetail_20' ) end [2024-12-20 13:12:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:12:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:12:27] Production.INFO: ==10396== Releasing lock... [2024-12-20 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:12:27] Production.INFO: 65 MB #Memory Used# [2024-12-20 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:13:04 [end_date_ymd] => 2024-12-20 13:13:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:13:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:13:20] Production.INFO: count ==4927 [2024-12-20 13:13:22] Production.ERROR: pbx CDR StartTime 2024-12-20 10:13:04 - End Time 2024-12-20 13:13:04 [2024-12-20 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063051', 'tblTempUsageDetail_20' ) start [2024-12-20 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063051', 'tblTempUsageDetail_20' ) end [2024-12-20 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063051', 'tblTempVendorCDR_20' ) start [2024-12-20 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063051', 'tblTempVendorCDR_20' ) end [2024-12-20 13:13:22] Production.INFO: ProcessCDR(1,14063051,1,1,2) [2024-12-20 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063051', 'tblTempUsageDetail_20' ) start [2024-12-20 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063051', 'tblTempUsageDetail_20' ) end [2024-12-20 13:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:13:27] Production.INFO: ==10469== Releasing lock... [2024-12-20 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:13:27] Production.INFO: 65 MB #Memory Used# [2024-12-20 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:14:04 [end_date_ymd] => 2024-12-20 13:14:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:14:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:14:23] Production.INFO: count ==4917 [2024-12-20 13:14:25] Production.ERROR: pbx CDR StartTime 2024-12-20 10:14:04 - End Time 2024-12-20 13:14:04 [2024-12-20 13:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063056', 'tblTempUsageDetail_20' ) start [2024-12-20 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063056', 'tblTempUsageDetail_20' ) end [2024-12-20 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063056', 'tblTempVendorCDR_20' ) start [2024-12-20 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063056', 'tblTempVendorCDR_20' ) end [2024-12-20 13:14:25] Production.INFO: ProcessCDR(1,14063056,1,1,2) [2024-12-20 13:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063056', 'tblTempUsageDetail_20' ) start [2024-12-20 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063056', 'tblTempUsageDetail_20' ) end [2024-12-20 13:14:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:14:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:14:29] Production.INFO: ==10580== Releasing lock... [2024-12-20 13:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:14:29] Production.INFO: 64.75 MB #Memory Used# [2024-12-20 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:15:05 [end_date_ymd] => 2024-12-20 13:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:15:21] Production.INFO: count ==4923 [2024-12-20 13:15:23] Production.ERROR: pbx CDR StartTime 2024-12-20 10:15:05 - End Time 2024-12-20 13:15:05 [2024-12-20 13:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063061', 'tblTempUsageDetail_20' ) start [2024-12-20 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063061', 'tblTempUsageDetail_20' ) end [2024-12-20 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063061', 'tblTempVendorCDR_20' ) start [2024-12-20 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063061', 'tblTempVendorCDR_20' ) end [2024-12-20 13:15:23] Production.INFO: ProcessCDR(1,14063061,1,1,2) [2024-12-20 13:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063061', 'tblTempUsageDetail_20' ) start [2024-12-20 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063061', 'tblTempUsageDetail_20' ) end [2024-12-20 13:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:15:27] Production.INFO: ==10655== Releasing lock... [2024-12-20 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:15:27] Production.INFO: 64.75 MB #Memory Used# [2024-12-20 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:16:05 [end_date_ymd] => 2024-12-20 13:16:05 [RateCDR] => 1 ) [2024-12-20 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:16:05' and `end` < '2024-12-20 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:16:19] Production.INFO: count ==4938 [2024-12-20 13:16:21] Production.ERROR: pbx CDR StartTime 2024-12-20 10:16:05 - End Time 2024-12-20 13:16:05 [2024-12-20 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063066', 'tblTempUsageDetail_20' ) start [2024-12-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063066', 'tblTempUsageDetail_20' ) end [2024-12-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063066', 'tblTempVendorCDR_20' ) start [2024-12-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063066', 'tblTempVendorCDR_20' ) end [2024-12-20 13:16:21] Production.INFO: ProcessCDR(1,14063066,1,1,2) [2024-12-20 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063066', 'tblTempUsageDetail_20' ) start [2024-12-20 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063066', 'tblTempUsageDetail_20' ) end [2024-12-20 13:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:16:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:16:26] Production.INFO: ==10726== Releasing lock... [2024-12-20 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:16:26] Production.INFO: 65 MB #Memory Used# [2024-12-20 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:17:05 [end_date_ymd] => 2024-12-20 13:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:17:21] Production.INFO: count ==4939 [2024-12-20 13:17:23] Production.ERROR: pbx CDR StartTime 2024-12-20 10:17:05 - End Time 2024-12-20 13:17:05 [2024-12-20 13:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063071', 'tblTempUsageDetail_20' ) start [2024-12-20 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063071', 'tblTempUsageDetail_20' ) end [2024-12-20 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063071', 'tblTempVendorCDR_20' ) start [2024-12-20 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063071', 'tblTempVendorCDR_20' ) end [2024-12-20 13:17:23] Production.INFO: ProcessCDR(1,14063071,1,1,2) [2024-12-20 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063071', 'tblTempUsageDetail_20' ) start [2024-12-20 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063071', 'tblTempUsageDetail_20' ) end [2024-12-20 13:17:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:17:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:17:28] Production.INFO: ==10798== Releasing lock... [2024-12-20 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:17:28] Production.INFO: 65 MB #Memory Used# [2024-12-20 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:18:05 [end_date_ymd] => 2024-12-20 13:18:05 [RateCDR] => 1 ) [2024-12-20 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:18:05' and `end` < '2024-12-20 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:18:18] Production.INFO: count ==4956 [2024-12-20 13:18:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:18:05 - End Time 2024-12-20 13:18:05 [2024-12-20 13:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063076', 'tblTempUsageDetail_20' ) start [2024-12-20 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063076', 'tblTempUsageDetail_20' ) end [2024-12-20 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063076', 'tblTempVendorCDR_20' ) start [2024-12-20 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063076', 'tblTempVendorCDR_20' ) end [2024-12-20 13:18:20] Production.INFO: ProcessCDR(1,14063076,1,1,2) [2024-12-20 13:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063076', 'tblTempUsageDetail_20' ) start [2024-12-20 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063076', 'tblTempUsageDetail_20' ) end [2024-12-20 13:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:18:24] Production.INFO: ==10869== Releasing lock... [2024-12-20 13:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:18:24] Production.INFO: 65 MB #Memory Used# [2024-12-20 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:19:04 [end_date_ymd] => 2024-12-20 13:19:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:19:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:19:24] Production.INFO: count ==4948 [2024-12-20 13:19:25] Production.ERROR: pbx CDR StartTime 2024-12-20 10:19:04 - End Time 2024-12-20 13:19:04 [2024-12-20 13:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063081', 'tblTempUsageDetail_20' ) start [2024-12-20 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063081', 'tblTempUsageDetail_20' ) end [2024-12-20 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063081', 'tblTempVendorCDR_20' ) start [2024-12-20 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063081', 'tblTempVendorCDR_20' ) end [2024-12-20 13:19:25] Production.INFO: ProcessCDR(1,14063081,1,1,2) [2024-12-20 13:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063081', 'tblTempUsageDetail_20' ) start [2024-12-20 13:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063081', 'tblTempUsageDetail_20' ) end [2024-12-20 13:19:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:19:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:19:30] Production.INFO: ==10939== Releasing lock... [2024-12-20 13:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:19:30] Production.INFO: 65 MB #Memory Used# [2024-12-20 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:20:05 [end_date_ymd] => 2024-12-20 13:20:05 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:20:05' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:20:24] Production.INFO: count ==4970 [2024-12-20 13:20:26] Production.ERROR: pbx CDR StartTime 2024-12-20 10:20:05 - End Time 2024-12-20 13:20:05 [2024-12-20 13:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063087', 'tblTempUsageDetail_20' ) start [2024-12-20 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063087', 'tblTempUsageDetail_20' ) end [2024-12-20 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063087', 'tblTempVendorCDR_20' ) start [2024-12-20 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063087', 'tblTempVendorCDR_20' ) end [2024-12-20 13:20:26] Production.INFO: ProcessCDR(1,14063087,1,1,2) [2024-12-20 13:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063087', 'tblTempUsageDetail_20' ) start [2024-12-20 13:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063087', 'tblTempUsageDetail_20' ) end [2024-12-20 13:20:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:20:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:20:30] Production.INFO: ==11012== Releasing lock... [2024-12-20 13:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:20:30] Production.INFO: 65.25 MB #Memory Used# [2024-12-20 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:21:04 [end_date_ymd] => 2024-12-20 13:21:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:21:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:21:17] Production.INFO: count ==4961 [2024-12-20 13:21:19] Production.ERROR: pbx CDR StartTime 2024-12-20 10:21:04 - End Time 2024-12-20 13:21:04 [2024-12-20 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063092', 'tblTempUsageDetail_20' ) start [2024-12-20 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063092', 'tblTempUsageDetail_20' ) end [2024-12-20 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063092', 'tblTempVendorCDR_20' ) start [2024-12-20 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063092', 'tblTempVendorCDR_20' ) end [2024-12-20 13:21:19] Production.INFO: ProcessCDR(1,14063092,1,1,2) [2024-12-20 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063092', 'tblTempUsageDetail_20' ) start [2024-12-20 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063092', 'tblTempUsageDetail_20' ) end [2024-12-20 13:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:21:24] Production.INFO: ==11084== Releasing lock... [2024-12-20 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:21:24] Production.INFO: 65.25 MB #Memory Used# [2024-12-20 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:22:04 [end_date_ymd] => 2024-12-20 13:22:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:22:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:22:21] Production.INFO: count ==4983 [2024-12-20 13:22:23] Production.ERROR: pbx CDR StartTime 2024-12-20 10:22:04 - End Time 2024-12-20 13:22:04 [2024-12-20 13:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063097', 'tblTempUsageDetail_20' ) start [2024-12-20 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063097', 'tblTempUsageDetail_20' ) end [2024-12-20 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063097', 'tblTempVendorCDR_20' ) start [2024-12-20 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063097', 'tblTempVendorCDR_20' ) end [2024-12-20 13:22:23] Production.INFO: ProcessCDR(1,14063097,1,1,2) [2024-12-20 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063097', 'tblTempUsageDetail_20' ) start [2024-12-20 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063097', 'tblTempUsageDetail_20' ) end [2024-12-20 13:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:22:28] Production.INFO: ==11156== Releasing lock... [2024-12-20 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:22:28] Production.INFO: 65.25 MB #Memory Used# [2024-12-20 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:23:05 [end_date_ymd] => 2024-12-20 13:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:23:25] Production.INFO: count ==4995 [2024-12-20 13:23:27] Production.ERROR: pbx CDR StartTime 2024-12-20 10:23:05 - End Time 2024-12-20 13:23:05 [2024-12-20 13:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063102', 'tblTempUsageDetail_20' ) start [2024-12-20 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063102', 'tblTempUsageDetail_20' ) end [2024-12-20 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063102', 'tblTempVendorCDR_20' ) start [2024-12-20 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063102', 'tblTempVendorCDR_20' ) end [2024-12-20 13:23:27] Production.INFO: ProcessCDR(1,14063102,1,1,2) [2024-12-20 13:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063102', 'tblTempUsageDetail_20' ) start [2024-12-20 13:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063102', 'tblTempUsageDetail_20' ) end [2024-12-20 13:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:23:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:23:32] Production.INFO: ==11231== Releasing lock... [2024-12-20 13:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:23:32] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 13:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:24:04 [end_date_ymd] => 2024-12-20 13:24:04 [RateCDR] => 1 ) [2024-12-20 13:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:24:04' and `end` < '2024-12-20 13:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:24:21] Production.INFO: count ==5004 [2024-12-20 13:24:23] Production.ERROR: pbx CDR StartTime 2024-12-20 10:24:04 - End Time 2024-12-20 13:24:04 [2024-12-20 13:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063107', 'tblTempUsageDetail_20' ) start [2024-12-20 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063107', 'tblTempUsageDetail_20' ) end [2024-12-20 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063107', 'tblTempVendorCDR_20' ) start [2024-12-20 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063107', 'tblTempVendorCDR_20' ) end [2024-12-20 13:24:23] Production.INFO: ProcessCDR(1,14063107,1,1,2) [2024-12-20 13:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063107', 'tblTempUsageDetail_20' ) start [2024-12-20 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063107', 'tblTempUsageDetail_20' ) end [2024-12-20 13:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:24:28] Production.INFO: ==11303== Releasing lock... [2024-12-20 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:24:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:25:05 [end_date_ymd] => 2024-12-20 13:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:25:25] Production.INFO: count ==5033 [2024-12-20 13:25:27] Production.ERROR: pbx CDR StartTime 2024-12-20 10:25:05 - End Time 2024-12-20 13:25:05 [2024-12-20 13:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063112', 'tblTempUsageDetail_20' ) start [2024-12-20 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063112', 'tblTempUsageDetail_20' ) end [2024-12-20 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063112', 'tblTempVendorCDR_20' ) start [2024-12-20 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063112', 'tblTempVendorCDR_20' ) end [2024-12-20 13:25:27] Production.INFO: ProcessCDR(1,14063112,1,1,2) [2024-12-20 13:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063112', 'tblTempUsageDetail_20' ) start [2024-12-20 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063112', 'tblTempUsageDetail_20' ) end [2024-12-20 13:25:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:25:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:25:32] Production.INFO: ==11374== Releasing lock... [2024-12-20 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:25:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 13:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:26:04 [end_date_ymd] => 2024-12-20 13:26:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:26:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:26:22] Production.INFO: count ==5036 [2024-12-20 13:26:24] Production.ERROR: pbx CDR StartTime 2024-12-20 10:26:04 - End Time 2024-12-20 13:26:04 [2024-12-20 13:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063117', 'tblTempUsageDetail_20' ) start [2024-12-20 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063117', 'tblTempUsageDetail_20' ) end [2024-12-20 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063117', 'tblTempVendorCDR_20' ) start [2024-12-20 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063117', 'tblTempVendorCDR_20' ) end [2024-12-20 13:26:24] Production.INFO: ProcessCDR(1,14063117,1,1,2) [2024-12-20 13:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063117', 'tblTempUsageDetail_20' ) start [2024-12-20 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063117', 'tblTempUsageDetail_20' ) end [2024-12-20 13:26:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:26:28] Production.INFO: ==11450== Releasing lock... [2024-12-20 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:26:28] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:27:05 [end_date_ymd] => 2024-12-20 13:27:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:27:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:27:20] Production.INFO: count ==5031 [2024-12-20 13:27:22] Production.ERROR: pbx CDR StartTime 2024-12-20 10:27:05 - End Time 2024-12-20 13:27:05 [2024-12-20 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063122', 'tblTempUsageDetail_20' ) start [2024-12-20 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063122', 'tblTempUsageDetail_20' ) end [2024-12-20 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063122', 'tblTempVendorCDR_20' ) start [2024-12-20 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063122', 'tblTempVendorCDR_20' ) end [2024-12-20 13:27:22] Production.INFO: ProcessCDR(1,14063122,1,1,2) [2024-12-20 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063122', 'tblTempUsageDetail_20' ) start [2024-12-20 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063122', 'tblTempUsageDetail_20' ) end [2024-12-20 13:27:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:27:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:27:27] Production.INFO: ==11520== Releasing lock... [2024-12-20 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:27:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:28:04 [end_date_ymd] => 2024-12-20 13:28:04 [RateCDR] => 1 ) [2024-12-20 13:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:28:04' and `end` < '2024-12-20 13:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:28:24] Production.INFO: count ==5015 [2024-12-20 13:28:26] Production.ERROR: pbx CDR StartTime 2024-12-20 10:28:04 - End Time 2024-12-20 13:28:04 [2024-12-20 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063127', 'tblTempUsageDetail_20' ) start [2024-12-20 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063127', 'tblTempUsageDetail_20' ) end [2024-12-20 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063127', 'tblTempVendorCDR_20' ) start [2024-12-20 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063127', 'tblTempVendorCDR_20' ) end [2024-12-20 13:28:26] Production.INFO: ProcessCDR(1,14063127,1,1,2) [2024-12-20 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063127', 'tblTempUsageDetail_20' ) start [2024-12-20 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063127', 'tblTempUsageDetail_20' ) end [2024-12-20 13:28:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:28:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:28:31] Production.INFO: ==11591== Releasing lock... [2024-12-20 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:28:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:29:05 [end_date_ymd] => 2024-12-20 13:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:29:21] Production.INFO: count ==5004 [2024-12-20 13:29:23] Production.ERROR: pbx CDR StartTime 2024-12-20 10:29:05 - End Time 2024-12-20 13:29:05 [2024-12-20 13:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063132', 'tblTempUsageDetail_20' ) start [2024-12-20 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063132', 'tblTempUsageDetail_20' ) end [2024-12-20 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063132', 'tblTempVendorCDR_20' ) start [2024-12-20 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063132', 'tblTempVendorCDR_20' ) end [2024-12-20 13:29:23] Production.INFO: ProcessCDR(1,14063132,1,1,2) [2024-12-20 13:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063132', 'tblTempUsageDetail_20' ) start [2024-12-20 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063132', 'tblTempUsageDetail_20' ) end [2024-12-20 13:29:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:29:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:29:28] Production.INFO: ==11664== Releasing lock... [2024-12-20 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:29:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:30:05 [end_date_ymd] => 2024-12-20 13:30:05 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:30:05' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:30:18] Production.INFO: count ==5029 [2024-12-20 13:30:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:30:05 - End Time 2024-12-20 13:30:05 [2024-12-20 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063138', 'tblTempUsageDetail_20' ) start [2024-12-20 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063138', 'tblTempUsageDetail_20' ) end [2024-12-20 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063138', 'tblTempVendorCDR_20' ) start [2024-12-20 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063138', 'tblTempVendorCDR_20' ) end [2024-12-20 13:30:20] Production.INFO: ProcessCDR(1,14063138,1,1,2) [2024-12-20 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063138', 'tblTempUsageDetail_20' ) start [2024-12-20 13:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063138', 'tblTempUsageDetail_20' ) end [2024-12-20 13:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:30:24] Production.INFO: ==11775== Releasing lock... [2024-12-20 13:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:30:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:31:05 [end_date_ymd] => 2024-12-20 13:31:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:31:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:31:18] Production.INFO: count ==5020 [2024-12-20 13:31:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:31:05 - End Time 2024-12-20 13:31:05 [2024-12-20 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063143', 'tblTempUsageDetail_20' ) start [2024-12-20 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063143', 'tblTempUsageDetail_20' ) end [2024-12-20 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063143', 'tblTempVendorCDR_20' ) start [2024-12-20 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063143', 'tblTempVendorCDR_20' ) end [2024-12-20 13:31:20] Production.INFO: ProcessCDR(1,14063143,1,1,2) [2024-12-20 13:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063143', 'tblTempUsageDetail_20' ) start [2024-12-20 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063143', 'tblTempUsageDetail_20' ) end [2024-12-20 13:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:31:24] Production.INFO: ==11850== Releasing lock... [2024-12-20 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:31:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:32:05 [end_date_ymd] => 2024-12-20 13:32:05 [RateCDR] => 1 ) [2024-12-20 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:32:05' and `end` < '2024-12-20 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:32:19] Production.INFO: count ==5052 [2024-12-20 13:32:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:32:05 - End Time 2024-12-20 13:32:05 [2024-12-20 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063148', 'tblTempUsageDetail_20' ) start [2024-12-20 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063148', 'tblTempUsageDetail_20' ) end [2024-12-20 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063148', 'tblTempVendorCDR_20' ) start [2024-12-20 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063148', 'tblTempVendorCDR_20' ) end [2024-12-20 13:32:21] Production.INFO: ProcessCDR(1,14063148,1,1,2) [2024-12-20 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063148', 'tblTempUsageDetail_20' ) start [2024-12-20 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063148', 'tblTempUsageDetail_20' ) end [2024-12-20 13:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:32:25] Production.INFO: ==11920== Releasing lock... [2024-12-20 13:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:32:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:33:04 [end_date_ymd] => 2024-12-20 13:33:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:33:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:33:17] Production.INFO: count ==5053 [2024-12-20 13:33:19] Production.ERROR: pbx CDR StartTime 2024-12-20 10:33:04 - End Time 2024-12-20 13:33:04 [2024-12-20 13:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063153', 'tblTempUsageDetail_20' ) start [2024-12-20 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063153', 'tblTempUsageDetail_20' ) end [2024-12-20 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063153', 'tblTempVendorCDR_20' ) start [2024-12-20 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063153', 'tblTempVendorCDR_20' ) end [2024-12-20 13:33:19] Production.INFO: ProcessCDR(1,14063153,1,1,2) [2024-12-20 13:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063153', 'tblTempUsageDetail_20' ) start [2024-12-20 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063153', 'tblTempUsageDetail_20' ) end [2024-12-20 13:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:33:24] Production.INFO: ==11990== Releasing lock... [2024-12-20 13:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:33:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:34:05 [end_date_ymd] => 2024-12-20 13:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:34:27] Production.INFO: count ==5069 [2024-12-20 13:34:29] Production.ERROR: pbx CDR StartTime 2024-12-20 10:34:05 - End Time 2024-12-20 13:34:05 [2024-12-20 13:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063158', 'tblTempUsageDetail_20' ) start [2024-12-20 13:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063158', 'tblTempUsageDetail_20' ) end [2024-12-20 13:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063158', 'tblTempVendorCDR_20' ) start [2024-12-20 13:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063158', 'tblTempVendorCDR_20' ) end [2024-12-20 13:34:29] Production.INFO: ProcessCDR(1,14063158,1,1,2) [2024-12-20 13:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063158', 'tblTempUsageDetail_20' ) start [2024-12-20 13:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063158', 'tblTempUsageDetail_20' ) end [2024-12-20 13:34:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:34:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:34:34] Production.INFO: ==12061== Releasing lock... [2024-12-20 13:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:34:34] Production.INFO: 66 MB #Memory Used# [2024-12-20 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:35:05 [end_date_ymd] => 2024-12-20 13:35:05 [RateCDR] => 1 ) [2024-12-20 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:35:05' and `end` < '2024-12-20 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:35:22] Production.INFO: count ==5102 [2024-12-20 13:35:24] Production.ERROR: pbx CDR StartTime 2024-12-20 10:35:05 - End Time 2024-12-20 13:35:05 [2024-12-20 13:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063163', 'tblTempUsageDetail_20' ) start [2024-12-20 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063163', 'tblTempUsageDetail_20' ) end [2024-12-20 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063163', 'tblTempVendorCDR_20' ) start [2024-12-20 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063163', 'tblTempVendorCDR_20' ) end [2024-12-20 13:35:24] Production.INFO: ProcessCDR(1,14063163,1,1,2) [2024-12-20 13:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063163', 'tblTempUsageDetail_20' ) start [2024-12-20 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063163', 'tblTempUsageDetail_20' ) end [2024-12-20 13:35:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:35:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:35:27] Production.INFO: ==12132== Releasing lock... [2024-12-20 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:35:27] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:36:05 [end_date_ymd] => 2024-12-20 13:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:36:18] Production.INFO: count ==5155 [2024-12-20 13:36:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:36:05 - End Time 2024-12-20 13:36:05 [2024-12-20 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063168', 'tblTempUsageDetail_20' ) start [2024-12-20 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063168', 'tblTempUsageDetail_20' ) end [2024-12-20 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063168', 'tblTempVendorCDR_20' ) start [2024-12-20 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063168', 'tblTempVendorCDR_20' ) end [2024-12-20 13:36:20] Production.INFO: ProcessCDR(1,14063168,1,1,2) [2024-12-20 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063168', 'tblTempUsageDetail_20' ) start [2024-12-20 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063168', 'tblTempUsageDetail_20' ) end [2024-12-20 13:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:36:24] Production.INFO: ==12202== Releasing lock... [2024-12-20 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:36:24] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:37:05 [end_date_ymd] => 2024-12-20 13:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:37:18] Production.INFO: count ==5158 [2024-12-20 13:37:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:37:05 - End Time 2024-12-20 13:37:05 [2024-12-20 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063173', 'tblTempUsageDetail_20' ) start [2024-12-20 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063173', 'tblTempUsageDetail_20' ) end [2024-12-20 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063173', 'tblTempVendorCDR_20' ) start [2024-12-20 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063173', 'tblTempVendorCDR_20' ) end [2024-12-20 13:37:20] Production.INFO: ProcessCDR(1,14063173,1,1,2) [2024-12-20 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063173', 'tblTempUsageDetail_20' ) start [2024-12-20 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063173', 'tblTempUsageDetail_20' ) end [2024-12-20 13:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:37:25] Production.INFO: ==12274== Releasing lock... [2024-12-20 13:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:37:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:38:04 [end_date_ymd] => 2024-12-20 13:38:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:38:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:38:18] Production.INFO: count ==5157 [2024-12-20 13:38:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:38:04 - End Time 2024-12-20 13:38:04 [2024-12-20 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063178', 'tblTempUsageDetail_20' ) start [2024-12-20 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063178', 'tblTempUsageDetail_20' ) end [2024-12-20 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063178', 'tblTempVendorCDR_20' ) start [2024-12-20 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063178', 'tblTempVendorCDR_20' ) end [2024-12-20 13:38:20] Production.INFO: ProcessCDR(1,14063178,1,1,2) [2024-12-20 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063178', 'tblTempUsageDetail_20' ) start [2024-12-20 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063178', 'tblTempUsageDetail_20' ) end [2024-12-20 13:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:38:25] Production.INFO: ==12346== Releasing lock... [2024-12-20 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:38:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:39:05 [end_date_ymd] => 2024-12-20 13:39:05 [RateCDR] => 1 ) [2024-12-20 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:39:05' and `end` < '2024-12-20 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:39:24] Production.INFO: count ==5198 [2024-12-20 13:39:26] Production.ERROR: pbx CDR StartTime 2024-12-20 10:39:05 - End Time 2024-12-20 13:39:05 [2024-12-20 13:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063183', 'tblTempUsageDetail_20' ) start [2024-12-20 13:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063183', 'tblTempUsageDetail_20' ) end [2024-12-20 13:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063183', 'tblTempVendorCDR_20' ) start [2024-12-20 13:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063183', 'tblTempVendorCDR_20' ) end [2024-12-20 13:39:26] Production.INFO: ProcessCDR(1,14063183,1,1,2) [2024-12-20 13:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063183', 'tblTempUsageDetail_20' ) start [2024-12-20 13:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063183', 'tblTempUsageDetail_20' ) end [2024-12-20 13:39:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:39:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:39:31] Production.INFO: ==12417== Releasing lock... [2024-12-20 13:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:39:31] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:40:05 [end_date_ymd] => 2024-12-20 13:40:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:40:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:40:23] Production.INFO: count ==5217 [2024-12-20 13:40:25] Production.ERROR: pbx CDR StartTime 2024-12-20 10:40:05 - End Time 2024-12-20 13:40:05 [2024-12-20 13:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063189', 'tblTempUsageDetail_20' ) start [2024-12-20 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063189', 'tblTempUsageDetail_20' ) end [2024-12-20 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063189', 'tblTempVendorCDR_20' ) start [2024-12-20 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063189', 'tblTempVendorCDR_20' ) end [2024-12-20 13:40:25] Production.INFO: ProcessCDR(1,14063189,1,1,2) [2024-12-20 13:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063189', 'tblTempUsageDetail_20' ) start [2024-12-20 13:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063189', 'tblTempUsageDetail_20' ) end [2024-12-20 13:40:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:40:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:40:30] Production.INFO: ==12493== Releasing lock... [2024-12-20 13:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:40:30] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:41:04 [end_date_ymd] => 2024-12-20 13:41:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:41:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:41:33] Production.INFO: count ==5240 [2024-12-20 13:41:35] Production.ERROR: pbx CDR StartTime 2024-12-20 10:41:04 - End Time 2024-12-20 13:41:04 [2024-12-20 13:41:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063194', 'tblTempUsageDetail_20' ) start [2024-12-20 13:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063194', 'tblTempUsageDetail_20' ) end [2024-12-20 13:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063194', 'tblTempVendorCDR_20' ) start [2024-12-20 13:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063194', 'tblTempVendorCDR_20' ) end [2024-12-20 13:41:36] Production.INFO: ProcessCDR(1,14063194,1,1,2) [2024-12-20 13:41:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:41:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:41:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:41:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:41:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063194', 'tblTempUsageDetail_20' ) start [2024-12-20 13:41:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063194', 'tblTempUsageDetail_20' ) end [2024-12-20 13:41:40] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:41:40] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:41:40] Production.INFO: ==12573== Releasing lock... [2024-12-20 13:41:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:41:40] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:42:05 [end_date_ymd] => 2024-12-20 13:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:42:26] Production.INFO: count ==5221 [2024-12-20 13:42:28] Production.ERROR: pbx CDR StartTime 2024-12-20 10:42:05 - End Time 2024-12-20 13:42:05 [2024-12-20 13:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063199', 'tblTempUsageDetail_20' ) start [2024-12-20 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063199', 'tblTempUsageDetail_20' ) end [2024-12-20 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063199', 'tblTempVendorCDR_20' ) start [2024-12-20 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063199', 'tblTempVendorCDR_20' ) end [2024-12-20 13:42:28] Production.INFO: ProcessCDR(1,14063199,1,1,2) [2024-12-20 13:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063199', 'tblTempUsageDetail_20' ) start [2024-12-20 13:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063199', 'tblTempUsageDetail_20' ) end [2024-12-20 13:42:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:42:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:42:31] Production.INFO: ==12645== Releasing lock... [2024-12-20 13:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:42:31] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:43:04 [end_date_ymd] => 2024-12-20 13:43:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:43:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:43:20] Production.INFO: count ==5253 [2024-12-20 13:43:22] Production.ERROR: pbx CDR StartTime 2024-12-20 10:43:04 - End Time 2024-12-20 13:43:04 [2024-12-20 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063204', 'tblTempUsageDetail_20' ) start [2024-12-20 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063204', 'tblTempUsageDetail_20' ) end [2024-12-20 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063204', 'tblTempVendorCDR_20' ) start [2024-12-20 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063204', 'tblTempVendorCDR_20' ) end [2024-12-20 13:43:22] Production.INFO: ProcessCDR(1,14063204,1,1,2) [2024-12-20 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063204', 'tblTempUsageDetail_20' ) start [2024-12-20 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063204', 'tblTempUsageDetail_20' ) end [2024-12-20 13:43:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:43:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:43:27] Production.INFO: ==12720== Releasing lock... [2024-12-20 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:43:27] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:44:05 [end_date_ymd] => 2024-12-20 13:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:44:18] Production.INFO: count ==5220 [2024-12-20 13:44:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:44:05 - End Time 2024-12-20 13:44:05 [2024-12-20 13:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063209', 'tblTempUsageDetail_20' ) start [2024-12-20 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063209', 'tblTempUsageDetail_20' ) end [2024-12-20 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063209', 'tblTempVendorCDR_20' ) start [2024-12-20 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063209', 'tblTempVendorCDR_20' ) end [2024-12-20 13:44:20] Production.INFO: ProcessCDR(1,14063209,1,1,2) [2024-12-20 13:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063209', 'tblTempUsageDetail_20' ) start [2024-12-20 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063209', 'tblTempUsageDetail_20' ) end [2024-12-20 13:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:44:24] Production.INFO: ==12790== Releasing lock... [2024-12-20 13:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:44:24] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:45:05 [end_date_ymd] => 2024-12-20 13:45:05 [RateCDR] => 1 ) [2024-12-20 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:45:05' and `end` < '2024-12-20 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:45:18] Production.INFO: count ==5203 [2024-12-20 13:45:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:45:05 - End Time 2024-12-20 13:45:05 [2024-12-20 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063214', 'tblTempUsageDetail_20' ) start [2024-12-20 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063214', 'tblTempUsageDetail_20' ) end [2024-12-20 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063214', 'tblTempVendorCDR_20' ) start [2024-12-20 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063214', 'tblTempVendorCDR_20' ) end [2024-12-20 13:45:20] Production.INFO: ProcessCDR(1,14063214,1,1,2) [2024-12-20 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063214', 'tblTempUsageDetail_20' ) start [2024-12-20 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063214', 'tblTempUsageDetail_20' ) end [2024-12-20 13:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:45:23] Production.INFO: ==12903== Releasing lock... [2024-12-20 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:45:23] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:46:04 [end_date_ymd] => 2024-12-20 13:46:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:46:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:46:22] Production.INFO: count ==5213 [2024-12-20 13:46:24] Production.ERROR: pbx CDR StartTime 2024-12-20 10:46:04 - End Time 2024-12-20 13:46:04 [2024-12-20 13:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063218', 'tblTempUsageDetail_20' ) start [2024-12-20 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063218', 'tblTempUsageDetail_20' ) end [2024-12-20 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063218', 'tblTempVendorCDR_20' ) start [2024-12-20 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063218', 'tblTempVendorCDR_20' ) end [2024-12-20 13:46:24] Production.INFO: ProcessCDR(1,14063218,1,1,2) [2024-12-20 13:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063218', 'tblTempUsageDetail_20' ) start [2024-12-20 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063218', 'tblTempUsageDetail_20' ) end [2024-12-20 13:46:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:46:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:46:29] Production.INFO: ==12978== Releasing lock... [2024-12-20 13:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:46:29] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:47:04 [end_date_ymd] => 2024-12-20 13:47:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:47:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:47:23] Production.INFO: count ==5193 [2024-12-20 13:47:25] Production.ERROR: pbx CDR StartTime 2024-12-20 10:47:04 - End Time 2024-12-20 13:47:04 [2024-12-20 13:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063224', 'tblTempUsageDetail_20' ) start [2024-12-20 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063224', 'tblTempUsageDetail_20' ) end [2024-12-20 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063224', 'tblTempVendorCDR_20' ) start [2024-12-20 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063224', 'tblTempVendorCDR_20' ) end [2024-12-20 13:47:25] Production.INFO: ProcessCDR(1,14063224,1,1,2) [2024-12-20 13:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063224', 'tblTempUsageDetail_20' ) start [2024-12-20 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063224', 'tblTempUsageDetail_20' ) end [2024-12-20 13:47:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:47:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:47:28] Production.INFO: ==13056== Releasing lock... [2024-12-20 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:47:28] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:48:04 [end_date_ymd] => 2024-12-20 13:48:04 [RateCDR] => 1 ) [2024-12-20 13:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:48:04' and `end` < '2024-12-20 13:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:48:22] Production.INFO: count ==5192 [2024-12-20 13:48:24] Production.ERROR: pbx CDR StartTime 2024-12-20 10:48:04 - End Time 2024-12-20 13:48:04 [2024-12-20 13:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063229', 'tblTempUsageDetail_20' ) start [2024-12-20 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063229', 'tblTempUsageDetail_20' ) end [2024-12-20 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063229', 'tblTempVendorCDR_20' ) start [2024-12-20 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063229', 'tblTempVendorCDR_20' ) end [2024-12-20 13:48:24] Production.INFO: ProcessCDR(1,14063229,1,1,2) [2024-12-20 13:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063229', 'tblTempUsageDetail_20' ) start [2024-12-20 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063229', 'tblTempUsageDetail_20' ) end [2024-12-20 13:48:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:48:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:48:28] Production.INFO: ==13134== Releasing lock... [2024-12-20 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:48:28] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:49:04 [end_date_ymd] => 2024-12-20 13:49:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:49:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:49:35] Production.INFO: count ==5169 [2024-12-20 13:49:37] Production.ERROR: pbx CDR StartTime 2024-12-20 10:49:04 - End Time 2024-12-20 13:49:04 [2024-12-20 13:49:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063234', 'tblTempUsageDetail_20' ) start [2024-12-20 13:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063234', 'tblTempUsageDetail_20' ) end [2024-12-20 13:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063234', 'tblTempVendorCDR_20' ) start [2024-12-20 13:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063234', 'tblTempVendorCDR_20' ) end [2024-12-20 13:49:37] Production.INFO: ProcessCDR(1,14063234,1,1,2) [2024-12-20 13:49:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:49:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:49:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:49:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:49:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063234', 'tblTempUsageDetail_20' ) start [2024-12-20 13:49:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063234', 'tblTempUsageDetail_20' ) end [2024-12-20 13:49:41] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:49:41] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:49:41] Production.INFO: ==13213== Releasing lock... [2024-12-20 13:49:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:49:41] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:50:06 [end_date_ymd] => 2024-12-20 13:50:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:50:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:50:31] Production.INFO: count ==5167 [2024-12-20 13:50:33] Production.ERROR: pbx CDR StartTime 2024-12-20 10:50:06 - End Time 2024-12-20 13:50:06 [2024-12-20 13:50:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063240', 'tblTempUsageDetail_20' ) start [2024-12-20 13:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063240', 'tblTempUsageDetail_20' ) end [2024-12-20 13:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063240', 'tblTempVendorCDR_20' ) start [2024-12-20 13:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063240', 'tblTempVendorCDR_20' ) end [2024-12-20 13:50:33] Production.INFO: ProcessCDR(1,14063240,1,1,2) [2024-12-20 13:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:50:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:50:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:50:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063240', 'tblTempUsageDetail_20' ) start [2024-12-20 13:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063240', 'tblTempUsageDetail_20' ) end [2024-12-20 13:50:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:50:38] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:50:38] Production.INFO: ==13289== Releasing lock... [2024-12-20 13:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:50:38] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:51:05 [end_date_ymd] => 2024-12-20 13:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:51:24] Production.INFO: count ==5184 [2024-12-20 13:51:26] Production.ERROR: pbx CDR StartTime 2024-12-20 10:51:05 - End Time 2024-12-20 13:51:05 [2024-12-20 13:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063245', 'tblTempUsageDetail_20' ) start [2024-12-20 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063245', 'tblTempUsageDetail_20' ) end [2024-12-20 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063245', 'tblTempVendorCDR_20' ) start [2024-12-20 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063245', 'tblTempVendorCDR_20' ) end [2024-12-20 13:51:26] Production.INFO: ProcessCDR(1,14063245,1,1,2) [2024-12-20 13:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063245', 'tblTempUsageDetail_20' ) start [2024-12-20 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063245', 'tblTempUsageDetail_20' ) end [2024-12-20 13:51:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:51:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:51:30] Production.INFO: ==13369== Releasing lock... [2024-12-20 13:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:51:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:52:05 [end_date_ymd] => 2024-12-20 13:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:52:31] Production.INFO: count ==5202 [2024-12-20 13:52:32] Production.ERROR: pbx CDR StartTime 2024-12-20 10:52:05 - End Time 2024-12-20 13:52:05 [2024-12-20 13:52:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063250', 'tblTempUsageDetail_20' ) start [2024-12-20 13:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063250', 'tblTempUsageDetail_20' ) end [2024-12-20 13:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063250', 'tblTempVendorCDR_20' ) start [2024-12-20 13:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063250', 'tblTempVendorCDR_20' ) end [2024-12-20 13:52:33] Production.INFO: ProcessCDR(1,14063250,1,1,2) [2024-12-20 13:52:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:52:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:52:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:52:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063250', 'tblTempUsageDetail_20' ) start [2024-12-20 13:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063250', 'tblTempUsageDetail_20' ) end [2024-12-20 13:52:37] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:52:37] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:52:37] Production.INFO: ==13449== Releasing lock... [2024-12-20 13:52:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:52:37] Production.INFO: 67 MB #Memory Used# [2024-12-20 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:53:04 [end_date_ymd] => 2024-12-20 13:53:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:53:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:53:24] Production.INFO: count ==5240 [2024-12-20 13:53:26] Production.ERROR: pbx CDR StartTime 2024-12-20 10:53:04 - End Time 2024-12-20 13:53:04 [2024-12-20 13:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063255', 'tblTempUsageDetail_20' ) start [2024-12-20 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063255', 'tblTempUsageDetail_20' ) end [2024-12-20 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063255', 'tblTempVendorCDR_20' ) start [2024-12-20 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063255', 'tblTempVendorCDR_20' ) end [2024-12-20 13:53:26] Production.INFO: ProcessCDR(1,14063255,1,1,2) [2024-12-20 13:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063255', 'tblTempUsageDetail_20' ) start [2024-12-20 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063255', 'tblTempUsageDetail_20' ) end [2024-12-20 13:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:53:30] Production.INFO: ==13523== Releasing lock... [2024-12-20 13:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:53:30] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:54:04 [end_date_ymd] => 2024-12-20 13:54:04 [RateCDR] => 1 ) [2024-12-20 13:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:54:04' and `end` < '2024-12-20 13:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:54:17] Production.INFO: count ==5250 [2024-12-20 13:54:19] Production.ERROR: pbx CDR StartTime 2024-12-20 10:54:04 - End Time 2024-12-20 13:54:04 [2024-12-20 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063260', 'tblTempUsageDetail_20' ) start [2024-12-20 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063260', 'tblTempUsageDetail_20' ) end [2024-12-20 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063260', 'tblTempVendorCDR_20' ) start [2024-12-20 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063260', 'tblTempVendorCDR_20' ) end [2024-12-20 13:54:19] Production.INFO: ProcessCDR(1,14063260,1,1,2) [2024-12-20 13:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063260', 'tblTempUsageDetail_20' ) start [2024-12-20 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063260', 'tblTempUsageDetail_20' ) end [2024-12-20 13:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:54:24] Production.INFO: ==13598== Releasing lock... [2024-12-20 13:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:54:24] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:55:05 [end_date_ymd] => 2024-12-20 13:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:55:18] Production.INFO: count ==5246 [2024-12-20 13:55:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:55:05 - End Time 2024-12-20 13:55:05 [2024-12-20 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063265', 'tblTempUsageDetail_20' ) start [2024-12-20 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063265', 'tblTempUsageDetail_20' ) end [2024-12-20 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063265', 'tblTempVendorCDR_20' ) start [2024-12-20 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063265', 'tblTempVendorCDR_20' ) end [2024-12-20 13:55:20] Production.INFO: ProcessCDR(1,14063265,1,1,2) [2024-12-20 13:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063265', 'tblTempUsageDetail_20' ) start [2024-12-20 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063265', 'tblTempUsageDetail_20' ) end [2024-12-20 13:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:55:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:55:25] Production.INFO: ==13678== Releasing lock... [2024-12-20 13:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:55:25] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 13:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:56:04 [end_date_ymd] => 2024-12-20 13:56:04 [RateCDR] => 1 ) [2024-12-20 13:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 10:56:04' and `end` < '2024-12-20 13:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 13:56:20] Production.INFO: count ==5246 [2024-12-20 13:56:22] Production.ERROR: pbx CDR StartTime 2024-12-20 10:56:04 - End Time 2024-12-20 13:56:04 [2024-12-20 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063270', 'tblTempUsageDetail_20' ) start [2024-12-20 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063270', 'tblTempUsageDetail_20' ) end [2024-12-20 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063270', 'tblTempVendorCDR_20' ) start [2024-12-20 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063270', 'tblTempVendorCDR_20' ) end [2024-12-20 13:56:22] Production.INFO: ProcessCDR(1,14063270,1,1,2) [2024-12-20 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063270', 'tblTempUsageDetail_20' ) start [2024-12-20 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063270', 'tblTempUsageDetail_20' ) end [2024-12-20 13:56:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:56:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:56:27] Production.INFO: ==13755== Releasing lock... [2024-12-20 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:56:27] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:57:05 [end_date_ymd] => 2024-12-20 13:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:57:18] Production.INFO: count ==5239 [2024-12-20 13:57:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:57:05 - End Time 2024-12-20 13:57:05 [2024-12-20 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063275', 'tblTempUsageDetail_20' ) start [2024-12-20 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063275', 'tblTempUsageDetail_20' ) end [2024-12-20 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063275', 'tblTempVendorCDR_20' ) start [2024-12-20 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063275', 'tblTempVendorCDR_20' ) end [2024-12-20 13:57:20] Production.INFO: ProcessCDR(1,14063275,1,1,2) [2024-12-20 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063275', 'tblTempUsageDetail_20' ) start [2024-12-20 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063275', 'tblTempUsageDetail_20' ) end [2024-12-20 13:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:57:24] Production.INFO: ==13834== Releasing lock... [2024-12-20 13:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:57:24] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:58:04 [end_date_ymd] => 2024-12-20 13:58:04 [RateCDR] => 1 ) [2024-12-20 13: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` >= '2024-12-20 10:58:04' and `end` < '2024-12-20 13: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 ,'') [2024-12-20 13:58:18] Production.INFO: count ==5247 [2024-12-20 13:58:20] Production.ERROR: pbx CDR StartTime 2024-12-20 10:58:04 - End Time 2024-12-20 13:58:04 [2024-12-20 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063280', 'tblTempUsageDetail_20' ) start [2024-12-20 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063280', 'tblTempUsageDetail_20' ) end [2024-12-20 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063280', 'tblTempVendorCDR_20' ) start [2024-12-20 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063280', 'tblTempVendorCDR_20' ) end [2024-12-20 13:58:20] Production.INFO: ProcessCDR(1,14063280,1,1,2) [2024-12-20 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063280', 'tblTempUsageDetail_20' ) start [2024-12-20 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063280', 'tblTempUsageDetail_20' ) end [2024-12-20 13:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:58:25] Production.INFO: ==13914== Releasing lock... [2024-12-20 13:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:58:25] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 10:59:05 [end_date_ymd] => 2024-12-20 13:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 10:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 13:59:22] Production.INFO: count ==5263 [2024-12-20 13:59:24] Production.ERROR: pbx CDR StartTime 2024-12-20 10:59:05 - End Time 2024-12-20 13:59:05 [2024-12-20 13:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063285', 'tblTempUsageDetail_20' ) start [2024-12-20 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063285', 'tblTempUsageDetail_20' ) end [2024-12-20 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063285', 'tblTempVendorCDR_20' ) start [2024-12-20 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063285', 'tblTempVendorCDR_20' ) end [2024-12-20 13:59:24] Production.INFO: ProcessCDR(1,14063285,1,1,2) [2024-12-20 13:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 13:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063285', 'tblTempUsageDetail_20' ) start [2024-12-20 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063285', 'tblTempUsageDetail_20' ) end [2024-12-20 13:59:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 13:59:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 13:59:29] Production.INFO: ==13989== Releasing lock... [2024-12-20 13:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 13:59:29] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:00:05 [end_date_ymd] => 2024-12-20 14:00:05 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:00:05' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:00:19] Production.INFO: count ==5273 [2024-12-20 14:00:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:00:05 - End Time 2024-12-20 14:00:05 [2024-12-20 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063291', 'tblTempUsageDetail_20' ) start [2024-12-20 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063291', 'tblTempUsageDetail_20' ) end [2024-12-20 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063291', 'tblTempVendorCDR_20' ) start [2024-12-20 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063291', 'tblTempVendorCDR_20' ) end [2024-12-20 14:00:21] Production.INFO: ProcessCDR(1,14063291,1,1,2) [2024-12-20 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063291', 'tblTempUsageDetail_20' ) start [2024-12-20 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063291', 'tblTempUsageDetail_20' ) end [2024-12-20 14:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:00:25] Production.INFO: ==14069== Releasing lock... [2024-12-20 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:00:25] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:01:05 [end_date_ymd] => 2024-12-20 14:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:01:18] Production.INFO: count ==5200 [2024-12-20 14:01:19] Production.ERROR: pbx CDR StartTime 2024-12-20 11:01:05 - End Time 2024-12-20 14:01:05 [2024-12-20 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063296', 'tblTempUsageDetail_20' ) start [2024-12-20 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063296', 'tblTempUsageDetail_20' ) end [2024-12-20 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063296', 'tblTempVendorCDR_20' ) start [2024-12-20 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063296', 'tblTempVendorCDR_20' ) end [2024-12-20 14:01:20] Production.INFO: ProcessCDR(1,14063296,1,1,2) [2024-12-20 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063296', 'tblTempUsageDetail_20' ) start [2024-12-20 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063296', 'tblTempUsageDetail_20' ) end [2024-12-20 14:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:01:24] Production.INFO: ==14201== Releasing lock... [2024-12-20 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:01:24] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:02:05 [end_date_ymd] => 2024-12-20 14:02:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:02:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:02:18] Production.INFO: count ==5200 [2024-12-20 14:02:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:02:05 - End Time 2024-12-20 14:02:05 [2024-12-20 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063301', 'tblTempUsageDetail_20' ) start [2024-12-20 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063301', 'tblTempUsageDetail_20' ) end [2024-12-20 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063301', 'tblTempVendorCDR_20' ) start [2024-12-20 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063301', 'tblTempVendorCDR_20' ) end [2024-12-20 14:02:20] Production.INFO: ProcessCDR(1,14063301,1,1,2) [2024-12-20 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063301', 'tblTempUsageDetail_20' ) start [2024-12-20 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063301', 'tblTempUsageDetail_20' ) end [2024-12-20 14:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:02:25] Production.INFO: ==14273== Releasing lock... [2024-12-20 14:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:02:25] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:03:04 [end_date_ymd] => 2024-12-20 14:03:04 [RateCDR] => 1 ) [2024-12-20 14:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:03:04' and `end` < '2024-12-20 14:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:03:19] Production.INFO: count ==5204 [2024-12-20 14:03:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:03:04 - End Time 2024-12-20 14:03:04 [2024-12-20 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063306', 'tblTempUsageDetail_20' ) start [2024-12-20 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063306', 'tblTempUsageDetail_20' ) end [2024-12-20 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063306', 'tblTempVendorCDR_20' ) start [2024-12-20 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063306', 'tblTempVendorCDR_20' ) end [2024-12-20 14:03:21] Production.INFO: ProcessCDR(1,14063306,1,1,2) [2024-12-20 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063306', 'tblTempUsageDetail_20' ) start [2024-12-20 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063306', 'tblTempUsageDetail_20' ) end [2024-12-20 14:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:03:25] Production.INFO: ==14347== Releasing lock... [2024-12-20 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:03:25] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:04:05 [end_date_ymd] => 2024-12-20 14:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:04:18] Production.INFO: count ==5218 [2024-12-20 14:04:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:04:05 - End Time 2024-12-20 14:04:05 [2024-12-20 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063311', 'tblTempUsageDetail_20' ) start [2024-12-20 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063311', 'tblTempUsageDetail_20' ) end [2024-12-20 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063311', 'tblTempVendorCDR_20' ) start [2024-12-20 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063311', 'tblTempVendorCDR_20' ) end [2024-12-20 14:04:20] Production.INFO: ProcessCDR(1,14063311,1,1,2) [2024-12-20 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063311', 'tblTempUsageDetail_20' ) start [2024-12-20 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063311', 'tblTempUsageDetail_20' ) end [2024-12-20 14:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:04:25] Production.INFO: ==14427== Releasing lock... [2024-12-20 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:04:25] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:05:05 [end_date_ymd] => 2024-12-20 14:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:05:20] Production.INFO: count ==5199 [2024-12-20 14:05:22] Production.ERROR: pbx CDR StartTime 2024-12-20 11:05:05 - End Time 2024-12-20 14:05:05 [2024-12-20 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063316', 'tblTempUsageDetail_20' ) start [2024-12-20 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063316', 'tblTempUsageDetail_20' ) end [2024-12-20 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063316', 'tblTempVendorCDR_20' ) start [2024-12-20 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063316', 'tblTempVendorCDR_20' ) end [2024-12-20 14:05:22] Production.INFO: ProcessCDR(1,14063316,1,1,2) [2024-12-20 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063316', 'tblTempUsageDetail_20' ) start [2024-12-20 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063316', 'tblTempUsageDetail_20' ) end [2024-12-20 14:05:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:05:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:05:27] Production.INFO: ==14503== Releasing lock... [2024-12-20 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:05:27] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:06:04 [end_date_ymd] => 2024-12-20 14:06:04 [RateCDR] => 1 ) [2024-12-20 14:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:06:04' and `end` < '2024-12-20 14:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:06:23] Production.INFO: count ==5205 [2024-12-20 14:06:24] Production.ERROR: pbx CDR StartTime 2024-12-20 11:06:04 - End Time 2024-12-20 14:06:04 [2024-12-20 14:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063321', 'tblTempUsageDetail_20' ) start [2024-12-20 14:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063321', 'tblTempUsageDetail_20' ) end [2024-12-20 14:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063321', 'tblTempVendorCDR_20' ) start [2024-12-20 14:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063321', 'tblTempVendorCDR_20' ) end [2024-12-20 14:06:25] Production.INFO: ProcessCDR(1,14063321,1,1,2) [2024-12-20 14:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063321', 'tblTempUsageDetail_20' ) start [2024-12-20 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063321', 'tblTempUsageDetail_20' ) end [2024-12-20 14:06:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:06:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:06:29] Production.INFO: ==14576== Releasing lock... [2024-12-20 14:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:06:29] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:07:05 [end_date_ymd] => 2024-12-20 14:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:07:26] Production.INFO: count ==5217 [2024-12-20 14:07:28] Production.ERROR: pbx CDR StartTime 2024-12-20 11:07:05 - End Time 2024-12-20 14:07:05 [2024-12-20 14:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063326', 'tblTempUsageDetail_20' ) start [2024-12-20 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063326', 'tblTempUsageDetail_20' ) end [2024-12-20 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063326', 'tblTempVendorCDR_20' ) start [2024-12-20 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063326', 'tblTempVendorCDR_20' ) end [2024-12-20 14:07:28] Production.INFO: ProcessCDR(1,14063326,1,1,2) [2024-12-20 14:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063326', 'tblTempUsageDetail_20' ) start [2024-12-20 14:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063326', 'tblTempUsageDetail_20' ) end [2024-12-20 14:07:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:07:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:07:33] Production.INFO: ==14653== Releasing lock... [2024-12-20 14:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:07:33] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:08:05 [end_date_ymd] => 2024-12-20 14:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:08:18] Production.INFO: count ==5184 [2024-12-20 14:08:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:08:05 - End Time 2024-12-20 14:08:05 [2024-12-20 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063331', 'tblTempUsageDetail_20' ) start [2024-12-20 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063331', 'tblTempUsageDetail_20' ) end [2024-12-20 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063331', 'tblTempVendorCDR_20' ) start [2024-12-20 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063331', 'tblTempVendorCDR_20' ) end [2024-12-20 14:08:20] Production.INFO: ProcessCDR(1,14063331,1,1,2) [2024-12-20 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063331', 'tblTempUsageDetail_20' ) start [2024-12-20 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063331', 'tblTempUsageDetail_20' ) end [2024-12-20 14:08:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:08:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:08:25] Production.INFO: ==14729== Releasing lock... [2024-12-20 14:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:08:25] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:09:05 [end_date_ymd] => 2024-12-20 14:09:05 [RateCDR] => 1 ) [2024-12-20 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:09:21] Production.INFO: count ==5183 [2024-12-20 14:09:22] Production.ERROR: pbx CDR StartTime 2024-12-20 11:09:05 - End Time 2024-12-20 14:09:05 [2024-12-20 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063336', 'tblTempUsageDetail_20' ) start [2024-12-20 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063336', 'tblTempUsageDetail_20' ) end [2024-12-20 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063336', 'tblTempVendorCDR_20' ) start [2024-12-20 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063336', 'tblTempVendorCDR_20' ) end [2024-12-20 14:09:23] Production.INFO: ProcessCDR(1,14063336,1,1,2) [2024-12-20 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063336', 'tblTempUsageDetail_20' ) start [2024-12-20 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063336', 'tblTempUsageDetail_20' ) end [2024-12-20 14:09:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:09:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:09:27] Production.INFO: ==14807== Releasing lock... [2024-12-20 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:09:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:10:05 [end_date_ymd] => 2024-12-20 14:10:05 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:10:05' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:10:25] Production.INFO: count ==5165 [2024-12-20 14:10:27] Production.ERROR: pbx CDR StartTime 2024-12-20 11:10:05 - End Time 2024-12-20 14:10:05 [2024-12-20 14:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063342', 'tblTempUsageDetail_20' ) start [2024-12-20 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063342', 'tblTempUsageDetail_20' ) end [2024-12-20 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063342', 'tblTempVendorCDR_20' ) start [2024-12-20 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063342', 'tblTempVendorCDR_20' ) end [2024-12-20 14:10:27] Production.INFO: ProcessCDR(1,14063342,1,1,2) [2024-12-20 14:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063342', 'tblTempUsageDetail_20' ) start [2024-12-20 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063342', 'tblTempUsageDetail_20' ) end [2024-12-20 14:10:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:10:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:10:32] Production.INFO: ==14881== Releasing lock... [2024-12-20 14:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:10:32] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:11:05 [end_date_ymd] => 2024-12-20 14:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:11:25] Production.INFO: count ==5154 [2024-12-20 14:11:27] Production.ERROR: pbx CDR StartTime 2024-12-20 11:11:05 - End Time 2024-12-20 14:11:05 [2024-12-20 14:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063347', 'tblTempUsageDetail_20' ) start [2024-12-20 14:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063347', 'tblTempUsageDetail_20' ) end [2024-12-20 14:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063347', 'tblTempVendorCDR_20' ) start [2024-12-20 14:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063347', 'tblTempVendorCDR_20' ) end [2024-12-20 14:11:28] Production.INFO: ProcessCDR(1,14063347,1,1,2) [2024-12-20 14:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063347', 'tblTempUsageDetail_20' ) start [2024-12-20 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063347', 'tblTempUsageDetail_20' ) end [2024-12-20 14:11:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:11:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:11:32] Production.INFO: ==14960== Releasing lock... [2024-12-20 14:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:11:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:12:05 [end_date_ymd] => 2024-12-20 14:12:05 [RateCDR] => 1 ) [2024-12-20 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:12:05' and `end` < '2024-12-20 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:12:22] Production.INFO: count ==5154 [2024-12-20 14:12:24] Production.ERROR: pbx CDR StartTime 2024-12-20 11:12:05 - End Time 2024-12-20 14:12:05 [2024-12-20 14:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063352', 'tblTempUsageDetail_20' ) start [2024-12-20 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063352', 'tblTempUsageDetail_20' ) end [2024-12-20 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063352', 'tblTempVendorCDR_20' ) start [2024-12-20 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063352', 'tblTempVendorCDR_20' ) end [2024-12-20 14:12:24] Production.INFO: ProcessCDR(1,14063352,1,1,2) [2024-12-20 14:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063352', 'tblTempUsageDetail_20' ) start [2024-12-20 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063352', 'tblTempUsageDetail_20' ) end [2024-12-20 14:12:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:12:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:12:28] Production.INFO: ==15038== Releasing lock... [2024-12-20 14:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:12:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:13:04 [end_date_ymd] => 2024-12-20 14:13:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:13:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:13:18] Production.INFO: count ==5164 [2024-12-20 14:13:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:13:04 - End Time 2024-12-20 14:13:04 [2024-12-20 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063357', 'tblTempUsageDetail_20' ) start [2024-12-20 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063357', 'tblTempUsageDetail_20' ) end [2024-12-20 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063357', 'tblTempVendorCDR_20' ) start [2024-12-20 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063357', 'tblTempVendorCDR_20' ) end [2024-12-20 14:13:20] Production.INFO: ProcessCDR(1,14063357,1,1,2) [2024-12-20 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063357', 'tblTempUsageDetail_20' ) start [2024-12-20 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063357', 'tblTempUsageDetail_20' ) end [2024-12-20 14:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:13:24] Production.INFO: ==15119== Releasing lock... [2024-12-20 14:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:13:24] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 14:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:14:04 [end_date_ymd] => 2024-12-20 14:14:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:14:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:14:19] Production.INFO: count ==5138 [2024-12-20 14:14:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:14:04 - End Time 2024-12-20 14:14:04 [2024-12-20 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063362', 'tblTempUsageDetail_20' ) start [2024-12-20 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063362', 'tblTempUsageDetail_20' ) end [2024-12-20 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063362', 'tblTempVendorCDR_20' ) start [2024-12-20 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063362', 'tblTempVendorCDR_20' ) end [2024-12-20 14:14:21] Production.INFO: ProcessCDR(1,14063362,1,1,2) [2024-12-20 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063362', 'tblTempUsageDetail_20' ) start [2024-12-20 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063362', 'tblTempUsageDetail_20' ) end [2024-12-20 14:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:14:25] Production.INFO: ==15193== Releasing lock... [2024-12-20 14:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:14:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:15:05 [end_date_ymd] => 2024-12-20 14:15:05 [RateCDR] => 1 ) [2024-12-20 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:15:05' and `end` < '2024-12-20 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:15:18] Production.INFO: count ==5130 [2024-12-20 14:15:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:15:05 - End Time 2024-12-20 14:15:05 [2024-12-20 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063367', 'tblTempUsageDetail_20' ) start [2024-12-20 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063367', 'tblTempUsageDetail_20' ) end [2024-12-20 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063367', 'tblTempVendorCDR_20' ) start [2024-12-20 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063367', 'tblTempVendorCDR_20' ) end [2024-12-20 14:15:20] Production.INFO: ProcessCDR(1,14063367,1,1,2) [2024-12-20 14:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063367', 'tblTempUsageDetail_20' ) start [2024-12-20 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063367', 'tblTempUsageDetail_20' ) end [2024-12-20 14:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:15:24] Production.INFO: ==15270== Releasing lock... [2024-12-20 14:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:15:24] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:16:05 [end_date_ymd] => 2024-12-20 14:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:16:20] Production.INFO: count ==5136 [2024-12-20 14:16:22] Production.ERROR: pbx CDR StartTime 2024-12-20 11:16:05 - End Time 2024-12-20 14:16:05 [2024-12-20 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063372', 'tblTempUsageDetail_20' ) start [2024-12-20 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063372', 'tblTempUsageDetail_20' ) end [2024-12-20 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063372', 'tblTempVendorCDR_20' ) start [2024-12-20 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063372', 'tblTempVendorCDR_20' ) end [2024-12-20 14:16:22] Production.INFO: ProcessCDR(1,14063372,1,1,2) [2024-12-20 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063372', 'tblTempUsageDetail_20' ) start [2024-12-20 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063372', 'tblTempUsageDetail_20' ) end [2024-12-20 14:16:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:16:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:16:28] Production.INFO: ==15343== Releasing lock... [2024-12-20 14:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:16:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:17:04 [end_date_ymd] => 2024-12-20 14:17:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:17:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:17:21] Production.INFO: count ==5150 [2024-12-20 14:17:23] Production.ERROR: pbx CDR StartTime 2024-12-20 11:17:04 - End Time 2024-12-20 14:17:04 [2024-12-20 14:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063377', 'tblTempUsageDetail_20' ) start [2024-12-20 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063377', 'tblTempUsageDetail_20' ) end [2024-12-20 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063377', 'tblTempVendorCDR_20' ) start [2024-12-20 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063377', 'tblTempVendorCDR_20' ) end [2024-12-20 14:17:23] Production.INFO: ProcessCDR(1,14063377,1,1,2) [2024-12-20 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063377', 'tblTempUsageDetail_20' ) start [2024-12-20 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063377', 'tblTempUsageDetail_20' ) end [2024-12-20 14:17:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:17:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:17:27] Production.INFO: ==15451== Releasing lock... [2024-12-20 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:17:27] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:18:05 [end_date_ymd] => 2024-12-20 14:18:05 [RateCDR] => 1 ) [2024-12-20 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:18:05' and `end` < '2024-12-20 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:18:25] Production.INFO: count ==5160 [2024-12-20 14:18:27] Production.ERROR: pbx CDR StartTime 2024-12-20 11:18:05 - End Time 2024-12-20 14:18:05 [2024-12-20 14:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063382', 'tblTempUsageDetail_20' ) start [2024-12-20 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063382', 'tblTempUsageDetail_20' ) end [2024-12-20 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063382', 'tblTempVendorCDR_20' ) start [2024-12-20 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063382', 'tblTempVendorCDR_20' ) end [2024-12-20 14:18:27] Production.INFO: ProcessCDR(1,14063382,1,1,2) [2024-12-20 14:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063382', 'tblTempUsageDetail_20' ) start [2024-12-20 14:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063382', 'tblTempUsageDetail_20' ) end [2024-12-20 14:18:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:18:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:18:32] Production.INFO: ==15521== Releasing lock... [2024-12-20 14:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:18:32] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:19:05 [end_date_ymd] => 2024-12-20 14:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:19:21] Production.INFO: count ==5150 [2024-12-20 14:19:23] Production.ERROR: pbx CDR StartTime 2024-12-20 11:19:05 - End Time 2024-12-20 14:19:05 [2024-12-20 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063387', 'tblTempUsageDetail_20' ) start [2024-12-20 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063387', 'tblTempUsageDetail_20' ) end [2024-12-20 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063387', 'tblTempVendorCDR_20' ) start [2024-12-20 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063387', 'tblTempVendorCDR_20' ) end [2024-12-20 14:19:23] Production.INFO: ProcessCDR(1,14063387,1,1,2) [2024-12-20 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063387', 'tblTempUsageDetail_20' ) start [2024-12-20 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063387', 'tblTempUsageDetail_20' ) end [2024-12-20 14:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:19:28] Production.INFO: ==15595== Releasing lock... [2024-12-20 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:19:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:20:05 [end_date_ymd] => 2024-12-20 14:20:05 [RateCDR] => 1 ) [2024-12-20 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:20:05' and `end` < '2024-12-20 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:20:19] Production.INFO: count ==5168 [2024-12-20 14:20:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:20:05 - End Time 2024-12-20 14:20:05 [2024-12-20 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063392', 'tblTempUsageDetail_20' ) start [2024-12-20 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063392', 'tblTempUsageDetail_20' ) end [2024-12-20 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063392', 'tblTempVendorCDR_20' ) start [2024-12-20 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063392', 'tblTempVendorCDR_20' ) end [2024-12-20 14:20:21] Production.INFO: ProcessCDR(1,14063392,1,1,2) [2024-12-20 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063392', 'tblTempUsageDetail_20' ) start [2024-12-20 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063392', 'tblTempUsageDetail_20' ) end [2024-12-20 14:20:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:20:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:20:26] Production.INFO: ==15668== Releasing lock... [2024-12-20 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:20:26] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:21:04 [end_date_ymd] => 2024-12-20 14:21:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:21:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:21:18] Production.INFO: count ==5108 [2024-12-20 14:21:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:21:04 - End Time 2024-12-20 14:21:04 [2024-12-20 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063398', 'tblTempUsageDetail_20' ) start [2024-12-20 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063398', 'tblTempUsageDetail_20' ) end [2024-12-20 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063398', 'tblTempVendorCDR_20' ) start [2024-12-20 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063398', 'tblTempVendorCDR_20' ) end [2024-12-20 14:21:20] Production.INFO: ProcessCDR(1,14063398,1,1,2) [2024-12-20 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063398', 'tblTempUsageDetail_20' ) start [2024-12-20 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063398', 'tblTempUsageDetail_20' ) end [2024-12-20 14:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:21:24] Production.INFO: ==15739== Releasing lock... [2024-12-20 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:21:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:22:05 [end_date_ymd] => 2024-12-20 14:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:22:18] Production.INFO: count ==5106 [2024-12-20 14:22:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:22:05 - End Time 2024-12-20 14:22:05 [2024-12-20 14:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063403', 'tblTempUsageDetail_20' ) start [2024-12-20 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063403', 'tblTempUsageDetail_20' ) end [2024-12-20 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063403', 'tblTempVendorCDR_20' ) start [2024-12-20 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063403', 'tblTempVendorCDR_20' ) end [2024-12-20 14:22:20] Production.INFO: ProcessCDR(1,14063403,1,1,2) [2024-12-20 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063403', 'tblTempUsageDetail_20' ) start [2024-12-20 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063403', 'tblTempUsageDetail_20' ) end [2024-12-20 14:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:22:24] Production.INFO: ==15812== Releasing lock... [2024-12-20 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:22:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:23:05 [end_date_ymd] => 2024-12-20 14:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:23:20] Production.INFO: count ==5109 [2024-12-20 14:23:22] Production.ERROR: pbx CDR StartTime 2024-12-20 11:23:05 - End Time 2024-12-20 14:23:05 [2024-12-20 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063408', 'tblTempUsageDetail_20' ) start [2024-12-20 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063408', 'tblTempUsageDetail_20' ) end [2024-12-20 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063408', 'tblTempVendorCDR_20' ) start [2024-12-20 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063408', 'tblTempVendorCDR_20' ) end [2024-12-20 14:23:22] Production.INFO: ProcessCDR(1,14063408,1,1,2) [2024-12-20 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063408', 'tblTempUsageDetail_20' ) start [2024-12-20 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063408', 'tblTempUsageDetail_20' ) end [2024-12-20 14:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:23:26] Production.INFO: ==15883== Releasing lock... [2024-12-20 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:23:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:24:05 [end_date_ymd] => 2024-12-20 14:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:24:18] Production.INFO: count ==5108 [2024-12-20 14:24:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:24:05 - End Time 2024-12-20 14:24:05 [2024-12-20 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063411', 'tblTempUsageDetail_20' ) start [2024-12-20 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063411', 'tblTempUsageDetail_20' ) end [2024-12-20 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063411', 'tblTempVendorCDR_20' ) start [2024-12-20 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063411', 'tblTempVendorCDR_20' ) end [2024-12-20 14:24:20] Production.INFO: ProcessCDR(1,14063411,1,1,2) [2024-12-20 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063411', 'tblTempUsageDetail_20' ) start [2024-12-20 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063411', 'tblTempUsageDetail_20' ) end [2024-12-20 14:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:24:25] Production.INFO: ==15956== Releasing lock... [2024-12-20 14:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:24:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:25:05 [end_date_ymd] => 2024-12-20 14:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:25:19] Production.INFO: count ==5117 [2024-12-20 14:25:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:25:05 - End Time 2024-12-20 14:25:05 [2024-12-20 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063418', 'tblTempUsageDetail_20' ) start [2024-12-20 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063418', 'tblTempUsageDetail_20' ) end [2024-12-20 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063418', 'tblTempVendorCDR_20' ) start [2024-12-20 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063418', 'tblTempVendorCDR_20' ) end [2024-12-20 14:25:21] Production.INFO: ProcessCDR(1,14063418,1,1,2) [2024-12-20 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063418', 'tblTempUsageDetail_20' ) start [2024-12-20 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063418', 'tblTempUsageDetail_20' ) end [2024-12-20 14:25:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:25:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:25:26] Production.INFO: ==16027== Releasing lock... [2024-12-20 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:25:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:26:04 [end_date_ymd] => 2024-12-20 14:26:04 [RateCDR] => 1 ) [2024-12-20 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:26:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:26:23] Production.INFO: count ==5105 [2024-12-20 14:26:25] Production.ERROR: pbx CDR StartTime 2024-12-20 11:26:04 - End Time 2024-12-20 14:26:04 [2024-12-20 14:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063423', 'tblTempUsageDetail_20' ) start [2024-12-20 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063423', 'tblTempUsageDetail_20' ) end [2024-12-20 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063423', 'tblTempVendorCDR_20' ) start [2024-12-20 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063423', 'tblTempVendorCDR_20' ) end [2024-12-20 14:26:25] Production.INFO: ProcessCDR(1,14063423,1,1,2) [2024-12-20 14:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063423', 'tblTempUsageDetail_20' ) start [2024-12-20 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063423', 'tblTempUsageDetail_20' ) end [2024-12-20 14:26:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:26:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:26:29] Production.INFO: ==16101== Releasing lock... [2024-12-20 14:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:26:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:27:04 [end_date_ymd] => 2024-12-20 14:27:04 [RateCDR] => 1 ) [2024-12-20 14:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:27:04' and `end` < '2024-12-20 14:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:27:19] Production.INFO: count ==5093 [2024-12-20 14:27:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:27:04 - End Time 2024-12-20 14:27:04 [2024-12-20 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063428', 'tblTempUsageDetail_20' ) start [2024-12-20 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063428', 'tblTempUsageDetail_20' ) end [2024-12-20 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063428', 'tblTempVendorCDR_20' ) start [2024-12-20 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063428', 'tblTempVendorCDR_20' ) end [2024-12-20 14:27:21] Production.INFO: ProcessCDR(1,14063428,1,1,2) [2024-12-20 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063428', 'tblTempUsageDetail_20' ) start [2024-12-20 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063428', 'tblTempUsageDetail_20' ) end [2024-12-20 14:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:27:25] Production.INFO: ==16172== Releasing lock... [2024-12-20 14:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:27:25] Production.INFO: 66 MB #Memory Used# [2024-12-20 14:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:28:04 [end_date_ymd] => 2024-12-20 14:28:04 [RateCDR] => 1 ) [2024-12-20 14:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:28:04' and `end` < '2024-12-20 14:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:28:19] Production.INFO: count ==5067 [2024-12-20 14:28:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:28:04 - End Time 2024-12-20 14:28:04 [2024-12-20 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063433', 'tblTempUsageDetail_20' ) start [2024-12-20 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063433', 'tblTempUsageDetail_20' ) end [2024-12-20 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063433', 'tblTempVendorCDR_20' ) start [2024-12-20 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063433', 'tblTempVendorCDR_20' ) end [2024-12-20 14:28:21] Production.INFO: ProcessCDR(1,14063433,1,1,2) [2024-12-20 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063433', 'tblTempUsageDetail_20' ) start [2024-12-20 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063433', 'tblTempUsageDetail_20' ) end [2024-12-20 14:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:28:25] Production.INFO: ==16245== Releasing lock... [2024-12-20 14:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:28:25] Production.INFO: 66 MB #Memory Used# [2024-12-20 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:29:05 [end_date_ymd] => 2024-12-20 14:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:29:18] Production.INFO: count ==5053 [2024-12-20 14:29:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:29:05 - End Time 2024-12-20 14:29:05 [2024-12-20 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063438', 'tblTempUsageDetail_20' ) start [2024-12-20 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063438', 'tblTempUsageDetail_20' ) end [2024-12-20 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063438', 'tblTempVendorCDR_20' ) start [2024-12-20 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063438', 'tblTempVendorCDR_20' ) end [2024-12-20 14:29:20] Production.INFO: ProcessCDR(1,14063438,1,1,2) [2024-12-20 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063438', 'tblTempUsageDetail_20' ) start [2024-12-20 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063438', 'tblTempUsageDetail_20' ) end [2024-12-20 14:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:29:24] Production.INFO: ==16321== Releasing lock... [2024-12-20 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:29:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:30:06 [end_date_ymd] => 2024-12-20 14:30:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:30:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:30:27] Production.INFO: count ==5051 [2024-12-20 14:30:29] Production.ERROR: pbx CDR StartTime 2024-12-20 11:30:06 - End Time 2024-12-20 14:30:06 [2024-12-20 14:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063444', 'tblTempUsageDetail_20' ) start [2024-12-20 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063444', 'tblTempUsageDetail_20' ) end [2024-12-20 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063444', 'tblTempVendorCDR_20' ) start [2024-12-20 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063444', 'tblTempVendorCDR_20' ) end [2024-12-20 14:30:29] Production.INFO: ProcessCDR(1,14063444,1,1,2) [2024-12-20 14:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063444', 'tblTempUsageDetail_20' ) start [2024-12-20 14:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063444', 'tblTempUsageDetail_20' ) end [2024-12-20 14:30:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:30:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:30:33] Production.INFO: ==16393== Releasing lock... [2024-12-20 14:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:30:33] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:31:04 [end_date_ymd] => 2024-12-20 14:31:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:31:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:31:21] Production.INFO: count ==5030 [2024-12-20 14:31:23] Production.ERROR: pbx CDR StartTime 2024-12-20 11:31:04 - End Time 2024-12-20 14:31:04 [2024-12-20 14:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063449', 'tblTempUsageDetail_20' ) start [2024-12-20 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063449', 'tblTempUsageDetail_20' ) end [2024-12-20 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063449', 'tblTempVendorCDR_20' ) start [2024-12-20 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063449', 'tblTempVendorCDR_20' ) end [2024-12-20 14:31:23] Production.INFO: ProcessCDR(1,14063449,1,1,2) [2024-12-20 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063449', 'tblTempUsageDetail_20' ) start [2024-12-20 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063449', 'tblTempUsageDetail_20' ) end [2024-12-20 14:31:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:31:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:31:27] Production.INFO: ==16469== Releasing lock... [2024-12-20 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:31:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:32:05 [end_date_ymd] => 2024-12-20 14:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:32:18] Production.INFO: count ==5052 [2024-12-20 14:32:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:32:05 - End Time 2024-12-20 14:32:05 [2024-12-20 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063454', 'tblTempUsageDetail_20' ) start [2024-12-20 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063454', 'tblTempUsageDetail_20' ) end [2024-12-20 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063454', 'tblTempVendorCDR_20' ) start [2024-12-20 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063454', 'tblTempVendorCDR_20' ) end [2024-12-20 14:32:20] Production.INFO: ProcessCDR(1,14063454,1,1,2) [2024-12-20 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063454', 'tblTempUsageDetail_20' ) start [2024-12-20 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063454', 'tblTempUsageDetail_20' ) end [2024-12-20 14:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:32:25] Production.INFO: ==16580== Releasing lock... [2024-12-20 14:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:32:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:33:04 [end_date_ymd] => 2024-12-20 14:33:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:33:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:33:21] Production.INFO: count ==5037 [2024-12-20 14:33:23] Production.ERROR: pbx CDR StartTime 2024-12-20 11:33:04 - End Time 2024-12-20 14:33:04 [2024-12-20 14:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063459', 'tblTempUsageDetail_20' ) start [2024-12-20 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063459', 'tblTempUsageDetail_20' ) end [2024-12-20 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063459', 'tblTempVendorCDR_20' ) start [2024-12-20 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063459', 'tblTempVendorCDR_20' ) end [2024-12-20 14:33:23] Production.INFO: ProcessCDR(1,14063459,1,1,2) [2024-12-20 14:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063459', 'tblTempUsageDetail_20' ) start [2024-12-20 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063459', 'tblTempUsageDetail_20' ) end [2024-12-20 14:33:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:33:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:33:27] Production.INFO: ==16651== Releasing lock... [2024-12-20 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:33:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:34:05 [end_date_ymd] => 2024-12-20 14:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:34:24] Production.INFO: count ==4999 [2024-12-20 14:34:26] Production.ERROR: pbx CDR StartTime 2024-12-20 11:34:05 - End Time 2024-12-20 14:34:05 [2024-12-20 14:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063464', 'tblTempUsageDetail_20' ) start [2024-12-20 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063464', 'tblTempUsageDetail_20' ) end [2024-12-20 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063464', 'tblTempVendorCDR_20' ) start [2024-12-20 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063464', 'tblTempVendorCDR_20' ) end [2024-12-20 14:34:26] Production.INFO: ProcessCDR(1,14063464,1,1,2) [2024-12-20 14:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063464', 'tblTempUsageDetail_20' ) start [2024-12-20 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063464', 'tblTempUsageDetail_20' ) end [2024-12-20 14:34:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:34:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:34:31] Production.INFO: ==16722== Releasing lock... [2024-12-20 14:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:34:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:35:04 [end_date_ymd] => 2024-12-20 14:35:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:35:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:35:20] Production.INFO: count ==5016 [2024-12-20 14:35:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:35:04 - End Time 2024-12-20 14:35:04 [2024-12-20 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063469', 'tblTempUsageDetail_20' ) start [2024-12-20 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063469', 'tblTempUsageDetail_20' ) end [2024-12-20 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063469', 'tblTempVendorCDR_20' ) start [2024-12-20 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063469', 'tblTempVendorCDR_20' ) end [2024-12-20 14:35:22] Production.INFO: ProcessCDR(1,14063469,1,1,2) [2024-12-20 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063469', 'tblTempUsageDetail_20' ) start [2024-12-20 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063469', 'tblTempUsageDetail_20' ) end [2024-12-20 14:35:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:35:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:35:26] Production.INFO: ==16803== Releasing lock... [2024-12-20 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:35:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:36:05 [end_date_ymd] => 2024-12-20 14:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:36:20] Production.INFO: count ==5020 [2024-12-20 14:36:22] Production.ERROR: pbx CDR StartTime 2024-12-20 11:36:05 - End Time 2024-12-20 14:36:05 [2024-12-20 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063474', 'tblTempUsageDetail_20' ) start [2024-12-20 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063474', 'tblTempUsageDetail_20' ) end [2024-12-20 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063474', 'tblTempVendorCDR_20' ) start [2024-12-20 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063474', 'tblTempVendorCDR_20' ) end [2024-12-20 14:36:22] Production.INFO: ProcessCDR(1,14063474,1,1,2) [2024-12-20 14:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063474', 'tblTempUsageDetail_20' ) start [2024-12-20 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063474', 'tblTempUsageDetail_20' ) end [2024-12-20 14:36:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:36:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:36:27] Production.INFO: ==16874== Releasing lock... [2024-12-20 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:36:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:37:05 [end_date_ymd] => 2024-12-20 14:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:37:23] Production.INFO: count ==5017 [2024-12-20 14:37:24] Production.ERROR: pbx CDR StartTime 2024-12-20 11:37:05 - End Time 2024-12-20 14:37:05 [2024-12-20 14:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063479', 'tblTempUsageDetail_20' ) start [2024-12-20 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063479', 'tblTempUsageDetail_20' ) end [2024-12-20 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063479', 'tblTempVendorCDR_20' ) start [2024-12-20 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063479', 'tblTempVendorCDR_20' ) end [2024-12-20 14:37:25] Production.INFO: ProcessCDR(1,14063479,1,1,2) [2024-12-20 14:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063479', 'tblTempUsageDetail_20' ) start [2024-12-20 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063479', 'tblTempUsageDetail_20' ) end [2024-12-20 14:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:37:29] Production.INFO: ==16945== Releasing lock... [2024-12-20 14:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:37:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:38:05 [end_date_ymd] => 2024-12-20 14:38:05 [RateCDR] => 1 ) [2024-12-20 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:38:05' and `end` < '2024-12-20 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:38:18] Production.INFO: count ==5010 [2024-12-20 14:38:20] Production.ERROR: pbx CDR StartTime 2024-12-20 11:38:05 - End Time 2024-12-20 14:38:05 [2024-12-20 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063484', 'tblTempUsageDetail_20' ) start [2024-12-20 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063484', 'tblTempUsageDetail_20' ) end [2024-12-20 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063484', 'tblTempVendorCDR_20' ) start [2024-12-20 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063484', 'tblTempVendorCDR_20' ) end [2024-12-20 14:38:20] Production.INFO: ProcessCDR(1,14063484,1,1,2) [2024-12-20 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063484', 'tblTempUsageDetail_20' ) start [2024-12-20 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063484', 'tblTempUsageDetail_20' ) end [2024-12-20 14:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:38:24] Production.INFO: ==17017== Releasing lock... [2024-12-20 14:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:38:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:39:05 [end_date_ymd] => 2024-12-20 14:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:39:21] Production.INFO: count ==5011 [2024-12-20 14:39:23] Production.ERROR: pbx CDR StartTime 2024-12-20 11:39:05 - End Time 2024-12-20 14:39:05 [2024-12-20 14:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063489', 'tblTempUsageDetail_20' ) start [2024-12-20 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063489', 'tblTempUsageDetail_20' ) end [2024-12-20 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063489', 'tblTempVendorCDR_20' ) start [2024-12-20 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063489', 'tblTempVendorCDR_20' ) end [2024-12-20 14:39:23] Production.INFO: ProcessCDR(1,14063489,1,1,2) [2024-12-20 14:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063489', 'tblTempUsageDetail_20' ) start [2024-12-20 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063489', 'tblTempUsageDetail_20' ) end [2024-12-20 14:39:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:39:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:39:28] Production.INFO: ==17088== Releasing lock... [2024-12-20 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:39:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:40:05 [end_date_ymd] => 2024-12-20 14:40:05 [RateCDR] => 1 ) [2024-12-20 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:40:05' and `end` < '2024-12-20 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:40:26] Production.INFO: count ==5021 [2024-12-20 14:40:28] Production.ERROR: pbx CDR StartTime 2024-12-20 11:40:05 - End Time 2024-12-20 14:40:05 [2024-12-20 14:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063494', 'tblTempUsageDetail_20' ) start [2024-12-20 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063494', 'tblTempUsageDetail_20' ) end [2024-12-20 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063494', 'tblTempVendorCDR_20' ) start [2024-12-20 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063494', 'tblTempVendorCDR_20' ) end [2024-12-20 14:40:28] Production.INFO: ProcessCDR(1,14063494,1,1,2) [2024-12-20 14:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063494', 'tblTempUsageDetail_20' ) start [2024-12-20 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063494', 'tblTempUsageDetail_20' ) end [2024-12-20 14:40:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:40:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:40:32] Production.INFO: ==17159== Releasing lock... [2024-12-20 14:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:40:32] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:41:05 [end_date_ymd] => 2024-12-20 14:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:41:20] Production.INFO: count ==5009 [2024-12-20 14:41:22] Production.ERROR: pbx CDR StartTime 2024-12-20 11:41:05 - End Time 2024-12-20 14:41:05 [2024-12-20 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063500', 'tblTempUsageDetail_20' ) start [2024-12-20 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063500', 'tblTempUsageDetail_20' ) end [2024-12-20 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063500', 'tblTempVendorCDR_20' ) start [2024-12-20 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063500', 'tblTempVendorCDR_20' ) end [2024-12-20 14:41:22] Production.INFO: ProcessCDR(1,14063500,1,1,2) [2024-12-20 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063500', 'tblTempUsageDetail_20' ) start [2024-12-20 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063500', 'tblTempUsageDetail_20' ) end [2024-12-20 14:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:41:27] Production.INFO: ==17234== Releasing lock... [2024-12-20 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:41:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:42:04 [end_date_ymd] => 2024-12-20 14:42:04 [RateCDR] => 1 ) [2024-12-20 14:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:42:04' and `end` < '2024-12-20 14:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:42:26] Production.INFO: count ==5018 [2024-12-20 14:42:28] Production.ERROR: pbx CDR StartTime 2024-12-20 11:42:04 - End Time 2024-12-20 14:42:04 [2024-12-20 14:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063505', 'tblTempUsageDetail_20' ) start [2024-12-20 14:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063505', 'tblTempUsageDetail_20' ) end [2024-12-20 14:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063505', 'tblTempVendorCDR_20' ) start [2024-12-20 14:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063505', 'tblTempVendorCDR_20' ) end [2024-12-20 14:42:28] Production.INFO: ProcessCDR(1,14063505,1,1,2) [2024-12-20 14:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063505', 'tblTempUsageDetail_20' ) start [2024-12-20 14:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063505', 'tblTempUsageDetail_20' ) end [2024-12-20 14:42:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:42:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:42:33] Production.INFO: ==17304== Releasing lock... [2024-12-20 14:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:42:33] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:43:04 [end_date_ymd] => 2024-12-20 14:43:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:43:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:43:22] Production.INFO: count ==4997 [2024-12-20 14:43:24] Production.ERROR: pbx CDR StartTime 2024-12-20 11:43:04 - End Time 2024-12-20 14:43:04 [2024-12-20 14:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063510', 'tblTempUsageDetail_20' ) start [2024-12-20 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063510', 'tblTempUsageDetail_20' ) end [2024-12-20 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063510', 'tblTempVendorCDR_20' ) start [2024-12-20 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063510', 'tblTempVendorCDR_20' ) end [2024-12-20 14:43:24] Production.INFO: ProcessCDR(1,14063510,1,1,2) [2024-12-20 14:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063510', 'tblTempUsageDetail_20' ) start [2024-12-20 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063510', 'tblTempUsageDetail_20' ) end [2024-12-20 14:43:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:43:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:43:29] Production.INFO: ==17380== Releasing lock... [2024-12-20 14:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:43:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:44:04 [end_date_ymd] => 2024-12-20 14:44:04 [RateCDR] => 1 ) [2024-12-20 14:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:44:04' and `end` < '2024-12-20 14:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:44:17] Production.INFO: count ==5000 [2024-12-20 14:44:19] Production.ERROR: pbx CDR StartTime 2024-12-20 11:44:04 - End Time 2024-12-20 14:44:04 [2024-12-20 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063515', 'tblTempUsageDetail_20' ) start [2024-12-20 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063515', 'tblTempUsageDetail_20' ) end [2024-12-20 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063515', 'tblTempVendorCDR_20' ) start [2024-12-20 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063515', 'tblTempVendorCDR_20' ) end [2024-12-20 14:44:19] Production.INFO: ProcessCDR(1,14063515,1,1,2) [2024-12-20 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063515', 'tblTempUsageDetail_20' ) start [2024-12-20 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063515', 'tblTempUsageDetail_20' ) end [2024-12-20 14:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:44:24] Production.INFO: ==17453== Releasing lock... [2024-12-20 14:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:44:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:45:04 [end_date_ymd] => 2024-12-20 14:45:04 [RateCDR] => 1 ) [2024-12-20 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:45:04' and `end` < '2024-12-20 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:45:27] Production.INFO: count ==4996 [2024-12-20 14:45:29] Production.ERROR: pbx CDR StartTime 2024-12-20 11:45:04 - End Time 2024-12-20 14:45:04 [2024-12-20 14:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063520', 'tblTempUsageDetail_20' ) start [2024-12-20 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063520', 'tblTempUsageDetail_20' ) end [2024-12-20 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063520', 'tblTempVendorCDR_20' ) start [2024-12-20 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063520', 'tblTempVendorCDR_20' ) end [2024-12-20 14:45:29] Production.INFO: ProcessCDR(1,14063520,1,1,2) [2024-12-20 14:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063520', 'tblTempUsageDetail_20' ) start [2024-12-20 14:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063520', 'tblTempUsageDetail_20' ) end [2024-12-20 14:45:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:45:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:45:34] Production.INFO: ==17523== Releasing lock... [2024-12-20 14:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:45:34] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:46:05 [end_date_ymd] => 2024-12-20 14:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:46:19] Production.INFO: count ==4982 [2024-12-20 14:46:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:46:05 - End Time 2024-12-20 14:46:05 [2024-12-20 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063525', 'tblTempUsageDetail_20' ) start [2024-12-20 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063525', 'tblTempUsageDetail_20' ) end [2024-12-20 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063525', 'tblTempVendorCDR_20' ) start [2024-12-20 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063525', 'tblTempVendorCDR_20' ) end [2024-12-20 14:46:21] Production.INFO: ProcessCDR(1,14063525,1,1,2) [2024-12-20 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063525', 'tblTempUsageDetail_20' ) start [2024-12-20 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063525', 'tblTempUsageDetail_20' ) end [2024-12-20 14:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:46:26] Production.INFO: ==17595== Releasing lock... [2024-12-20 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:46:26] Production.INFO: 65.25 MB #Memory Used# [2024-12-20 14:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:47:04 [end_date_ymd] => 2024-12-20 14:47:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:47:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:47:23] Production.INFO: count ==4980 [2024-12-20 14:47:25] Production.ERROR: pbx CDR StartTime 2024-12-20 11:47:04 - End Time 2024-12-20 14:47:04 [2024-12-20 14:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063530', 'tblTempUsageDetail_20' ) start [2024-12-20 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063530', 'tblTempUsageDetail_20' ) end [2024-12-20 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063530', 'tblTempVendorCDR_20' ) start [2024-12-20 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063530', 'tblTempVendorCDR_20' ) end [2024-12-20 14:47:25] Production.INFO: ProcessCDR(1,14063530,1,1,2) [2024-12-20 14:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063530', 'tblTempUsageDetail_20' ) start [2024-12-20 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063530', 'tblTempUsageDetail_20' ) end [2024-12-20 14:47:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:47:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:47:30] Production.INFO: ==17665== Releasing lock... [2024-12-20 14:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:47:30] Production.INFO: 65.25 MB #Memory Used# [2024-12-20 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:48:05 [end_date_ymd] => 2024-12-20 14:48:05 [RateCDR] => 1 ) [2024-12-20 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:48:19] Production.INFO: count ==4954 [2024-12-20 14:48:21] Production.ERROR: pbx CDR StartTime 2024-12-20 11:48:05 - End Time 2024-12-20 14:48:05 [2024-12-20 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063535', 'tblTempUsageDetail_20' ) start [2024-12-20 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063535', 'tblTempUsageDetail_20' ) end [2024-12-20 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063535', 'tblTempVendorCDR_20' ) start [2024-12-20 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063535', 'tblTempVendorCDR_20' ) end [2024-12-20 14:48:21] Production.INFO: ProcessCDR(1,14063535,1,1,2) [2024-12-20 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063535', 'tblTempUsageDetail_20' ) start [2024-12-20 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063535', 'tblTempUsageDetail_20' ) end [2024-12-20 14:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:48:26] Production.INFO: ==17777== Releasing lock... [2024-12-20 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:48:26] Production.INFO: 65 MB #Memory Used# [2024-12-20 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:49:04 [end_date_ymd] => 2024-12-20 14:49:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:49:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:49:27] Production.INFO: count ==5002 [2024-12-20 14:49:29] Production.ERROR: pbx CDR StartTime 2024-12-20 11:49:04 - End Time 2024-12-20 14:49:04 [2024-12-20 14:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063540', 'tblTempUsageDetail_20' ) start [2024-12-20 14:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063540', 'tblTempUsageDetail_20' ) end [2024-12-20 14:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063540', 'tblTempVendorCDR_20' ) start [2024-12-20 14:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063540', 'tblTempVendorCDR_20' ) end [2024-12-20 14:49:29] Production.INFO: ProcessCDR(1,14063540,1,1,2) [2024-12-20 14:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063540', 'tblTempUsageDetail_20' ) start [2024-12-20 14:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063540', 'tblTempUsageDetail_20' ) end [2024-12-20 14:49:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:49:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:49:33] Production.INFO: ==17848== Releasing lock... [2024-12-20 14:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:49:33] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:50:05 [end_date_ymd] => 2024-12-20 14:50:05 [RateCDR] => 1 ) [2024-12-20 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:50:05' and `end` < '2024-12-20 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:50:25] Production.INFO: count ==5030 [2024-12-20 14:50:27] Production.ERROR: pbx CDR StartTime 2024-12-20 11:50:05 - End Time 2024-12-20 14:50:05 [2024-12-20 14:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063546', 'tblTempUsageDetail_20' ) start [2024-12-20 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063546', 'tblTempUsageDetail_20' ) end [2024-12-20 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063546', 'tblTempVendorCDR_20' ) start [2024-12-20 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063546', 'tblTempVendorCDR_20' ) end [2024-12-20 14:50:27] Production.INFO: ProcessCDR(1,14063546,1,1,2) [2024-12-20 14:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063546', 'tblTempUsageDetail_20' ) start [2024-12-20 14:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063546', 'tblTempUsageDetail_20' ) end [2024-12-20 14:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:50:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:50:32] Production.INFO: ==17922== Releasing lock... [2024-12-20 14:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:50:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:51:04 [end_date_ymd] => 2024-12-20 14:51:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:51:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:51:23] Production.INFO: count ==5066 [2024-12-20 14:51:25] Production.ERROR: pbx CDR StartTime 2024-12-20 11:51:04 - End Time 2024-12-20 14:51:04 [2024-12-20 14:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063551', 'tblTempUsageDetail_20' ) start [2024-12-20 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063551', 'tblTempUsageDetail_20' ) end [2024-12-20 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063551', 'tblTempVendorCDR_20' ) start [2024-12-20 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063551', 'tblTempVendorCDR_20' ) end [2024-12-20 14:51:25] Production.INFO: ProcessCDR(1,14063551,1,1,2) [2024-12-20 14:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063551', 'tblTempUsageDetail_20' ) start [2024-12-20 14:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063551', 'tblTempUsageDetail_20' ) end [2024-12-20 14:51:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:51:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:51:30] Production.INFO: ==17997== Releasing lock... [2024-12-20 14:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:51:30] Production.INFO: 66 MB #Memory Used# [2024-12-20 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:52:05 [end_date_ymd] => 2024-12-20 14:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:52:23] Production.INFO: count ==5095 [2024-12-20 14:52:24] Production.ERROR: pbx CDR StartTime 2024-12-20 11:52:05 - End Time 2024-12-20 14:52:05 [2024-12-20 14:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063556', 'tblTempUsageDetail_20' ) start [2024-12-20 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063556', 'tblTempUsageDetail_20' ) end [2024-12-20 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063556', 'tblTempVendorCDR_20' ) start [2024-12-20 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063556', 'tblTempVendorCDR_20' ) end [2024-12-20 14:52:25] Production.INFO: ProcessCDR(1,14063556,1,1,2) [2024-12-20 14:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063556', 'tblTempUsageDetail_20' ) start [2024-12-20 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063556', 'tblTempUsageDetail_20' ) end [2024-12-20 14:52:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:52:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:52:29] Production.INFO: ==18069== Releasing lock... [2024-12-20 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:52:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:53:05 [end_date_ymd] => 2024-12-20 14:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:53:28] Production.INFO: count ==5098 [2024-12-20 14:53:30] Production.ERROR: pbx CDR StartTime 2024-12-20 11:53:05 - End Time 2024-12-20 14:53:05 [2024-12-20 14:53:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063561', 'tblTempUsageDetail_20' ) start [2024-12-20 14:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063561', 'tblTempUsageDetail_20' ) end [2024-12-20 14:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063561', 'tblTempVendorCDR_20' ) start [2024-12-20 14:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063561', 'tblTempVendorCDR_20' ) end [2024-12-20 14:53:30] Production.INFO: ProcessCDR(1,14063561,1,1,2) [2024-12-20 14:53:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:53:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:53:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:53:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:53:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063561', 'tblTempUsageDetail_20' ) start [2024-12-20 14:53:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063561', 'tblTempUsageDetail_20' ) end [2024-12-20 14:53:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:53:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:53:35] Production.INFO: ==18140== Releasing lock... [2024-12-20 14:53:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:53:35] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 14:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:54:04 [end_date_ymd] => 2024-12-20 14:54:04 [RateCDR] => 1 ) [2024-12-20 14:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:54:04' and `end` < '2024-12-20 14:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:54:25] Production.INFO: count ==5088 [2024-12-20 14:54:27] Production.ERROR: pbx CDR StartTime 2024-12-20 11:54:04 - End Time 2024-12-20 14:54:04 [2024-12-20 14:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063566', 'tblTempUsageDetail_20' ) start [2024-12-20 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063566', 'tblTempUsageDetail_20' ) end [2024-12-20 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063566', 'tblTempVendorCDR_20' ) start [2024-12-20 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063566', 'tblTempVendorCDR_20' ) end [2024-12-20 14:54:27] Production.INFO: ProcessCDR(1,14063566,1,1,2) [2024-12-20 14:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063566', 'tblTempUsageDetail_20' ) start [2024-12-20 14:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063566', 'tblTempUsageDetail_20' ) end [2024-12-20 14:54:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:54:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:54:31] Production.INFO: ==18210== Releasing lock... [2024-12-20 14:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:54:31] Production.INFO: 66 MB #Memory Used# [2024-12-20 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:55:05 [end_date_ymd] => 2024-12-20 14:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:55:28] Production.INFO: count ==5136 [2024-12-20 14:55:30] Production.ERROR: pbx CDR StartTime 2024-12-20 11:55:05 - End Time 2024-12-20 14:55:05 [2024-12-20 14:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063571', 'tblTempUsageDetail_20' ) start [2024-12-20 14:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063571', 'tblTempUsageDetail_20' ) end [2024-12-20 14:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063571', 'tblTempVendorCDR_20' ) start [2024-12-20 14:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063571', 'tblTempVendorCDR_20' ) end [2024-12-20 14:55:30] Production.INFO: ProcessCDR(1,14063571,1,1,2) [2024-12-20 14:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063571', 'tblTempUsageDetail_20' ) start [2024-12-20 14:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063571', 'tblTempUsageDetail_20' ) end [2024-12-20 14:55:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:55:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:55:35] Production.INFO: ==18282== Releasing lock... [2024-12-20 14:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:55:35] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:56:04 [end_date_ymd] => 2024-12-20 14:56:04 [RateCDR] => 1 ) [2024-12-20 14:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 11:56:04' and `end` < '2024-12-20 14:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 14:56:29] Production.INFO: count ==5183 [2024-12-20 14:56:31] Production.ERROR: pbx CDR StartTime 2024-12-20 11:56:04 - End Time 2024-12-20 14:56:04 [2024-12-20 14:56:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063576', 'tblTempUsageDetail_20' ) start [2024-12-20 14:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063576', 'tblTempUsageDetail_20' ) end [2024-12-20 14:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063576', 'tblTempVendorCDR_20' ) start [2024-12-20 14:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063576', 'tblTempVendorCDR_20' ) end [2024-12-20 14:56:31] Production.INFO: ProcessCDR(1,14063576,1,1,2) [2024-12-20 14:56:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:56:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063576', 'tblTempUsageDetail_20' ) start [2024-12-20 14:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063576', 'tblTempUsageDetail_20' ) end [2024-12-20 14:56:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:56:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:56:36] Production.INFO: ==18354== Releasing lock... [2024-12-20 14:56:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:56:36] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:57:05 [end_date_ymd] => 2024-12-20 14:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:57:25] Production.INFO: count ==5196 [2024-12-20 14:57:27] Production.ERROR: pbx CDR StartTime 2024-12-20 11:57:05 - End Time 2024-12-20 14:57:05 [2024-12-20 14:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063581', 'tblTempUsageDetail_20' ) start [2024-12-20 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063581', 'tblTempUsageDetail_20' ) end [2024-12-20 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063581', 'tblTempVendorCDR_20' ) start [2024-12-20 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063581', 'tblTempVendorCDR_20' ) end [2024-12-20 14:57:28] Production.INFO: ProcessCDR(1,14063581,1,1,2) [2024-12-20 14:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063581', 'tblTempUsageDetail_20' ) start [2024-12-20 14:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063581', 'tblTempUsageDetail_20' ) end [2024-12-20 14:57:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:57:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:57:32] Production.INFO: ==18425== Releasing lock... [2024-12-20 14:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:57:32] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:58:04 [end_date_ymd] => 2024-12-20 14:58:04 [RateCDR] => 1 ) [2024-12-20 14: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` >= '2024-12-20 11:58:04' and `end` < '2024-12-20 14: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 ,'') [2024-12-20 14:58:34] Production.INFO: count ==5216 [2024-12-20 14:58:36] Production.ERROR: pbx CDR StartTime 2024-12-20 11:58:04 - End Time 2024-12-20 14:58:04 [2024-12-20 14:58:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063586', 'tblTempUsageDetail_20' ) start [2024-12-20 14:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063586', 'tblTempUsageDetail_20' ) end [2024-12-20 14:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063586', 'tblTempVendorCDR_20' ) start [2024-12-20 14:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063586', 'tblTempVendorCDR_20' ) end [2024-12-20 14:58:36] Production.INFO: ProcessCDR(1,14063586,1,1,2) [2024-12-20 14:58:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:58:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:58:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:58:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063586', 'tblTempUsageDetail_20' ) start [2024-12-20 14:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063586', 'tblTempUsageDetail_20' ) end [2024-12-20 14:58:41] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:58:41] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:58:41] Production.INFO: ==18496== Releasing lock... [2024-12-20 14:58:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:58:41] Production.INFO: 67 MB #Memory Used# [2024-12-20 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 11:59:05 [end_date_ymd] => 2024-12-20 14:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 11:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 14:59:33] Production.INFO: count ==5209 [2024-12-20 14:59:35] Production.ERROR: pbx CDR StartTime 2024-12-20 11:59:05 - End Time 2024-12-20 14:59:05 [2024-12-20 14:59:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 14:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063591', 'tblTempUsageDetail_20' ) start [2024-12-20 14:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063591', 'tblTempUsageDetail_20' ) end [2024-12-20 14:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063591', 'tblTempVendorCDR_20' ) start [2024-12-20 14:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063591', 'tblTempVendorCDR_20' ) end [2024-12-20 14:59:36] Production.INFO: ProcessCDR(1,14063591,1,1,2) [2024-12-20 14:59:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:59:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 14:59:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:59:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 14:59:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063591', 'tblTempUsageDetail_20' ) start [2024-12-20 14:59:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063591', 'tblTempUsageDetail_20' ) end [2024-12-20 14:59:40] Production.ERROR: pbx prc_insertCDR start [2024-12-20 14:59:40] Production.ERROR: pbx prc_insertCDR end [2024-12-20 14:59:40] Production.INFO: ==18571== Releasing lock... [2024-12-20 14:59:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 14:59:40] Production.INFO: 67 MB #Memory Used# [2024-12-20 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:00:05 [end_date_ymd] => 2024-12-20 15:00:05 [RateCDR] => 1 ) [2024-12-20 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:00:05' and `end` < '2024-12-20 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:00:29] Production.INFO: count ==5202 [2024-12-20 15:00:31] Production.ERROR: pbx CDR StartTime 2024-12-20 12:00:05 - End Time 2024-12-20 15:00:05 [2024-12-20 15:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063597', 'tblTempUsageDetail_20' ) start [2024-12-20 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063597', 'tblTempUsageDetail_20' ) end [2024-12-20 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063597', 'tblTempVendorCDR_20' ) start [2024-12-20 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063597', 'tblTempVendorCDR_20' ) end [2024-12-20 15:00:31] Production.INFO: ProcessCDR(1,14063597,1,1,2) [2024-12-20 15:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063597', 'tblTempUsageDetail_20' ) start [2024-12-20 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063597', 'tblTempUsageDetail_20' ) end [2024-12-20 15:00:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:00:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:00:36] Production.INFO: ==18643== Releasing lock... [2024-12-20 15:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:00:36] Production.INFO: 67 MB #Memory Used# [2024-12-20 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:01:05 [end_date_ymd] => 2024-12-20 15:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:01:23] Production.INFO: count ==5229 [2024-12-20 15:01:25] Production.ERROR: pbx CDR StartTime 2024-12-20 12:01:05 - End Time 2024-12-20 15:01:05 [2024-12-20 15:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063602', 'tblTempUsageDetail_20' ) start [2024-12-20 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063602', 'tblTempUsageDetail_20' ) end [2024-12-20 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063602', 'tblTempVendorCDR_20' ) start [2024-12-20 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063602', 'tblTempVendorCDR_20' ) end [2024-12-20 15:01:25] Production.INFO: ProcessCDR(1,14063602,1,1,2) [2024-12-20 15:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063602', 'tblTempUsageDetail_20' ) start [2024-12-20 15:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063602', 'tblTempUsageDetail_20' ) end [2024-12-20 15:01:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:01:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:01:30] Production.INFO: ==18727== Releasing lock... [2024-12-20 15:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:01:30] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:02:04 [end_date_ymd] => 2024-12-20 15:02:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:02:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:02:24] Production.INFO: count ==5259 [2024-12-20 15:02:26] Production.ERROR: pbx CDR StartTime 2024-12-20 12:02:04 - End Time 2024-12-20 15:02:04 [2024-12-20 15:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063607', 'tblTempUsageDetail_20' ) start [2024-12-20 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063607', 'tblTempUsageDetail_20' ) end [2024-12-20 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063607', 'tblTempVendorCDR_20' ) start [2024-12-20 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063607', 'tblTempVendorCDR_20' ) end [2024-12-20 15:02:26] Production.INFO: ProcessCDR(1,14063607,1,1,2) [2024-12-20 15:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063607', 'tblTempUsageDetail_20' ) start [2024-12-20 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063607', 'tblTempUsageDetail_20' ) end [2024-12-20 15:02:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:02:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:02:31] Production.INFO: ==18874== Releasing lock... [2024-12-20 15:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:02:31] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:03:05 [end_date_ymd] => 2024-12-20 15:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:03:24] Production.INFO: count ==5251 [2024-12-20 15:03:27] Production.ERROR: pbx CDR StartTime 2024-12-20 12:03:05 - End Time 2024-12-20 15:03:05 [2024-12-20 15:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063612', 'tblTempUsageDetail_20' ) start [2024-12-20 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063612', 'tblTempUsageDetail_20' ) end [2024-12-20 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063612', 'tblTempVendorCDR_20' ) start [2024-12-20 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063612', 'tblTempVendorCDR_20' ) end [2024-12-20 15:03:27] Production.INFO: ProcessCDR(1,14063612,1,1,2) [2024-12-20 15:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063612', 'tblTempUsageDetail_20' ) start [2024-12-20 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063612', 'tblTempUsageDetail_20' ) end [2024-12-20 15:03:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:03:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:03:32] Production.INFO: ==18945== Releasing lock... [2024-12-20 15:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:03:32] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:04:05 [end_date_ymd] => 2024-12-20 15:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:04:27] Production.INFO: count ==5245 [2024-12-20 15:04:29] Production.ERROR: pbx CDR StartTime 2024-12-20 12:04:05 - End Time 2024-12-20 15:04:05 [2024-12-20 15:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063617', 'tblTempUsageDetail_20' ) start [2024-12-20 15:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063617', 'tblTempUsageDetail_20' ) end [2024-12-20 15:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063617', 'tblTempVendorCDR_20' ) start [2024-12-20 15:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063617', 'tblTempVendorCDR_20' ) end [2024-12-20 15:04:30] Production.INFO: ProcessCDR(1,14063617,1,1,2) [2024-12-20 15:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063617', 'tblTempUsageDetail_20' ) start [2024-12-20 15:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063617', 'tblTempUsageDetail_20' ) end [2024-12-20 15:04:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:04:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:04:35] Production.INFO: ==19056== Releasing lock... [2024-12-20 15:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:04:35] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:05:04 [end_date_ymd] => 2024-12-20 15:05:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:05:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:05:24] Production.INFO: count ==5240 [2024-12-20 15:05:26] Production.ERROR: pbx CDR StartTime 2024-12-20 12:05:04 - End Time 2024-12-20 15:05:04 [2024-12-20 15:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063622', 'tblTempUsageDetail_20' ) start [2024-12-20 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063622', 'tblTempUsageDetail_20' ) end [2024-12-20 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063622', 'tblTempVendorCDR_20' ) start [2024-12-20 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063622', 'tblTempVendorCDR_20' ) end [2024-12-20 15:05:26] Production.INFO: ProcessCDR(1,14063622,1,1,2) [2024-12-20 15:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063622', 'tblTempUsageDetail_20' ) start [2024-12-20 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063622', 'tblTempUsageDetail_20' ) end [2024-12-20 15:05:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:05:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:05:31] Production.INFO: ==19205== Releasing lock... [2024-12-20 15:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:05:31] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:06:05 [end_date_ymd] => 2024-12-20 15:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:06:19] Production.INFO: count ==5249 [2024-12-20 15:06:21] Production.ERROR: pbx CDR StartTime 2024-12-20 12:06:05 - End Time 2024-12-20 15:06:05 [2024-12-20 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063627', 'tblTempUsageDetail_20' ) start [2024-12-20 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063627', 'tblTempUsageDetail_20' ) end [2024-12-20 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063627', 'tblTempVendorCDR_20' ) start [2024-12-20 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063627', 'tblTempVendorCDR_20' ) end [2024-12-20 15:06:21] Production.INFO: ProcessCDR(1,14063627,1,1,2) [2024-12-20 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063627', 'tblTempUsageDetail_20' ) start [2024-12-20 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063627', 'tblTempUsageDetail_20' ) end [2024-12-20 15:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:06:25] Production.INFO: ==19277== Releasing lock... [2024-12-20 15:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:06:25] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:07:04 [end_date_ymd] => 2024-12-20 15:07:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:07:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:07:19] Production.INFO: count ==5251 [2024-12-20 15:07:21] Production.ERROR: pbx CDR StartTime 2024-12-20 12:07:04 - End Time 2024-12-20 15:07:04 [2024-12-20 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063632', 'tblTempUsageDetail_20' ) start [2024-12-20 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063632', 'tblTempUsageDetail_20' ) end [2024-12-20 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063632', 'tblTempVendorCDR_20' ) start [2024-12-20 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063632', 'tblTempVendorCDR_20' ) end [2024-12-20 15:07:22] Production.INFO: ProcessCDR(1,14063632,1,1,2) [2024-12-20 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063632', 'tblTempUsageDetail_20' ) start [2024-12-20 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063632', 'tblTempUsageDetail_20' ) end [2024-12-20 15:07:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:07:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:07:26] Production.INFO: ==19347== Releasing lock... [2024-12-20 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:07:26] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:08:05 [end_date_ymd] => 2024-12-20 15:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:08:25] Production.INFO: count ==5259 [2024-12-20 15:08:27] Production.ERROR: pbx CDR StartTime 2024-12-20 12:08:05 - End Time 2024-12-20 15:08:05 [2024-12-20 15:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063637', 'tblTempUsageDetail_20' ) start [2024-12-20 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063637', 'tblTempUsageDetail_20' ) end [2024-12-20 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063637', 'tblTempVendorCDR_20' ) start [2024-12-20 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063637', 'tblTempVendorCDR_20' ) end [2024-12-20 15:08:27] Production.INFO: ProcessCDR(1,14063637,1,1,2) [2024-12-20 15:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063637', 'tblTempUsageDetail_20' ) start [2024-12-20 15:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063637', 'tblTempUsageDetail_20' ) end [2024-12-20 15:08:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:08:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:08:32] Production.INFO: ==19461== Releasing lock... [2024-12-20 15:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:08:32] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:09:05 [end_date_ymd] => 2024-12-20 15:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:09:22] Production.INFO: count ==5261 [2024-12-20 15:09:24] Production.ERROR: pbx CDR StartTime 2024-12-20 12:09:05 - End Time 2024-12-20 15:09:05 [2024-12-20 15:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063642', 'tblTempUsageDetail_20' ) start [2024-12-20 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063642', 'tblTempUsageDetail_20' ) end [2024-12-20 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063642', 'tblTempVendorCDR_20' ) start [2024-12-20 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063642', 'tblTempVendorCDR_20' ) end [2024-12-20 15:09:24] Production.INFO: ProcessCDR(1,14063642,1,1,2) [2024-12-20 15:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063642', 'tblTempUsageDetail_20' ) start [2024-12-20 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063642', 'tblTempUsageDetail_20' ) end [2024-12-20 15:09:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:09:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:09:28] Production.INFO: ==19574== Releasing lock... [2024-12-20 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:09:28] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:10:05 [end_date_ymd] => 2024-12-20 15:10:05 [RateCDR] => 1 ) [2024-12-20 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:10:05' and `end` < '2024-12-20 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:10:22] Production.INFO: count ==5261 [2024-12-20 15:10:24] Production.ERROR: pbx CDR StartTime 2024-12-20 12:10:05 - End Time 2024-12-20 15:10:05 [2024-12-20 15:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063648', 'tblTempUsageDetail_20' ) start [2024-12-20 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063648', 'tblTempUsageDetail_20' ) end [2024-12-20 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063648', 'tblTempVendorCDR_20' ) start [2024-12-20 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063648', 'tblTempVendorCDR_20' ) end [2024-12-20 15:10:24] Production.INFO: ProcessCDR(1,14063648,1,1,2) [2024-12-20 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063648', 'tblTempUsageDetail_20' ) start [2024-12-20 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063648', 'tblTempUsageDetail_20' ) end [2024-12-20 15:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:10:27] Production.INFO: ==19646== Releasing lock... [2024-12-20 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:10:27] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:11:05 [end_date_ymd] => 2024-12-20 15:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:11:20] Production.INFO: count ==5250 [2024-12-20 15:11:22] Production.ERROR: pbx CDR StartTime 2024-12-20 12:11:05 - End Time 2024-12-20 15:11:05 [2024-12-20 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063653', 'tblTempUsageDetail_20' ) start [2024-12-20 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063653', 'tblTempUsageDetail_20' ) end [2024-12-20 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063653', 'tblTempVendorCDR_20' ) start [2024-12-20 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063653', 'tblTempVendorCDR_20' ) end [2024-12-20 15:11:22] Production.INFO: ProcessCDR(1,14063653,1,1,2) [2024-12-20 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063653', 'tblTempUsageDetail_20' ) start [2024-12-20 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063653', 'tblTempUsageDetail_20' ) end [2024-12-20 15:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:11:25] Production.INFO: ==19721== Releasing lock... [2024-12-20 15:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:11:25] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:12:05 [end_date_ymd] => 2024-12-20 15:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:12:19] Production.INFO: count ==5245 [2024-12-20 15:12:21] Production.ERROR: pbx CDR StartTime 2024-12-20 12:12:05 - End Time 2024-12-20 15:12:05 [2024-12-20 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063658', 'tblTempUsageDetail_20' ) start [2024-12-20 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063658', 'tblTempUsageDetail_20' ) end [2024-12-20 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063658', 'tblTempVendorCDR_20' ) start [2024-12-20 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063658', 'tblTempVendorCDR_20' ) end [2024-12-20 15:12:22] Production.INFO: ProcessCDR(1,14063658,1,1,2) [2024-12-20 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063658', 'tblTempUsageDetail_20' ) start [2024-12-20 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063658', 'tblTempUsageDetail_20' ) end [2024-12-20 15:12:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:12:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:12:26] Production.INFO: ==19869== Releasing lock... [2024-12-20 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:12:26] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:13:05 [end_date_ymd] => 2024-12-20 15:13:05 [RateCDR] => 1 ) [2024-12-20 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:13:05' and `end` < '2024-12-20 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:13:22] Production.INFO: count ==5244 [2024-12-20 15:13:24] Production.ERROR: pbx CDR StartTime 2024-12-20 12:13:05 - End Time 2024-12-20 15:13:05 [2024-12-20 15:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063663', 'tblTempUsageDetail_20' ) start [2024-12-20 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063663', 'tblTempUsageDetail_20' ) end [2024-12-20 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063663', 'tblTempVendorCDR_20' ) start [2024-12-20 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063663', 'tblTempVendorCDR_20' ) end [2024-12-20 15:13:24] Production.INFO: ProcessCDR(1,14063663,1,1,2) [2024-12-20 15:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063663', 'tblTempUsageDetail_20' ) start [2024-12-20 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063663', 'tblTempUsageDetail_20' ) end [2024-12-20 15:13:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:13:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:13:29] Production.INFO: ==19942== Releasing lock... [2024-12-20 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:13:29] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:14:05 [end_date_ymd] => 2024-12-20 15:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:14:23] Production.INFO: count ==5265 [2024-12-20 15:14:26] Production.ERROR: pbx CDR StartTime 2024-12-20 12:14:05 - End Time 2024-12-20 15:14:05 [2024-12-20 15:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063668', 'tblTempUsageDetail_20' ) start [2024-12-20 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063668', 'tblTempUsageDetail_20' ) end [2024-12-20 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063668', 'tblTempVendorCDR_20' ) start [2024-12-20 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063668', 'tblTempVendorCDR_20' ) end [2024-12-20 15:14:26] Production.INFO: ProcessCDR(1,14063668,1,1,2) [2024-12-20 15:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063668', 'tblTempUsageDetail_20' ) start [2024-12-20 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063668', 'tblTempUsageDetail_20' ) end [2024-12-20 15:14:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:14:30] Production.INFO: ==20015== Releasing lock... [2024-12-20 15:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:14:30] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:15:04 [end_date_ymd] => 2024-12-20 15:15:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:15:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:15:23] Production.INFO: count ==5278 [2024-12-20 15:15:25] Production.ERROR: pbx CDR StartTime 2024-12-20 12:15:04 - End Time 2024-12-20 15:15:04 [2024-12-20 15:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063673', 'tblTempUsageDetail_20' ) start [2024-12-20 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063673', 'tblTempUsageDetail_20' ) end [2024-12-20 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063673', 'tblTempVendorCDR_20' ) start [2024-12-20 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063673', 'tblTempVendorCDR_20' ) end [2024-12-20 15:15:25] Production.INFO: ProcessCDR(1,14063673,1,1,2) [2024-12-20 15:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063673', 'tblTempUsageDetail_20' ) start [2024-12-20 15:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063673', 'tblTempUsageDetail_20' ) end [2024-12-20 15:15:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:15:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:15:29] Production.INFO: ==20128== Releasing lock... [2024-12-20 15:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:15:29] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:16:04 [end_date_ymd] => 2024-12-20 15:16:04 [RateCDR] => 1 ) [2024-12-20 15:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:16:04' and `end` < '2024-12-20 15:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:16:20] Production.INFO: count ==5298 [2024-12-20 15:16:23] Production.ERROR: pbx CDR StartTime 2024-12-20 12:16:04 - End Time 2024-12-20 15:16:04 [2024-12-20 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063675', 'tblTempUsageDetail_20' ) start [2024-12-20 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063675', 'tblTempUsageDetail_20' ) end [2024-12-20 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063675', 'tblTempVendorCDR_20' ) start [2024-12-20 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063675', 'tblTempVendorCDR_20' ) end [2024-12-20 15:16:23] Production.INFO: ProcessCDR(1,14063675,1,1,2) [2024-12-20 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063675', 'tblTempUsageDetail_20' ) start [2024-12-20 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063675', 'tblTempUsageDetail_20' ) end [2024-12-20 15:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:16:27] Production.INFO: ==20240== Releasing lock... [2024-12-20 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:16:27] Production.INFO: 67.75 MB #Memory Used# [2024-12-20 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:17:05 [end_date_ymd] => 2024-12-20 15:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:17:22] Production.INFO: count ==5293 [2024-12-20 15:17:24] Production.ERROR: pbx CDR StartTime 2024-12-20 12:17:05 - End Time 2024-12-20 15:17:05 [2024-12-20 15:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063683', 'tblTempUsageDetail_20' ) start [2024-12-20 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063683', 'tblTempUsageDetail_20' ) end [2024-12-20 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063683', 'tblTempVendorCDR_20' ) start [2024-12-20 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063683', 'tblTempVendorCDR_20' ) end [2024-12-20 15:17:25] Production.INFO: ProcessCDR(1,14063683,1,1,2) [2024-12-20 15:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063683', 'tblTempUsageDetail_20' ) start [2024-12-20 15:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063683', 'tblTempUsageDetail_20' ) end [2024-12-20 15:17:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:17:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:17:29] Production.INFO: ==20310== Releasing lock... [2024-12-20 15:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:17:29] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:18:04 [end_date_ymd] => 2024-12-20 15:18:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:18:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:18:23] Production.INFO: count ==5288 [2024-12-20 15:18:25] Production.ERROR: pbx CDR StartTime 2024-12-20 12:18:04 - End Time 2024-12-20 15:18:04 [2024-12-20 15:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063688', 'tblTempUsageDetail_20' ) start [2024-12-20 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063688', 'tblTempUsageDetail_20' ) end [2024-12-20 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063688', 'tblTempVendorCDR_20' ) start [2024-12-20 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063688', 'tblTempVendorCDR_20' ) end [2024-12-20 15:18:25] Production.INFO: ProcessCDR(1,14063688,1,1,2) [2024-12-20 15:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063688', 'tblTempUsageDetail_20' ) start [2024-12-20 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063688', 'tblTempUsageDetail_20' ) end [2024-12-20 15:18:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:18:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:18:29] Production.INFO: ==20382== Releasing lock... [2024-12-20 15:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:18:29] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:19:05 [end_date_ymd] => 2024-12-20 15:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:19:19] Production.INFO: count ==5253 [2024-12-20 15:19:21] Production.ERROR: pbx CDR StartTime 2024-12-20 12:19:05 - End Time 2024-12-20 15:19:05 [2024-12-20 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063693', 'tblTempUsageDetail_20' ) start [2024-12-20 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063693', 'tblTempUsageDetail_20' ) end [2024-12-20 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063693', 'tblTempVendorCDR_20' ) start [2024-12-20 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063693', 'tblTempVendorCDR_20' ) end [2024-12-20 15:19:21] Production.INFO: ProcessCDR(1,14063693,1,1,2) [2024-12-20 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063693', 'tblTempUsageDetail_20' ) start [2024-12-20 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063693', 'tblTempUsageDetail_20' ) end [2024-12-20 15:19:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:19:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:19:26] Production.INFO: ==20492== Releasing lock... [2024-12-20 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:19:26] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:20:05 [end_date_ymd] => 2024-12-20 15:20:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:20:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:20:19] Production.INFO: count ==5241 [2024-12-20 15:20:21] Production.ERROR: pbx CDR StartTime 2024-12-20 12:20:05 - End Time 2024-12-20 15:20:05 [2024-12-20 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063699', 'tblTempUsageDetail_20' ) start [2024-12-20 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063699', 'tblTempUsageDetail_20' ) end [2024-12-20 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063699', 'tblTempVendorCDR_20' ) start [2024-12-20 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063699', 'tblTempVendorCDR_20' ) end [2024-12-20 15:20:21] Production.INFO: ProcessCDR(1,14063699,1,1,2) [2024-12-20 15:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063699', 'tblTempUsageDetail_20' ) start [2024-12-20 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063699', 'tblTempUsageDetail_20' ) end [2024-12-20 15:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:20:25] Production.INFO: ==20565== Releasing lock... [2024-12-20 15:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:20:25] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:21:05 [end_date_ymd] => 2024-12-20 15:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:21:24] Production.INFO: count ==5291 [2024-12-20 15:21:26] Production.ERROR: pbx CDR StartTime 2024-12-20 12:21:05 - End Time 2024-12-20 15:21:05 [2024-12-20 15:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063704', 'tblTempUsageDetail_20' ) start [2024-12-20 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063704', 'tblTempUsageDetail_20' ) end [2024-12-20 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063704', 'tblTempVendorCDR_20' ) start [2024-12-20 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063704', 'tblTempVendorCDR_20' ) end [2024-12-20 15:21:26] Production.INFO: ProcessCDR(1,14063704,1,1,2) [2024-12-20 15:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063704', 'tblTempUsageDetail_20' ) start [2024-12-20 15:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063704', 'tblTempUsageDetail_20' ) end [2024-12-20 15:21:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:21:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:21:31] Production.INFO: ==20638== Releasing lock... [2024-12-20 15:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:21:31] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:22:05 [end_date_ymd] => 2024-12-20 15:22:05 [RateCDR] => 1 ) [2024-12-20 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:22:05' and `end` < '2024-12-20 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:22:22] Production.INFO: count ==5264 [2024-12-20 15:22:24] Production.ERROR: pbx CDR StartTime 2024-12-20 12:22:05 - End Time 2024-12-20 15:22:05 [2024-12-20 15:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063709', 'tblTempUsageDetail_20' ) start [2024-12-20 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063709', 'tblTempUsageDetail_20' ) end [2024-12-20 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063709', 'tblTempVendorCDR_20' ) start [2024-12-20 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063709', 'tblTempVendorCDR_20' ) end [2024-12-20 15:22:24] Production.INFO: ProcessCDR(1,14063709,1,1,2) [2024-12-20 15:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063709', 'tblTempUsageDetail_20' ) start [2024-12-20 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063709', 'tblTempUsageDetail_20' ) end [2024-12-20 15:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:22:28] Production.INFO: ==20711== Releasing lock... [2024-12-20 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:22:28] Production.INFO: 67.75 MB #Memory Used# [2024-12-20 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:23:05 [end_date_ymd] => 2024-12-20 15:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:23:18] Production.INFO: count ==5249 [2024-12-20 15:23:20] Production.ERROR: pbx CDR StartTime 2024-12-20 12:23:05 - End Time 2024-12-20 15:23:05 [2024-12-20 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063714', 'tblTempUsageDetail_20' ) start [2024-12-20 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063714', 'tblTempUsageDetail_20' ) end [2024-12-20 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063714', 'tblTempVendorCDR_20' ) start [2024-12-20 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063714', 'tblTempVendorCDR_20' ) end [2024-12-20 15:23:20] Production.INFO: ProcessCDR(1,14063714,1,1,2) [2024-12-20 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063714', 'tblTempUsageDetail_20' ) start [2024-12-20 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063714', 'tblTempUsageDetail_20' ) end [2024-12-20 15:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:23:24] Production.INFO: ==20782== Releasing lock... [2024-12-20 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:23:24] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:24:05 [end_date_ymd] => 2024-12-20 15:24:05 [RateCDR] => 1 ) [2024-12-20 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:24:05' and `end` < '2024-12-20 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:24:21] Production.INFO: count ==5253 [2024-12-20 15:24:23] Production.ERROR: pbx CDR StartTime 2024-12-20 12:24:05 - End Time 2024-12-20 15:24:05 [2024-12-20 15:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063719', 'tblTempUsageDetail_20' ) start [2024-12-20 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063719', 'tblTempUsageDetail_20' ) end [2024-12-20 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063719', 'tblTempVendorCDR_20' ) start [2024-12-20 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063719', 'tblTempVendorCDR_20' ) end [2024-12-20 15:24:23] Production.INFO: ProcessCDR(1,14063719,1,1,2) [2024-12-20 15:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063719', 'tblTempUsageDetail_20' ) start [2024-12-20 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063719', 'tblTempUsageDetail_20' ) end [2024-12-20 15:24:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:24:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:24:27] Production.INFO: ==20854== Releasing lock... [2024-12-20 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:24:27] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:25:05 [end_date_ymd] => 2024-12-20 15:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:25:18] Production.INFO: count ==5270 [2024-12-20 15:25:20] Production.ERROR: pbx CDR StartTime 2024-12-20 12:25:05 - End Time 2024-12-20 15:25:05 [2024-12-20 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063724', 'tblTempUsageDetail_20' ) start [2024-12-20 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063724', 'tblTempUsageDetail_20' ) end [2024-12-20 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063724', 'tblTempVendorCDR_20' ) start [2024-12-20 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063724', 'tblTempVendorCDR_20' ) end [2024-12-20 15:25:20] Production.INFO: ProcessCDR(1,14063724,1,1,2) [2024-12-20 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063724', 'tblTempUsageDetail_20' ) start [2024-12-20 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063724', 'tblTempUsageDetail_20' ) end [2024-12-20 15:25:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:25:25] Production.INFO: ==20923== Releasing lock... [2024-12-20 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:25:25] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:26:04 [end_date_ymd] => 2024-12-20 15:26:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:26:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:26:20] Production.INFO: count ==5267 [2024-12-20 15:26:22] Production.ERROR: pbx CDR StartTime 2024-12-20 12:26:04 - End Time 2024-12-20 15:26:04 [2024-12-20 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063729', 'tblTempUsageDetail_20' ) start [2024-12-20 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063729', 'tblTempUsageDetail_20' ) end [2024-12-20 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063729', 'tblTempVendorCDR_20' ) start [2024-12-20 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063729', 'tblTempVendorCDR_20' ) end [2024-12-20 15:26:22] Production.INFO: ProcessCDR(1,14063729,1,1,2) [2024-12-20 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063729', 'tblTempUsageDetail_20' ) start [2024-12-20 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063729', 'tblTempUsageDetail_20' ) end [2024-12-20 15:26:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:26:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:26:27] Production.INFO: ==20994== Releasing lock... [2024-12-20 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:26:27] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:27:05 [end_date_ymd] => 2024-12-20 15:27:05 [RateCDR] => 1 ) [2024-12-20 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:27:05' and `end` < '2024-12-20 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:27:33] Production.INFO: count ==5262 [2024-12-20 15:27:35] Production.ERROR: pbx CDR StartTime 2024-12-20 12:27:05 - End Time 2024-12-20 15:27:05 [2024-12-20 15:27:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063734', 'tblTempUsageDetail_20' ) start [2024-12-20 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063734', 'tblTempUsageDetail_20' ) end [2024-12-20 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063734', 'tblTempVendorCDR_20' ) start [2024-12-20 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063734', 'tblTempVendorCDR_20' ) end [2024-12-20 15:27:35] Production.INFO: ProcessCDR(1,14063734,1,1,2) [2024-12-20 15:27:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:27:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:27:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063734', 'tblTempUsageDetail_20' ) start [2024-12-20 15:27:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063734', 'tblTempUsageDetail_20' ) end [2024-12-20 15:27:40] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:27:40] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:27:40] Production.INFO: ==21099== Releasing lock... [2024-12-20 15:27:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:27:40] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:28:04 [end_date_ymd] => 2024-12-20 15:28:04 [RateCDR] => 1 ) [2024-12-20 15:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:28:04' and `end` < '2024-12-20 15:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:28:23] Production.INFO: count ==5270 [2024-12-20 15:28:26] Production.ERROR: pbx CDR StartTime 2024-12-20 12:28:04 - End Time 2024-12-20 15:28:04 [2024-12-20 15:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063739', 'tblTempUsageDetail_20' ) start [2024-12-20 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063739', 'tblTempUsageDetail_20' ) end [2024-12-20 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063739', 'tblTempVendorCDR_20' ) start [2024-12-20 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063739', 'tblTempVendorCDR_20' ) end [2024-12-20 15:28:26] Production.INFO: ProcessCDR(1,14063739,1,1,2) [2024-12-20 15:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063739', 'tblTempUsageDetail_20' ) start [2024-12-20 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063739', 'tblTempUsageDetail_20' ) end [2024-12-20 15:28:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:28:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:28:31] Production.INFO: ==21171== Releasing lock... [2024-12-20 15:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:28:31] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:29:05 [end_date_ymd] => 2024-12-20 15:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:29:23] Production.INFO: count ==5272 [2024-12-20 15:29:25] Production.ERROR: pbx CDR StartTime 2024-12-20 12:29:05 - End Time 2024-12-20 15:29:05 [2024-12-20 15:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063744', 'tblTempUsageDetail_20' ) start [2024-12-20 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063744', 'tblTempUsageDetail_20' ) end [2024-12-20 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063744', 'tblTempVendorCDR_20' ) start [2024-12-20 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063744', 'tblTempVendorCDR_20' ) end [2024-12-20 15:29:26] Production.INFO: ProcessCDR(1,14063744,1,1,2) [2024-12-20 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063744', 'tblTempUsageDetail_20' ) start [2024-12-20 15:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063744', 'tblTempUsageDetail_20' ) end [2024-12-20 15:29:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:29:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:29:30] Production.INFO: ==21242== Releasing lock... [2024-12-20 15:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:29:30] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:30:05 [end_date_ymd] => 2024-12-20 15:30:05 [RateCDR] => 1 ) [2024-12-20 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:30:05' and `end` < '2024-12-20 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:30:23] Production.INFO: count ==5263 [2024-12-20 15:30:26] Production.ERROR: pbx CDR StartTime 2024-12-20 12:30:05 - End Time 2024-12-20 15:30:05 [2024-12-20 15:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063749', 'tblTempUsageDetail_20' ) start [2024-12-20 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063749', 'tblTempUsageDetail_20' ) end [2024-12-20 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063749', 'tblTempVendorCDR_20' ) start [2024-12-20 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063749', 'tblTempVendorCDR_20' ) end [2024-12-20 15:30:26] Production.INFO: ProcessCDR(1,14063749,1,1,2) [2024-12-20 15:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063749', 'tblTempUsageDetail_20' ) start [2024-12-20 15:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063749', 'tblTempUsageDetail_20' ) end [2024-12-20 15:30:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:30:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:30:31] Production.INFO: ==21320== Releasing lock... [2024-12-20 15:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:30:31] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:31:04 [end_date_ymd] => 2024-12-20 15:31:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:31:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:31:21] Production.INFO: count ==5293 [2024-12-20 15:31:23] Production.ERROR: pbx CDR StartTime 2024-12-20 12:31:04 - End Time 2024-12-20 15:31:04 [2024-12-20 15:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063755', 'tblTempUsageDetail_20' ) start [2024-12-20 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063755', 'tblTempUsageDetail_20' ) end [2024-12-20 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063755', 'tblTempVendorCDR_20' ) start [2024-12-20 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063755', 'tblTempVendorCDR_20' ) end [2024-12-20 15:31:23] Production.INFO: ProcessCDR(1,14063755,1,1,2) [2024-12-20 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063755', 'tblTempUsageDetail_20' ) start [2024-12-20 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063755', 'tblTempUsageDetail_20' ) end [2024-12-20 15:31:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:31:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:31:27] Production.INFO: ==21401== Releasing lock... [2024-12-20 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:31:27] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:32:05 [end_date_ymd] => 2024-12-20 15:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:32:18] Production.INFO: count ==5295 [2024-12-20 15:32:20] Production.ERROR: pbx CDR StartTime 2024-12-20 12:32:05 - End Time 2024-12-20 15:32:05 [2024-12-20 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063760', 'tblTempUsageDetail_20' ) start [2024-12-20 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063760', 'tblTempUsageDetail_20' ) end [2024-12-20 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063760', 'tblTempVendorCDR_20' ) start [2024-12-20 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063760', 'tblTempVendorCDR_20' ) end [2024-12-20 15:32:20] Production.INFO: ProcessCDR(1,14063760,1,1,2) [2024-12-20 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063760', 'tblTempUsageDetail_20' ) start [2024-12-20 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063760', 'tblTempUsageDetail_20' ) end [2024-12-20 15:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:32:25] Production.INFO: ==21473== Releasing lock... [2024-12-20 15:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:32:25] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:33:05 [end_date_ymd] => 2024-12-20 15:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:33:18] Production.INFO: count ==5311 [2024-12-20 15:33:20] Production.ERROR: pbx CDR StartTime 2024-12-20 12:33:05 - End Time 2024-12-20 15:33:05 [2024-12-20 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063765', 'tblTempUsageDetail_20' ) start [2024-12-20 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063765', 'tblTempUsageDetail_20' ) end [2024-12-20 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063765', 'tblTempVendorCDR_20' ) start [2024-12-20 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063765', 'tblTempVendorCDR_20' ) end [2024-12-20 15:33:20] Production.INFO: ProcessCDR(1,14063765,1,1,2) [2024-12-20 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063765', 'tblTempUsageDetail_20' ) start [2024-12-20 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063765', 'tblTempUsageDetail_20' ) end [2024-12-20 15:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:33:24] Production.INFO: ==21544== Releasing lock... [2024-12-20 15:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:33:24] Production.INFO: 67.75 MB #Memory Used# [2024-12-20 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:34:04 [end_date_ymd] => 2024-12-20 15:34:04 [RateCDR] => 1 ) [2024-12-20 15:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:34:04' and `end` < '2024-12-20 15:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:34:20] Production.INFO: count ==5308 [2024-12-20 15:34:22] Production.ERROR: pbx CDR StartTime 2024-12-20 12:34:04 - End Time 2024-12-20 15:34:04 [2024-12-20 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063770', 'tblTempUsageDetail_20' ) start [2024-12-20 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063770', 'tblTempUsageDetail_20' ) end [2024-12-20 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063770', 'tblTempVendorCDR_20' ) start [2024-12-20 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063770', 'tblTempVendorCDR_20' ) end [2024-12-20 15:34:22] Production.INFO: ProcessCDR(1,14063770,1,1,2) [2024-12-20 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063770', 'tblTempUsageDetail_20' ) start [2024-12-20 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063770', 'tblTempUsageDetail_20' ) end [2024-12-20 15:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:34:27] Production.INFO: ==21617== Releasing lock... [2024-12-20 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:34:27] Production.INFO: 67.75 MB #Memory Used# [2024-12-20 15:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:35:04 [end_date_ymd] => 2024-12-20 15:35:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:35:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:35:25] Production.INFO: count ==5319 [2024-12-20 15:35:27] Production.ERROR: pbx CDR StartTime 2024-12-20 12:35:04 - End Time 2024-12-20 15:35:04 [2024-12-20 15:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063775', 'tblTempUsageDetail_20' ) start [2024-12-20 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063775', 'tblTempUsageDetail_20' ) end [2024-12-20 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063775', 'tblTempVendorCDR_20' ) start [2024-12-20 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063775', 'tblTempVendorCDR_20' ) end [2024-12-20 15:35:27] Production.INFO: ProcessCDR(1,14063775,1,1,2) [2024-12-20 15:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063775', 'tblTempUsageDetail_20' ) start [2024-12-20 15:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063775', 'tblTempUsageDetail_20' ) end [2024-12-20 15:35:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:35:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:35:31] Production.INFO: ==21728== Releasing lock... [2024-12-20 15:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:35:31] Production.INFO: 67.75 MB #Memory Used# [2024-12-20 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:36:04 [end_date_ymd] => 2024-12-20 15:36:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:36:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:36:24] Production.INFO: count ==5326 [2024-12-20 15:36:26] Production.ERROR: pbx CDR StartTime 2024-12-20 12:36:04 - End Time 2024-12-20 15:36:04 [2024-12-20 15:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063780', 'tblTempUsageDetail_20' ) start [2024-12-20 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063780', 'tblTempUsageDetail_20' ) end [2024-12-20 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063780', 'tblTempVendorCDR_20' ) start [2024-12-20 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063780', 'tblTempVendorCDR_20' ) end [2024-12-20 15:36:26] Production.INFO: ProcessCDR(1,14063780,1,1,2) [2024-12-20 15:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063780', 'tblTempUsageDetail_20' ) start [2024-12-20 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063780', 'tblTempUsageDetail_20' ) end [2024-12-20 15:36:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:36:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:36:31] Production.INFO: ==21799== Releasing lock... [2024-12-20 15:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:36:31] Production.INFO: 67.75 MB #Memory Used# [2024-12-20 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:37:05 [end_date_ymd] => 2024-12-20 15:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:37:18] Production.INFO: count ==5335 [2024-12-20 15:37:20] Production.ERROR: pbx CDR StartTime 2024-12-20 12:37:05 - End Time 2024-12-20 15:37:05 [2024-12-20 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063785', 'tblTempUsageDetail_20' ) start [2024-12-20 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063785', 'tblTempUsageDetail_20' ) end [2024-12-20 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063785', 'tblTempVendorCDR_20' ) start [2024-12-20 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063785', 'tblTempVendorCDR_20' ) end [2024-12-20 15:37:20] Production.INFO: ProcessCDR(1,14063785,1,1,2) [2024-12-20 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063785', 'tblTempUsageDetail_20' ) start [2024-12-20 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063785', 'tblTempUsageDetail_20' ) end [2024-12-20 15:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:37:25] Production.INFO: ==21872== Releasing lock... [2024-12-20 15:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:37:25] Production.INFO: 68 MB #Memory Used# [2024-12-20 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:38:05 [end_date_ymd] => 2024-12-20 15:38:05 [RateCDR] => 1 ) [2024-12-20 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:38:05' and `end` < '2024-12-20 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:38:18] Production.INFO: count ==5347 [2024-12-20 15:38:21] Production.ERROR: pbx CDR StartTime 2024-12-20 12:38:05 - End Time 2024-12-20 15:38:05 [2024-12-20 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063790', 'tblTempUsageDetail_20' ) start [2024-12-20 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063790', 'tblTempUsageDetail_20' ) end [2024-12-20 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063790', 'tblTempVendorCDR_20' ) start [2024-12-20 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063790', 'tblTempVendorCDR_20' ) end [2024-12-20 15:38:21] Production.INFO: ProcessCDR(1,14063790,1,1,2) [2024-12-20 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063790', 'tblTempUsageDetail_20' ) start [2024-12-20 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063790', 'tblTempUsageDetail_20' ) end [2024-12-20 15:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:38:25] Production.INFO: ==21948== Releasing lock... [2024-12-20 15:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:38:25] Production.INFO: 68 MB #Memory Used# [2024-12-20 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:39:05 [end_date_ymd] => 2024-12-20 15:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:39:21] Production.INFO: count ==5362 [2024-12-20 15:39:23] Production.ERROR: pbx CDR StartTime 2024-12-20 12:39:05 - End Time 2024-12-20 15:39:05 [2024-12-20 15:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063795', 'tblTempUsageDetail_20' ) start [2024-12-20 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063795', 'tblTempUsageDetail_20' ) end [2024-12-20 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063795', 'tblTempVendorCDR_20' ) start [2024-12-20 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063795', 'tblTempVendorCDR_20' ) end [2024-12-20 15:39:23] Production.INFO: ProcessCDR(1,14063795,1,1,2) [2024-12-20 15:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063795', 'tblTempUsageDetail_20' ) start [2024-12-20 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063795', 'tblTempUsageDetail_20' ) end [2024-12-20 15:39:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:39:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:39:28] Production.INFO: ==22025== Releasing lock... [2024-12-20 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:39:28] Production.INFO: 68 MB #Memory Used# [2024-12-20 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:40:05 [end_date_ymd] => 2024-12-20 15:40:05 [RateCDR] => 1 ) [2024-12-20 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:40:05' and `end` < '2024-12-20 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:40:36] Production.INFO: count ==5367 [2024-12-20 15:40:39] Production.ERROR: pbx CDR StartTime 2024-12-20 12:40:05 - End Time 2024-12-20 15:40:05 [2024-12-20 15:40:39] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:40:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063801', 'tblTempUsageDetail_20' ) start [2024-12-20 15:40:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063801', 'tblTempUsageDetail_20' ) end [2024-12-20 15:40:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063801', 'tblTempVendorCDR_20' ) start [2024-12-20 15:40:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063801', 'tblTempVendorCDR_20' ) end [2024-12-20 15:40:39] Production.INFO: ProcessCDR(1,14063801,1,1,2) [2024-12-20 15:40:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:40:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:40:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:40:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:40:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063801', 'tblTempUsageDetail_20' ) start [2024-12-20 15:40:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063801', 'tblTempUsageDetail_20' ) end [2024-12-20 15:40:43] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:40:43] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:40:43] Production.INFO: ==22099== Releasing lock... [2024-12-20 15:40:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:40:43] Production.INFO: 68.25 MB #Memory Used# [2024-12-20 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:41:05 [end_date_ymd] => 2024-12-20 15:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:41:36] Production.INFO: count ==5347 [2024-12-20 15:41:38] Production.ERROR: pbx CDR StartTime 2024-12-20 12:41:05 - End Time 2024-12-20 15:41:05 [2024-12-20 15:41:38] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:41:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063806', 'tblTempUsageDetail_20' ) start [2024-12-20 15:41:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063806', 'tblTempUsageDetail_20' ) end [2024-12-20 15:41:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063806', 'tblTempVendorCDR_20' ) start [2024-12-20 15:41:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063806', 'tblTempVendorCDR_20' ) end [2024-12-20 15:41:39] Production.INFO: ProcessCDR(1,14063806,1,1,2) [2024-12-20 15:41:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:41:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:41:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:41:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:41:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063806', 'tblTempUsageDetail_20' ) start [2024-12-20 15:41:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063806', 'tblTempUsageDetail_20' ) end [2024-12-20 15:41:42] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:41:42] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:41:42] Production.INFO: ==22176== Releasing lock... [2024-12-20 15:41:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:41:42] Production.INFO: 68 MB #Memory Used# [2024-12-20 15:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:42:04 [end_date_ymd] => 2024-12-20 15:42:04 [RateCDR] => 1 ) [2024-12-20 15:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:42:04' and `end` < '2024-12-20 15:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:42:22] Production.INFO: count ==5341 [2024-12-20 15:42:24] Production.ERROR: pbx CDR StartTime 2024-12-20 12:42:04 - End Time 2024-12-20 15:42:04 [2024-12-20 15:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063811', 'tblTempUsageDetail_20' ) start [2024-12-20 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063811', 'tblTempUsageDetail_20' ) end [2024-12-20 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063811', 'tblTempVendorCDR_20' ) start [2024-12-20 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063811', 'tblTempVendorCDR_20' ) end [2024-12-20 15:42:24] Production.INFO: ProcessCDR(1,14063811,1,1,2) [2024-12-20 15:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063811', 'tblTempUsageDetail_20' ) start [2024-12-20 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063811', 'tblTempUsageDetail_20' ) end [2024-12-20 15:42:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:42:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:42:29] Production.INFO: ==22250== Releasing lock... [2024-12-20 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:42:29] Production.INFO: 68 MB #Memory Used# [2024-12-20 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:43:05 [end_date_ymd] => 2024-12-20 15:43:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:43:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:43:23] Production.INFO: count ==5351 [2024-12-20 15:43:25] Production.ERROR: pbx CDR StartTime 2024-12-20 12:43:05 - End Time 2024-12-20 15:43:05 [2024-12-20 15:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063816', 'tblTempUsageDetail_20' ) start [2024-12-20 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063816', 'tblTempUsageDetail_20' ) end [2024-12-20 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063816', 'tblTempVendorCDR_20' ) start [2024-12-20 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063816', 'tblTempVendorCDR_20' ) end [2024-12-20 15:43:25] Production.INFO: ProcessCDR(1,14063816,1,1,2) [2024-12-20 15:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063816', 'tblTempUsageDetail_20' ) start [2024-12-20 15:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063816', 'tblTempUsageDetail_20' ) end [2024-12-20 15:43:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:43:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:43:30] Production.INFO: ==22324== Releasing lock... [2024-12-20 15:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:43:30] Production.INFO: 68 MB #Memory Used# [2024-12-20 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:44:05 [end_date_ymd] => 2024-12-20 15:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:44:29] Production.INFO: count ==5352 [2024-12-20 15:44:31] Production.ERROR: pbx CDR StartTime 2024-12-20 12:44:05 - End Time 2024-12-20 15:44:05 [2024-12-20 15:44:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063821', 'tblTempUsageDetail_20' ) start [2024-12-20 15:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063821', 'tblTempUsageDetail_20' ) end [2024-12-20 15:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063821', 'tblTempVendorCDR_20' ) start [2024-12-20 15:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063821', 'tblTempVendorCDR_20' ) end [2024-12-20 15:44:32] Production.INFO: ProcessCDR(1,14063821,1,1,2) [2024-12-20 15:44:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063821', 'tblTempUsageDetail_20' ) start [2024-12-20 15:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063821', 'tblTempUsageDetail_20' ) end [2024-12-20 15:44:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:44:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:44:36] Production.INFO: ==22398== Releasing lock... [2024-12-20 15:44:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:44:36] Production.INFO: 68 MB #Memory Used# [2024-12-20 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:45:05 [end_date_ymd] => 2024-12-20 15:45:05 [RateCDR] => 1 ) [2024-12-20 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:45:05' and `end` < '2024-12-20 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:45:26] Production.INFO: count ==5368 [2024-12-20 15:45:28] Production.ERROR: pbx CDR StartTime 2024-12-20 12:45:05 - End Time 2024-12-20 15:45:05 [2024-12-20 15:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063826', 'tblTempUsageDetail_20' ) start [2024-12-20 15:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063826', 'tblTempUsageDetail_20' ) end [2024-12-20 15:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063826', 'tblTempVendorCDR_20' ) start [2024-12-20 15:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063826', 'tblTempVendorCDR_20' ) end [2024-12-20 15:45:28] Production.INFO: ProcessCDR(1,14063826,1,1,2) [2024-12-20 15:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063826', 'tblTempUsageDetail_20' ) start [2024-12-20 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063826', 'tblTempUsageDetail_20' ) end [2024-12-20 15:45:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:45:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:45:32] Production.INFO: ==22478== Releasing lock... [2024-12-20 15:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:45:32] Production.INFO: 68.25 MB #Memory Used# [2024-12-20 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:46:05 [end_date_ymd] => 2024-12-20 15:46:05 [RateCDR] => 1 ) [2024-12-20 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:46:05' and `end` < '2024-12-20 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:46:20] Production.INFO: count ==5386 [2024-12-20 15:46:22] Production.ERROR: pbx CDR StartTime 2024-12-20 12:46:05 - End Time 2024-12-20 15:46:05 [2024-12-20 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063831', 'tblTempUsageDetail_20' ) start [2024-12-20 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063831', 'tblTempUsageDetail_20' ) end [2024-12-20 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063831', 'tblTempVendorCDR_20' ) start [2024-12-20 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063831', 'tblTempVendorCDR_20' ) end [2024-12-20 15:46:22] Production.INFO: ProcessCDR(1,14063831,1,1,2) [2024-12-20 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063831', 'tblTempUsageDetail_20' ) start [2024-12-20 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063831', 'tblTempUsageDetail_20' ) end [2024-12-20 15:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:46:27] Production.INFO: ==22557== Releasing lock... [2024-12-20 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:46:27] Production.INFO: 68.25 MB #Memory Used# [2024-12-20 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:47:04 [end_date_ymd] => 2024-12-20 15:47:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:47:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:47:27] Production.INFO: count ==5413 [2024-12-20 15:47:29] Production.ERROR: pbx CDR StartTime 2024-12-20 12:47:04 - End Time 2024-12-20 15:47:04 [2024-12-20 15:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063836', 'tblTempUsageDetail_20' ) start [2024-12-20 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063836', 'tblTempUsageDetail_20' ) end [2024-12-20 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063836', 'tblTempVendorCDR_20' ) start [2024-12-20 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063836', 'tblTempVendorCDR_20' ) end [2024-12-20 15:47:29] Production.INFO: ProcessCDR(1,14063836,1,1,2) [2024-12-20 15:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063836', 'tblTempUsageDetail_20' ) start [2024-12-20 15:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063836', 'tblTempUsageDetail_20' ) end [2024-12-20 15:47:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:47:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:47:33] Production.INFO: ==22629== Releasing lock... [2024-12-20 15:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:47:33] Production.INFO: 68.5 MB #Memory Used# [2024-12-20 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:48:04 [end_date_ymd] => 2024-12-20 15:48:04 [RateCDR] => 1 ) [2024-12-20 15:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:48:04' and `end` < '2024-12-20 15:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:48:25] Production.INFO: count ==5421 [2024-12-20 15:48:27] Production.ERROR: pbx CDR StartTime 2024-12-20 12:48:04 - End Time 2024-12-20 15:48:04 [2024-12-20 15:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063841', 'tblTempUsageDetail_20' ) start [2024-12-20 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063841', 'tblTempUsageDetail_20' ) end [2024-12-20 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063841', 'tblTempVendorCDR_20' ) start [2024-12-20 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063841', 'tblTempVendorCDR_20' ) end [2024-12-20 15:48:27] Production.INFO: ProcessCDR(1,14063841,1,1,2) [2024-12-20 15:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063841', 'tblTempUsageDetail_20' ) start [2024-12-20 15:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063841', 'tblTempUsageDetail_20' ) end [2024-12-20 15:48:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:48:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:48:32] Production.INFO: ==22702== Releasing lock... [2024-12-20 15:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:48:32] Production.INFO: 68.5 MB #Memory Used# [2024-12-20 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:49:05 [end_date_ymd] => 2024-12-20 15:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:49:21] Production.INFO: count ==5406 [2024-12-20 15:49:23] Production.ERROR: pbx CDR StartTime 2024-12-20 12:49:05 - End Time 2024-12-20 15:49:05 [2024-12-20 15:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063846', 'tblTempUsageDetail_20' ) start [2024-12-20 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063846', 'tblTempUsageDetail_20' ) end [2024-12-20 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063846', 'tblTempVendorCDR_20' ) start [2024-12-20 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063846', 'tblTempVendorCDR_20' ) end [2024-12-20 15:49:23] Production.INFO: ProcessCDR(1,14063846,1,1,2) [2024-12-20 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063846', 'tblTempUsageDetail_20' ) start [2024-12-20 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063846', 'tblTempUsageDetail_20' ) end [2024-12-20 15:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:49:28] Production.INFO: ==22778== Releasing lock... [2024-12-20 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:49:28] Production.INFO: 68.5 MB #Memory Used# [2024-12-20 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:50:05 [end_date_ymd] => 2024-12-20 15:50:05 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:50:05' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:50:25] Production.INFO: count ==5398 [2024-12-20 15:50:28] Production.ERROR: pbx CDR StartTime 2024-12-20 12:50:05 - End Time 2024-12-20 15:50:05 [2024-12-20 15:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063852', 'tblTempUsageDetail_20' ) start [2024-12-20 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063852', 'tblTempUsageDetail_20' ) end [2024-12-20 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063852', 'tblTempVendorCDR_20' ) start [2024-12-20 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063852', 'tblTempVendorCDR_20' ) end [2024-12-20 15:50:28] Production.INFO: ProcessCDR(1,14063852,1,1,2) [2024-12-20 15:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063852', 'tblTempUsageDetail_20' ) start [2024-12-20 15:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063852', 'tblTempUsageDetail_20' ) end [2024-12-20 15:50:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:50:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:50:32] Production.INFO: ==22852== Releasing lock... [2024-12-20 15:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:50:32] Production.INFO: 68.5 MB #Memory Used# [2024-12-20 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:51:05 [end_date_ymd] => 2024-12-20 15:51:05 [RateCDR] => 1 ) [2024-12-20 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:51:05' and `end` < '2024-12-20 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:51:21] Production.INFO: count ==5430 [2024-12-20 15:51:23] Production.ERROR: pbx CDR StartTime 2024-12-20 12:51:05 - End Time 2024-12-20 15:51:05 [2024-12-20 15:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063857', 'tblTempUsageDetail_20' ) start [2024-12-20 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063857', 'tblTempUsageDetail_20' ) end [2024-12-20 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063857', 'tblTempVendorCDR_20' ) start [2024-12-20 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063857', 'tblTempVendorCDR_20' ) end [2024-12-20 15:51:24] Production.INFO: ProcessCDR(1,14063857,1,1,2) [2024-12-20 15:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063857', 'tblTempUsageDetail_20' ) start [2024-12-20 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063857', 'tblTempUsageDetail_20' ) end [2024-12-20 15:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:51:28] Production.INFO: ==22965== Releasing lock... [2024-12-20 15:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:51:28] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:52:04 [end_date_ymd] => 2024-12-20 15:52:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:52:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:52:18] Production.INFO: count ==5433 [2024-12-20 15:52:21] Production.ERROR: pbx CDR StartTime 2024-12-20 12:52:04 - End Time 2024-12-20 15:52:04 [2024-12-20 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063862', 'tblTempUsageDetail_20' ) start [2024-12-20 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063862', 'tblTempUsageDetail_20' ) end [2024-12-20 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063862', 'tblTempVendorCDR_20' ) start [2024-12-20 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063862', 'tblTempVendorCDR_20' ) end [2024-12-20 15:52:21] Production.INFO: ProcessCDR(1,14063862,1,1,2) [2024-12-20 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063862', 'tblTempUsageDetail_20' ) start [2024-12-20 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063862', 'tblTempUsageDetail_20' ) end [2024-12-20 15:52:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:52:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:52:25] Production.INFO: ==23037== Releasing lock... [2024-12-20 15:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:52:25] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:53:05 [end_date_ymd] => 2024-12-20 15:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:53:29] Production.INFO: count ==5437 [2024-12-20 15:53:31] Production.ERROR: pbx CDR StartTime 2024-12-20 12:53:05 - End Time 2024-12-20 15:53:05 [2024-12-20 15:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063867', 'tblTempUsageDetail_20' ) start [2024-12-20 15:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063867', 'tblTempUsageDetail_20' ) end [2024-12-20 15:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063867', 'tblTempVendorCDR_20' ) start [2024-12-20 15:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063867', 'tblTempVendorCDR_20' ) end [2024-12-20 15:53:31] Production.INFO: ProcessCDR(1,14063867,1,1,2) [2024-12-20 15:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063867', 'tblTempUsageDetail_20' ) start [2024-12-20 15:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063867', 'tblTempUsageDetail_20' ) end [2024-12-20 15:53:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:53:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:53:36] Production.INFO: ==23108== Releasing lock... [2024-12-20 15:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:53:36] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:54:06 [end_date_ymd] => 2024-12-20 15:54:06 [RateCDR] => 1 ) [2024-12-20 15:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:54:06' and `end` < '2024-12-20 15:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:54:25] Production.INFO: count ==5457 [2024-12-20 15:54:27] Production.ERROR: pbx CDR StartTime 2024-12-20 12:54:06 - End Time 2024-12-20 15:54:06 [2024-12-20 15:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063872', 'tblTempUsageDetail_20' ) start [2024-12-20 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063872', 'tblTempUsageDetail_20' ) end [2024-12-20 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063872', 'tblTempVendorCDR_20' ) start [2024-12-20 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063872', 'tblTempVendorCDR_20' ) end [2024-12-20 15:54:27] Production.INFO: ProcessCDR(1,14063872,1,1,2) [2024-12-20 15:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063872', 'tblTempUsageDetail_20' ) start [2024-12-20 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063872', 'tblTempUsageDetail_20' ) end [2024-12-20 15:54:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:54:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:54:32] Production.INFO: ==23178== Releasing lock... [2024-12-20 15:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:54:32] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:55:05 [end_date_ymd] => 2024-12-20 15:55:05 [RateCDR] => 1 ) [2024-12-20 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:55:05' and `end` < '2024-12-20 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:55:23] Production.INFO: count ==5459 [2024-12-20 15:55:25] Production.ERROR: pbx CDR StartTime 2024-12-20 12:55:05 - End Time 2024-12-20 15:55:05 [2024-12-20 15:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063877', 'tblTempUsageDetail_20' ) start [2024-12-20 15:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063877', 'tblTempUsageDetail_20' ) end [2024-12-20 15:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063877', 'tblTempVendorCDR_20' ) start [2024-12-20 15:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063877', 'tblTempVendorCDR_20' ) end [2024-12-20 15:55:25] Production.INFO: ProcessCDR(1,14063877,1,1,2) [2024-12-20 15:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063877', 'tblTempUsageDetail_20' ) start [2024-12-20 15:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063877', 'tblTempUsageDetail_20' ) end [2024-12-20 15:55:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:55:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:55:30] Production.INFO: ==23252== Releasing lock... [2024-12-20 15:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:55:30] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 15:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:56:04 [end_date_ymd] => 2024-12-20 15:56:04 [RateCDR] => 1 ) [2024-12-20 15:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:56:04' and `end` < '2024-12-20 15:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:56:21] Production.INFO: count ==5463 [2024-12-20 15:56:23] Production.ERROR: pbx CDR StartTime 2024-12-20 12:56:04 - End Time 2024-12-20 15:56:04 [2024-12-20 15:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063882', 'tblTempUsageDetail_20' ) start [2024-12-20 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063882', 'tblTempUsageDetail_20' ) end [2024-12-20 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063882', 'tblTempVendorCDR_20' ) start [2024-12-20 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063882', 'tblTempVendorCDR_20' ) end [2024-12-20 15:56:23] Production.INFO: ProcessCDR(1,14063882,1,1,2) [2024-12-20 15:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063882', 'tblTempUsageDetail_20' ) start [2024-12-20 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063882', 'tblTempUsageDetail_20' ) end [2024-12-20 15:56:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:56:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:56:27] Production.INFO: ==23324== Releasing lock... [2024-12-20 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:56:27] Production.INFO: 69 MB #Memory Used# [2024-12-20 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:57:04 [end_date_ymd] => 2024-12-20 15:57:04 [RateCDR] => 1 ) [2024-12-20 15:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 12:57:04' and `end` < '2024-12-20 15:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 15:57:21] Production.INFO: count ==5472 [2024-12-20 15:57:23] Production.ERROR: pbx CDR StartTime 2024-12-20 12:57:04 - End Time 2024-12-20 15:57:04 [2024-12-20 15:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063887', 'tblTempUsageDetail_20' ) start [2024-12-20 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063887', 'tblTempUsageDetail_20' ) end [2024-12-20 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063887', 'tblTempVendorCDR_20' ) start [2024-12-20 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063887', 'tblTempVendorCDR_20' ) end [2024-12-20 15:57:24] Production.INFO: ProcessCDR(1,14063887,1,1,2) [2024-12-20 15:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063887', 'tblTempUsageDetail_20' ) start [2024-12-20 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063887', 'tblTempUsageDetail_20' ) end [2024-12-20 15:57:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:57:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:57:28] Production.INFO: ==23395== Releasing lock... [2024-12-20 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:57:28] Production.INFO: 69 MB #Memory Used# [2024-12-20 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:58:04 [end_date_ymd] => 2024-12-20 15:58:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 12:58:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 15:58:23] Production.INFO: count ==5491 [2024-12-20 15:58:25] Production.ERROR: pbx CDR StartTime 2024-12-20 12:58:04 - End Time 2024-12-20 15:58:04 [2024-12-20 15:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063891', 'tblTempUsageDetail_20' ) start [2024-12-20 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063891', 'tblTempUsageDetail_20' ) end [2024-12-20 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063891', 'tblTempVendorCDR_20' ) start [2024-12-20 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063891', 'tblTempVendorCDR_20' ) end [2024-12-20 15:58:25] Production.INFO: ProcessCDR(1,14063891,1,1,2) [2024-12-20 15:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063891', 'tblTempUsageDetail_20' ) start [2024-12-20 15:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063891', 'tblTempUsageDetail_20' ) end [2024-12-20 15:58:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:58:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:58:29] Production.INFO: ==23465== Releasing lock... [2024-12-20 15:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:58:29] Production.INFO: 69 MB #Memory Used# [2024-12-20 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 12:59:04 [end_date_ymd] => 2024-12-20 15:59:04 [RateCDR] => 1 ) [2024-12-20 15: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` >= '2024-12-20 12:59:04' and `end` < '2024-12-20 15: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 ,'') [2024-12-20 15:59:18] Production.INFO: count ==5499 [2024-12-20 15:59:20] Production.ERROR: pbx CDR StartTime 2024-12-20 12:59:04 - End Time 2024-12-20 15:59:04 [2024-12-20 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063897', 'tblTempUsageDetail_20' ) start [2024-12-20 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063897', 'tblTempUsageDetail_20' ) end [2024-12-20 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063897', 'tblTempVendorCDR_20' ) start [2024-12-20 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063897', 'tblTempVendorCDR_20' ) end [2024-12-20 15:59:20] Production.INFO: ProcessCDR(1,14063897,1,1,2) [2024-12-20 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 15:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063897', 'tblTempUsageDetail_20' ) start [2024-12-20 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063897', 'tblTempUsageDetail_20' ) end [2024-12-20 15:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 15:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 15:59:25] Production.INFO: ==23535== Releasing lock... [2024-12-20 15:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 15:59:25] Production.INFO: 69.25 MB #Memory Used# [2024-12-20 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:00:05 [end_date_ymd] => 2024-12-20 16:00:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:00:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:00:31] Production.INFO: count ==5504 [2024-12-20 16:00:33] Production.ERROR: pbx CDR StartTime 2024-12-20 13:00:05 - End Time 2024-12-20 16:00:05 [2024-12-20 16:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063903', 'tblTempUsageDetail_20' ) start [2024-12-20 16:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063903', 'tblTempUsageDetail_20' ) end [2024-12-20 16:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063903', 'tblTempVendorCDR_20' ) start [2024-12-20 16:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063903', 'tblTempVendorCDR_20' ) end [2024-12-20 16:00:34] Production.INFO: ProcessCDR(1,14063903,1,1,2) [2024-12-20 16:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063903', 'tblTempUsageDetail_20' ) start [2024-12-20 16:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063903', 'tblTempUsageDetail_20' ) end [2024-12-20 16:00:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:00:38] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:00:38] Production.INFO: ==23611== Releasing lock... [2024-12-20 16:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:00:38] Production.INFO: 69.25 MB #Memory Used# [2024-12-20 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:01:05 [end_date_ymd] => 2024-12-20 16:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:01:26] Production.INFO: count ==5528 [2024-12-20 16:01:28] Production.ERROR: pbx CDR StartTime 2024-12-20 13:01:05 - End Time 2024-12-20 16:01:05 [2024-12-20 16:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063908', 'tblTempUsageDetail_20' ) start [2024-12-20 16:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063908', 'tblTempUsageDetail_20' ) end [2024-12-20 16:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063908', 'tblTempVendorCDR_20' ) start [2024-12-20 16:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063908', 'tblTempVendorCDR_20' ) end [2024-12-20 16:01:29] Production.INFO: ProcessCDR(1,14063908,1,1,2) [2024-12-20 16:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063908', 'tblTempUsageDetail_20' ) start [2024-12-20 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063908', 'tblTempUsageDetail_20' ) end [2024-12-20 16:01:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:01:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:01:33] Production.INFO: ==23703== Releasing lock... [2024-12-20 16:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:01:33] Production.INFO: 69.25 MB #Memory Used# [2024-12-20 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:02:05 [end_date_ymd] => 2024-12-20 16:02:05 [RateCDR] => 1 ) [2024-12-20 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:02:05' and `end` < '2024-12-20 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:02:26] Production.INFO: count ==5554 [2024-12-20 16:02:28] Production.ERROR: pbx CDR StartTime 2024-12-20 13:02:05 - End Time 2024-12-20 16:02:05 [2024-12-20 16:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063913', 'tblTempUsageDetail_20' ) start [2024-12-20 16:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063913', 'tblTempUsageDetail_20' ) end [2024-12-20 16:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063913', 'tblTempVendorCDR_20' ) start [2024-12-20 16:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063913', 'tblTempVendorCDR_20' ) end [2024-12-20 16:02:28] Production.INFO: ProcessCDR(1,14063913,1,1,2) [2024-12-20 16:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063913', 'tblTempUsageDetail_20' ) start [2024-12-20 16:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063913', 'tblTempUsageDetail_20' ) end [2024-12-20 16:02:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:02:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:02:33] Production.INFO: ==23783== Releasing lock... [2024-12-20 16:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:02:33] Production.INFO: 69.5 MB #Memory Used# [2024-12-20 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:03:05 [end_date_ymd] => 2024-12-20 16:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:03:25] Production.INFO: count ==5563 [2024-12-20 16:03:27] Production.ERROR: pbx CDR StartTime 2024-12-20 13:03:05 - End Time 2024-12-20 16:03:05 [2024-12-20 16:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063918', 'tblTempUsageDetail_20' ) start [2024-12-20 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063918', 'tblTempUsageDetail_20' ) end [2024-12-20 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063918', 'tblTempVendorCDR_20' ) start [2024-12-20 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063918', 'tblTempVendorCDR_20' ) end [2024-12-20 16:03:27] Production.INFO: ProcessCDR(1,14063918,1,1,2) [2024-12-20 16:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063918', 'tblTempUsageDetail_20' ) start [2024-12-20 16:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063918', 'tblTempUsageDetail_20' ) end [2024-12-20 16:03:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:03:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:03:32] Production.INFO: ==23878== Releasing lock... [2024-12-20 16:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:03:32] Production.INFO: 70 MB #Memory Used# [2024-12-20 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:04:04 [end_date_ymd] => 2024-12-20 16:04:04 [RateCDR] => 1 ) [2024-12-20 16:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:04:04' and `end` < '2024-12-20 16:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:04:21] Production.INFO: count ==5570 [2024-12-20 16:04:23] Production.ERROR: pbx CDR StartTime 2024-12-20 13:04:04 - End Time 2024-12-20 16:04:04 [2024-12-20 16:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063923', 'tblTempUsageDetail_20' ) start [2024-12-20 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063923', 'tblTempUsageDetail_20' ) end [2024-12-20 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063923', 'tblTempVendorCDR_20' ) start [2024-12-20 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063923', 'tblTempVendorCDR_20' ) end [2024-12-20 16:04:23] Production.INFO: ProcessCDR(1,14063923,1,1,2) [2024-12-20 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063923', 'tblTempUsageDetail_20' ) start [2024-12-20 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063923', 'tblTempUsageDetail_20' ) end [2024-12-20 16:04:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:04:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:04:29] Production.INFO: ==23975== Releasing lock... [2024-12-20 16:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:04:29] Production.INFO: 69.75 MB #Memory Used# [2024-12-20 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:05:04 [end_date_ymd] => 2024-12-20 16:05:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:05:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:05:32] Production.INFO: count ==5553 [2024-12-20 16:05:34] Production.ERROR: pbx CDR StartTime 2024-12-20 13:05:04 - End Time 2024-12-20 16:05:04 [2024-12-20 16:05:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063928', 'tblTempUsageDetail_20' ) start [2024-12-20 16:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063928', 'tblTempUsageDetail_20' ) end [2024-12-20 16:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063928', 'tblTempVendorCDR_20' ) start [2024-12-20 16:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063928', 'tblTempVendorCDR_20' ) end [2024-12-20 16:05:34] Production.INFO: ProcessCDR(1,14063928,1,1,2) [2024-12-20 16:05:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:05:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063928', 'tblTempUsageDetail_20' ) start [2024-12-20 16:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063928', 'tblTempUsageDetail_20' ) end [2024-12-20 16:05:39] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:05:39] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:05:39] Production.INFO: ==24072== Releasing lock... [2024-12-20 16:05:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:05:39] Production.INFO: 69.5 MB #Memory Used# [2024-12-20 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:06:05 [end_date_ymd] => 2024-12-20 16:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:06:25] Production.INFO: count ==5563 [2024-12-20 16:06:27] Production.ERROR: pbx CDR StartTime 2024-12-20 13:06:05 - End Time 2024-12-20 16:06:05 [2024-12-20 16:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063933', 'tblTempUsageDetail_20' ) start [2024-12-20 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063933', 'tblTempUsageDetail_20' ) end [2024-12-20 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063933', 'tblTempVendorCDR_20' ) start [2024-12-20 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063933', 'tblTempVendorCDR_20' ) end [2024-12-20 16:06:27] Production.INFO: ProcessCDR(1,14063933,1,1,2) [2024-12-20 16:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063933', 'tblTempUsageDetail_20' ) start [2024-12-20 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063933', 'tblTempUsageDetail_20' ) end [2024-12-20 16:06:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:06:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:06:31] Production.INFO: ==24210== Releasing lock... [2024-12-20 16:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:06:31] Production.INFO: 69.75 MB #Memory Used# [2024-12-20 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:07:04 [end_date_ymd] => 2024-12-20 16:07:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:07:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:07:21] Production.INFO: count ==5544 [2024-12-20 16:07:23] Production.ERROR: pbx CDR StartTime 2024-12-20 13:07:04 - End Time 2024-12-20 16:07:04 [2024-12-20 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063938', 'tblTempUsageDetail_20' ) start [2024-12-20 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063938', 'tblTempUsageDetail_20' ) end [2024-12-20 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063938', 'tblTempVendorCDR_20' ) start [2024-12-20 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063938', 'tblTempVendorCDR_20' ) end [2024-12-20 16:07:23] Production.INFO: ProcessCDR(1,14063938,1,1,2) [2024-12-20 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063938', 'tblTempUsageDetail_20' ) start [2024-12-20 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063938', 'tblTempUsageDetail_20' ) end [2024-12-20 16:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:07:28] Production.INFO: ==24305== Releasing lock... [2024-12-20 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:07:28] Production.INFO: 69.5 MB #Memory Used# [2024-12-20 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:08:05 [end_date_ymd] => 2024-12-20 16:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:08:31] Production.INFO: count ==5528 [2024-12-20 16:08:33] Production.ERROR: pbx CDR StartTime 2024-12-20 13:08:05 - End Time 2024-12-20 16:08:05 [2024-12-20 16:08:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063943', 'tblTempUsageDetail_20' ) start [2024-12-20 16:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063943', 'tblTempUsageDetail_20' ) end [2024-12-20 16:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063943', 'tblTempVendorCDR_20' ) start [2024-12-20 16:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063943', 'tblTempVendorCDR_20' ) end [2024-12-20 16:08:34] Production.INFO: ProcessCDR(1,14063943,1,1,2) [2024-12-20 16:08:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:08:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:08:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:08:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063943', 'tblTempUsageDetail_20' ) start [2024-12-20 16:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063943', 'tblTempUsageDetail_20' ) end [2024-12-20 16:08:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:08:38] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:08:38] Production.INFO: ==24402== Releasing lock... [2024-12-20 16:08:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:08:38] Production.INFO: 69.25 MB #Memory Used# [2024-12-20 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:09:04 [end_date_ymd] => 2024-12-20 16:09:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:09:04' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:09:32] Production.INFO: count ==5527 [2024-12-20 16:09:34] Production.ERROR: pbx CDR StartTime 2024-12-20 13:09:04 - End Time 2024-12-20 16:09:04 [2024-12-20 16:09:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063944', 'tblTempUsageDetail_20' ) start [2024-12-20 16:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063944', 'tblTempUsageDetail_20' ) end [2024-12-20 16:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063944', 'tblTempVendorCDR_20' ) start [2024-12-20 16:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063944', 'tblTempVendorCDR_20' ) end [2024-12-20 16:09:34] Production.INFO: ProcessCDR(1,14063944,1,1,2) [2024-12-20 16:09:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:09:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:09:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:09:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063944', 'tblTempUsageDetail_20' ) start [2024-12-20 16:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063944', 'tblTempUsageDetail_20' ) end [2024-12-20 16:09:39] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:09:39] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:09:39] Production.INFO: ==24556== Releasing lock... [2024-12-20 16:09:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:09:39] Production.INFO: 69.25 MB #Memory Used# [2024-12-20 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:10:05 [end_date_ymd] => 2024-12-20 16:10:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:10:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:10:28] Production.INFO: count ==5516 [2024-12-20 16:10:30] Production.ERROR: pbx CDR StartTime 2024-12-20 13:10:05 - End Time 2024-12-20 16:10:05 [2024-12-20 16:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063953', 'tblTempUsageDetail_20' ) start [2024-12-20 16:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063953', 'tblTempUsageDetail_20' ) end [2024-12-20 16:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063953', 'tblTempVendorCDR_20' ) start [2024-12-20 16:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063953', 'tblTempVendorCDR_20' ) end [2024-12-20 16:10:30] Production.INFO: ProcessCDR(1,14063953,1,1,2) [2024-12-20 16:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063953', 'tblTempUsageDetail_20' ) start [2024-12-20 16:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063953', 'tblTempUsageDetail_20' ) end [2024-12-20 16:10:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:10:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:10:35] Production.INFO: ==24658== Releasing lock... [2024-12-20 16:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:10:35] Production.INFO: 69.25 MB #Memory Used# [2024-12-20 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:11:05 [end_date_ymd] => 2024-12-20 16:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:11:22] Production.INFO: count ==5495 [2024-12-20 16:11:24] Production.ERROR: pbx CDR StartTime 2024-12-20 13:11:05 - End Time 2024-12-20 16:11:05 [2024-12-20 16:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063959', 'tblTempUsageDetail_20' ) start [2024-12-20 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063959', 'tblTempUsageDetail_20' ) end [2024-12-20 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063959', 'tblTempVendorCDR_20' ) start [2024-12-20 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063959', 'tblTempVendorCDR_20' ) end [2024-12-20 16:11:25] Production.INFO: ProcessCDR(1,14063959,1,1,2) [2024-12-20 16:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063959', 'tblTempUsageDetail_20' ) start [2024-12-20 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063959', 'tblTempUsageDetail_20' ) end [2024-12-20 16:11:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:11:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:11:29] Production.INFO: ==24768== Releasing lock... [2024-12-20 16:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:11:29] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:12:05 [end_date_ymd] => 2024-12-20 16:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:12:22] Production.INFO: count ==5482 [2024-12-20 16:12:24] Production.ERROR: pbx CDR StartTime 2024-12-20 13:12:05 - End Time 2024-12-20 16:12:05 [2024-12-20 16:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063964', 'tblTempUsageDetail_20' ) start [2024-12-20 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063964', 'tblTempUsageDetail_20' ) end [2024-12-20 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063964', 'tblTempVendorCDR_20' ) start [2024-12-20 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063964', 'tblTempVendorCDR_20' ) end [2024-12-20 16:12:24] Production.INFO: ProcessCDR(1,14063964,1,1,2) [2024-12-20 16:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063964', 'tblTempUsageDetail_20' ) start [2024-12-20 16:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063964', 'tblTempUsageDetail_20' ) end [2024-12-20 16:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:12:29] Production.INFO: ==24870== Releasing lock... [2024-12-20 16:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:12:29] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:13:05 [end_date_ymd] => 2024-12-20 16:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:13:23] Production.INFO: count ==5481 [2024-12-20 16:13:26] Production.ERROR: pbx CDR StartTime 2024-12-20 13:13:05 - End Time 2024-12-20 16:13:05 [2024-12-20 16:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063969', 'tblTempUsageDetail_20' ) start [2024-12-20 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063969', 'tblTempUsageDetail_20' ) end [2024-12-20 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063969', 'tblTempVendorCDR_20' ) start [2024-12-20 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063969', 'tblTempVendorCDR_20' ) end [2024-12-20 16:13:26] Production.INFO: ProcessCDR(1,14063969,1,1,2) [2024-12-20 16:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063969', 'tblTempUsageDetail_20' ) start [2024-12-20 16:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063969', 'tblTempUsageDetail_20' ) end [2024-12-20 16:13:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:13:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:13:30] Production.INFO: ==25005== Releasing lock... [2024-12-20 16:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:13:30] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:14:04 [end_date_ymd] => 2024-12-20 16:14:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:14:04' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:14:18] Production.INFO: count ==5458 [2024-12-20 16:14:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:14:04 - End Time 2024-12-20 16:14:04 [2024-12-20 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063974', 'tblTempUsageDetail_20' ) start [2024-12-20 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063974', 'tblTempUsageDetail_20' ) end [2024-12-20 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063974', 'tblTempVendorCDR_20' ) start [2024-12-20 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063974', 'tblTempVendorCDR_20' ) end [2024-12-20 16:14:20] Production.INFO: ProcessCDR(1,14063974,1,1,2) [2024-12-20 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063974', 'tblTempUsageDetail_20' ) start [2024-12-20 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063974', 'tblTempUsageDetail_20' ) end [2024-12-20 16:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:14:24] Production.INFO: ==25105== Releasing lock... [2024-12-20 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:14:24] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:15:05 [end_date_ymd] => 2024-12-20 16:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:15:20] Production.INFO: count ==5446 [2024-12-20 16:15:22] Production.ERROR: pbx CDR StartTime 2024-12-20 13:15:05 - End Time 2024-12-20 16:15:05 [2024-12-20 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063979', 'tblTempUsageDetail_20' ) start [2024-12-20 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063979', 'tblTempUsageDetail_20' ) end [2024-12-20 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063979', 'tblTempVendorCDR_20' ) start [2024-12-20 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063979', 'tblTempVendorCDR_20' ) end [2024-12-20 16:15:22] Production.INFO: ProcessCDR(1,14063979,1,1,2) [2024-12-20 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063979', 'tblTempUsageDetail_20' ) start [2024-12-20 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063979', 'tblTempUsageDetail_20' ) end [2024-12-20 16:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:15:27] Production.INFO: ==25204== Releasing lock... [2024-12-20 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:15:27] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:16:04 [end_date_ymd] => 2024-12-20 16:16:04 [RateCDR] => 1 ) [2024-12-20 16:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:16:04' and `end` < '2024-12-20 16:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:16:18] Production.INFO: count ==5454 [2024-12-20 16:16:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:16:04 - End Time 2024-12-20 16:16:04 [2024-12-20 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063984', 'tblTempUsageDetail_20' ) start [2024-12-20 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063984', 'tblTempUsageDetail_20' ) end [2024-12-20 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063984', 'tblTempVendorCDR_20' ) start [2024-12-20 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063984', 'tblTempVendorCDR_20' ) end [2024-12-20 16:16:20] Production.INFO: ProcessCDR(1,14063984,1,1,2) [2024-12-20 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063984', 'tblTempUsageDetail_20' ) start [2024-12-20 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063984', 'tblTempUsageDetail_20' ) end [2024-12-20 16:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:16:24] Production.INFO: ==25305== Releasing lock... [2024-12-20 16:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:16:24] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:17:05 [end_date_ymd] => 2024-12-20 16:17:05 [RateCDR] => 1 ) [2024-12-20 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:17:05' and `end` < '2024-12-20 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:17:18] Production.INFO: count ==5464 [2024-12-20 16:17:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:17:05 - End Time 2024-12-20 16:17:05 [2024-12-20 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063989', 'tblTempUsageDetail_20' ) start [2024-12-20 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063989', 'tblTempUsageDetail_20' ) end [2024-12-20 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063989', 'tblTempVendorCDR_20' ) start [2024-12-20 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063989', 'tblTempVendorCDR_20' ) end [2024-12-20 16:17:20] Production.INFO: ProcessCDR(1,14063989,1,1,2) [2024-12-20 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063989', 'tblTempUsageDetail_20' ) start [2024-12-20 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063989', 'tblTempUsageDetail_20' ) end [2024-12-20 16:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:17:25] Production.INFO: ==25422== Releasing lock... [2024-12-20 16:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:17:25] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:18:05 [end_date_ymd] => 2024-12-20 16:18:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:18:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:18:23] Production.INFO: count ==5464 [2024-12-20 16:18:25] Production.ERROR: pbx CDR StartTime 2024-12-20 13:18:05 - End Time 2024-12-20 16:18:05 [2024-12-20 16:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063994', 'tblTempUsageDetail_20' ) start [2024-12-20 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063994', 'tblTempUsageDetail_20' ) end [2024-12-20 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063994', 'tblTempVendorCDR_20' ) start [2024-12-20 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063994', 'tblTempVendorCDR_20' ) end [2024-12-20 16:18:25] Production.INFO: ProcessCDR(1,14063994,1,1,2) [2024-12-20 16:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063994', 'tblTempUsageDetail_20' ) start [2024-12-20 16:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063994', 'tblTempUsageDetail_20' ) end [2024-12-20 16:18:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:18:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:18:29] Production.INFO: ==25523== Releasing lock... [2024-12-20 16:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:18:29] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:19:04 [end_date_ymd] => 2024-12-20 16:19:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:19:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:19:22] Production.INFO: count ==5472 [2024-12-20 16:19:24] Production.ERROR: pbx CDR StartTime 2024-12-20 13:19:04 - End Time 2024-12-20 16:19:04 [2024-12-20 16:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063999', 'tblTempUsageDetail_20' ) start [2024-12-20 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14063999', 'tblTempUsageDetail_20' ) end [2024-12-20 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063999', 'tblTempVendorCDR_20' ) start [2024-12-20 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14063999', 'tblTempVendorCDR_20' ) end [2024-12-20 16:19:24] Production.INFO: ProcessCDR(1,14063999,1,1,2) [2024-12-20 16:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14063999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14063999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14063999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14063999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063999', 'tblTempUsageDetail_20' ) start [2024-12-20 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14063999', 'tblTempUsageDetail_20' ) end [2024-12-20 16:19:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:19:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:19:27] Production.INFO: ==25626== Releasing lock... [2024-12-20 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:19:27] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:20:05 [end_date_ymd] => 2024-12-20 16:20:05 [RateCDR] => 1 ) [2024-12-20 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:20:05' and `end` < '2024-12-20 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:20:19] Production.INFO: count ==5442 [2024-12-20 16:20:21] Production.ERROR: pbx CDR StartTime 2024-12-20 13:20:05 - End Time 2024-12-20 16:20:05 [2024-12-20 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064004', 'tblTempUsageDetail_20' ) start [2024-12-20 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064004', 'tblTempUsageDetail_20' ) end [2024-12-20 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064004', 'tblTempVendorCDR_20' ) start [2024-12-20 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064004', 'tblTempVendorCDR_20' ) end [2024-12-20 16:20:21] Production.INFO: ProcessCDR(1,14064004,1,1,2) [2024-12-20 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064004', 'tblTempUsageDetail_20' ) start [2024-12-20 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064004', 'tblTempUsageDetail_20' ) end [2024-12-20 16:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:20:25] Production.INFO: ==25725== Releasing lock... [2024-12-20 16:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:20:25] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 16:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:21:04 [end_date_ymd] => 2024-12-20 16:21:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:21:04' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:21:20] Production.INFO: count ==5467 [2024-12-20 16:21:22] Production.ERROR: pbx CDR StartTime 2024-12-20 13:21:04 - End Time 2024-12-20 16:21:04 [2024-12-20 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064010', 'tblTempUsageDetail_20' ) start [2024-12-20 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064010', 'tblTempUsageDetail_20' ) end [2024-12-20 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064010', 'tblTempVendorCDR_20' ) start [2024-12-20 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064010', 'tblTempVendorCDR_20' ) end [2024-12-20 16:21:22] Production.INFO: ProcessCDR(1,14064010,1,1,2) [2024-12-20 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064010', 'tblTempUsageDetail_20' ) start [2024-12-20 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064010', 'tblTempUsageDetail_20' ) end [2024-12-20 16:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:21:25] Production.INFO: ==25828== Releasing lock... [2024-12-20 16:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:21:25] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:22:05 [end_date_ymd] => 2024-12-20 16:22:05 [RateCDR] => 1 ) [2024-12-20 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:22:05' and `end` < '2024-12-20 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:22:23] Production.INFO: count ==5462 [2024-12-20 16:22:25] Production.ERROR: pbx CDR StartTime 2024-12-20 13:22:05 - End Time 2024-12-20 16:22:05 [2024-12-20 16:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064015', 'tblTempUsageDetail_20' ) start [2024-12-20 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064015', 'tblTempUsageDetail_20' ) end [2024-12-20 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064015', 'tblTempVendorCDR_20' ) start [2024-12-20 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064015', 'tblTempVendorCDR_20' ) end [2024-12-20 16:22:25] Production.INFO: ProcessCDR(1,14064015,1,1,2) [2024-12-20 16:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064015', 'tblTempUsageDetail_20' ) start [2024-12-20 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064015', 'tblTempUsageDetail_20' ) end [2024-12-20 16:22:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:22:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:22:30] Production.INFO: ==25952== Releasing lock... [2024-12-20 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:22:30] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:23:05 [end_date_ymd] => 2024-12-20 16:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:23:18] Production.INFO: count ==5462 [2024-12-20 16:23:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:23:05 - End Time 2024-12-20 16:23:05 [2024-12-20 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064020', 'tblTempUsageDetail_20' ) start [2024-12-20 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064020', 'tblTempUsageDetail_20' ) end [2024-12-20 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064020', 'tblTempVendorCDR_20' ) start [2024-12-20 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064020', 'tblTempVendorCDR_20' ) end [2024-12-20 16:23:21] Production.INFO: ProcessCDR(1,14064020,1,1,2) [2024-12-20 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064020', 'tblTempUsageDetail_20' ) start [2024-12-20 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064020', 'tblTempUsageDetail_20' ) end [2024-12-20 16:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:23:25] Production.INFO: ==26024== Releasing lock... [2024-12-20 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:23:25] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:24:04 [end_date_ymd] => 2024-12-20 16:24:04 [RateCDR] => 1 ) [2024-12-20 16:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:24:04' and `end` < '2024-12-20 16:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:24:25] Production.INFO: count ==5471 [2024-12-20 16:24:27] Production.ERROR: pbx CDR StartTime 2024-12-20 13:24:04 - End Time 2024-12-20 16:24:04 [2024-12-20 16:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064025', 'tblTempUsageDetail_20' ) start [2024-12-20 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064025', 'tblTempUsageDetail_20' ) end [2024-12-20 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064025', 'tblTempVendorCDR_20' ) start [2024-12-20 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064025', 'tblTempVendorCDR_20' ) end [2024-12-20 16:24:28] Production.INFO: ProcessCDR(1,14064025,1,1,2) [2024-12-20 16:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064025', 'tblTempUsageDetail_20' ) start [2024-12-20 16:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064025', 'tblTempUsageDetail_20' ) end [2024-12-20 16:24:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:24:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:24:33] Production.INFO: ==26102== Releasing lock... [2024-12-20 16:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:24:33] Production.INFO: 69 MB #Memory Used# [2024-12-20 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:25:05 [end_date_ymd] => 2024-12-20 16:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:25:28] Production.INFO: count ==5457 [2024-12-20 16:25:30] Production.ERROR: pbx CDR StartTime 2024-12-20 13:25:05 - End Time 2024-12-20 16:25:05 [2024-12-20 16:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064030', 'tblTempUsageDetail_20' ) start [2024-12-20 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064030', 'tblTempUsageDetail_20' ) end [2024-12-20 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064030', 'tblTempVendorCDR_20' ) start [2024-12-20 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064030', 'tblTempVendorCDR_20' ) end [2024-12-20 16:25:31] Production.INFO: ProcessCDR(1,14064030,1,1,2) [2024-12-20 16:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064030', 'tblTempUsageDetail_20' ) start [2024-12-20 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064030', 'tblTempUsageDetail_20' ) end [2024-12-20 16:25:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:25:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:25:35] Production.INFO: ==26177== Releasing lock... [2024-12-20 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:25:35] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:26:05 [end_date_ymd] => 2024-12-20 16:26:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:26:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:26:26] Production.INFO: count ==5454 [2024-12-20 16:26:28] Production.ERROR: pbx CDR StartTime 2024-12-20 13:26:05 - End Time 2024-12-20 16:26:05 [2024-12-20 16:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064035', 'tblTempUsageDetail_20' ) start [2024-12-20 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064035', 'tblTempUsageDetail_20' ) end [2024-12-20 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064035', 'tblTempVendorCDR_20' ) start [2024-12-20 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064035', 'tblTempVendorCDR_20' ) end [2024-12-20 16:26:28] Production.INFO: ProcessCDR(1,14064035,1,1,2) [2024-12-20 16:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064035', 'tblTempUsageDetail_20' ) start [2024-12-20 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064035', 'tblTempUsageDetail_20' ) end [2024-12-20 16:26:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:26:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:26:33] Production.INFO: ==26248== Releasing lock... [2024-12-20 16:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:26:33] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:27:05 [end_date_ymd] => 2024-12-20 16:27:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:27:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:27:18] Production.INFO: count ==5448 [2024-12-20 16:27:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:27:05 - End Time 2024-12-20 16:27:05 [2024-12-20 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064040', 'tblTempUsageDetail_20' ) start [2024-12-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064040', 'tblTempUsageDetail_20' ) end [2024-12-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064040', 'tblTempVendorCDR_20' ) start [2024-12-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064040', 'tblTempVendorCDR_20' ) end [2024-12-20 16:27:21] Production.INFO: ProcessCDR(1,14064040,1,1,2) [2024-12-20 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064040', 'tblTempUsageDetail_20' ) start [2024-12-20 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064040', 'tblTempUsageDetail_20' ) end [2024-12-20 16:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:27:25] Production.INFO: ==26324== Releasing lock... [2024-12-20 16:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:27:25] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:28:04 [end_date_ymd] => 2024-12-20 16:28:04 [RateCDR] => 1 ) [2024-12-20 16:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:28:04' and `end` < '2024-12-20 16:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:28:26] Production.INFO: count ==5441 [2024-12-20 16:28:28] Production.ERROR: pbx CDR StartTime 2024-12-20 13:28:04 - End Time 2024-12-20 16:28:04 [2024-12-20 16:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064045', 'tblTempUsageDetail_20' ) start [2024-12-20 16:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064045', 'tblTempUsageDetail_20' ) end [2024-12-20 16:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064045', 'tblTempVendorCDR_20' ) start [2024-12-20 16:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064045', 'tblTempVendorCDR_20' ) end [2024-12-20 16:28:29] Production.INFO: ProcessCDR(1,14064045,1,1,2) [2024-12-20 16:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064045', 'tblTempUsageDetail_20' ) start [2024-12-20 16:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064045', 'tblTempUsageDetail_20' ) end [2024-12-20 16:28:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:28:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:28:33] Production.INFO: ==26396== Releasing lock... [2024-12-20 16:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:28:33] Production.INFO: 68.75 MB #Memory Used# [2024-12-20 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:29:05 [end_date_ymd] => 2024-12-20 16:29:05 [RateCDR] => 1 ) [2024-12-20 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:29:05' and `end` < '2024-12-20 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:29:22] Production.INFO: count ==5420 [2024-12-20 16:29:24] Production.ERROR: pbx CDR StartTime 2024-12-20 13:29:05 - End Time 2024-12-20 16:29:05 [2024-12-20 16:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064050', 'tblTempUsageDetail_20' ) start [2024-12-20 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064050', 'tblTempUsageDetail_20' ) end [2024-12-20 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064050', 'tblTempVendorCDR_20' ) start [2024-12-20 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064050', 'tblTempVendorCDR_20' ) end [2024-12-20 16:29:24] Production.INFO: ProcessCDR(1,14064050,1,1,2) [2024-12-20 16:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064050', 'tblTempUsageDetail_20' ) start [2024-12-20 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064050', 'tblTempUsageDetail_20' ) end [2024-12-20 16:29:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:29:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:29:28] Production.INFO: ==26471== Releasing lock... [2024-12-20 16:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:29:28] Production.INFO: 68.5 MB #Memory Used# [2024-12-20 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:30:06 [end_date_ymd] => 2024-12-20 16:30:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:30:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:30:19] Production.INFO: count ==5389 [2024-12-20 16:30:21] Production.ERROR: pbx CDR StartTime 2024-12-20 13:30:06 - End Time 2024-12-20 16:30:06 [2024-12-20 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064056', 'tblTempUsageDetail_20' ) start [2024-12-20 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064056', 'tblTempUsageDetail_20' ) end [2024-12-20 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064056', 'tblTempVendorCDR_20' ) start [2024-12-20 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064056', 'tblTempVendorCDR_20' ) end [2024-12-20 16:30:21] Production.INFO: ProcessCDR(1,14064056,1,1,2) [2024-12-20 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064056', 'tblTempUsageDetail_20' ) start [2024-12-20 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064056', 'tblTempUsageDetail_20' ) end [2024-12-20 16:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:30:25] Production.INFO: ==26548== Releasing lock... [2024-12-20 16:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:30:25] Production.INFO: 68.25 MB #Memory Used# [2024-12-20 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:31:04 [end_date_ymd] => 2024-12-20 16:31:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:31:04' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:31:19] Production.INFO: count ==5341 [2024-12-20 16:31:21] Production.ERROR: pbx CDR StartTime 2024-12-20 13:31:04 - End Time 2024-12-20 16:31:04 [2024-12-20 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064061', 'tblTempUsageDetail_20' ) start [2024-12-20 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064061', 'tblTempUsageDetail_20' ) end [2024-12-20 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064061', 'tblTempVendorCDR_20' ) start [2024-12-20 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064061', 'tblTempVendorCDR_20' ) end [2024-12-20 16:31:21] Production.INFO: ProcessCDR(1,14064061,1,1,2) [2024-12-20 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064061', 'tblTempUsageDetail_20' ) start [2024-12-20 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064061', 'tblTempUsageDetail_20' ) end [2024-12-20 16:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:31:26] Production.INFO: ==26621== Releasing lock... [2024-12-20 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:31:26] Production.INFO: 68 MB #Memory Used# [2024-12-20 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:32:05 [end_date_ymd] => 2024-12-20 16:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:32:22] Production.INFO: count ==5315 [2024-12-20 16:32:24] Production.ERROR: pbx CDR StartTime 2024-12-20 13:32:05 - End Time 2024-12-20 16:32:05 [2024-12-20 16:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064066', 'tblTempUsageDetail_20' ) start [2024-12-20 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064066', 'tblTempUsageDetail_20' ) end [2024-12-20 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064066', 'tblTempVendorCDR_20' ) start [2024-12-20 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064066', 'tblTempVendorCDR_20' ) end [2024-12-20 16:32:24] Production.INFO: ProcessCDR(1,14064066,1,1,2) [2024-12-20 16:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064066', 'tblTempUsageDetail_20' ) start [2024-12-20 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064066', 'tblTempUsageDetail_20' ) end [2024-12-20 16:32:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:32:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:32:29] Production.INFO: ==26700== Releasing lock... [2024-12-20 16:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:32:29] Production.INFO: 67.75 MB #Memory Used# [2024-12-20 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:33:04 [end_date_ymd] => 2024-12-20 16:33:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:33:04' and `end` < '2024-12-20 16:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:33:18] Production.INFO: count ==5291 [2024-12-20 16:33:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:33:04 - End Time 2024-12-20 16:33:04 [2024-12-20 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064071', 'tblTempUsageDetail_20' ) start [2024-12-20 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064071', 'tblTempUsageDetail_20' ) end [2024-12-20 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064071', 'tblTempVendorCDR_20' ) start [2024-12-20 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064071', 'tblTempVendorCDR_20' ) end [2024-12-20 16:33:21] Production.INFO: ProcessCDR(1,14064071,1,1,2) [2024-12-20 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064071', 'tblTempUsageDetail_20' ) start [2024-12-20 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064071', 'tblTempUsageDetail_20' ) end [2024-12-20 16:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:33:25] Production.INFO: ==26774== Releasing lock... [2024-12-20 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:33:25] Production.INFO: 67.5 MB #Memory Used# [2024-12-20 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:34:05 [end_date_ymd] => 2024-12-20 16:34:05 [RateCDR] => 1 ) [2024-12-20 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:34:05' and `end` < '2024-12-20 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:34:25] Production.INFO: count ==5295 [2024-12-20 16:34:27] Production.ERROR: pbx CDR StartTime 2024-12-20 13:34:05 - End Time 2024-12-20 16:34:05 [2024-12-20 16:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064076', 'tblTempUsageDetail_20' ) start [2024-12-20 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064076', 'tblTempUsageDetail_20' ) end [2024-12-20 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064076', 'tblTempVendorCDR_20' ) start [2024-12-20 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064076', 'tblTempVendorCDR_20' ) end [2024-12-20 16:34:27] Production.INFO: ProcessCDR(1,14064076,1,1,2) [2024-12-20 16:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064076', 'tblTempUsageDetail_20' ) start [2024-12-20 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064076', 'tblTempUsageDetail_20' ) end [2024-12-20 16:34:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:34:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:34:32] Production.INFO: ==26851== Releasing lock... [2024-12-20 16:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:34:32] Production.INFO: 67.75 MB #Memory Used# [2024-12-20 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:35:06 [end_date_ymd] => 2024-12-20 16:35:06 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:35:06' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:35:25] Production.INFO: count ==5253 [2024-12-20 16:35:27] Production.ERROR: pbx CDR StartTime 2024-12-20 13:35:06 - End Time 2024-12-20 16:35:06 [2024-12-20 16:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064081', 'tblTempUsageDetail_20' ) start [2024-12-20 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064081', 'tblTempUsageDetail_20' ) end [2024-12-20 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064081', 'tblTempVendorCDR_20' ) start [2024-12-20 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064081', 'tblTempVendorCDR_20' ) end [2024-12-20 16:35:28] Production.INFO: ProcessCDR(1,14064081,1,1,2) [2024-12-20 16:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064081', 'tblTempUsageDetail_20' ) start [2024-12-20 16:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064081', 'tblTempUsageDetail_20' ) end [2024-12-20 16:35:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:35:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:35:32] Production.INFO: ==26926== Releasing lock... [2024-12-20 16:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:35:32] Production.INFO: 67.25 MB #Memory Used# [2024-12-20 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:36:05 [end_date_ymd] => 2024-12-20 16:36:05 [RateCDR] => 1 ) [2024-12-20 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:36:05' and `end` < '2024-12-20 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:36:19] Production.INFO: count ==5219 [2024-12-20 16:36:21] Production.ERROR: pbx CDR StartTime 2024-12-20 13:36:05 - End Time 2024-12-20 16:36:05 [2024-12-20 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064086', 'tblTempUsageDetail_20' ) start [2024-12-20 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064086', 'tblTempUsageDetail_20' ) end [2024-12-20 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064086', 'tblTempVendorCDR_20' ) start [2024-12-20 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064086', 'tblTempVendorCDR_20' ) end [2024-12-20 16:36:21] Production.INFO: ProcessCDR(1,14064086,1,1,2) [2024-12-20 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064086', 'tblTempUsageDetail_20' ) start [2024-12-20 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064086', 'tblTempUsageDetail_20' ) end [2024-12-20 16:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:36:25] Production.INFO: ==26997== Releasing lock... [2024-12-20 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:36:25] Production.INFO: 67 MB #Memory Used# [2024-12-20 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:37:05 [end_date_ymd] => 2024-12-20 16:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:37:25] Production.INFO: count ==5204 [2024-12-20 16:37:27] Production.ERROR: pbx CDR StartTime 2024-12-20 13:37:05 - End Time 2024-12-20 16:37:05 [2024-12-20 16:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064091', 'tblTempUsageDetail_20' ) start [2024-12-20 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064091', 'tblTempUsageDetail_20' ) end [2024-12-20 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064091', 'tblTempVendorCDR_20' ) start [2024-12-20 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064091', 'tblTempVendorCDR_20' ) end [2024-12-20 16:37:27] Production.INFO: ProcessCDR(1,14064091,1,1,2) [2024-12-20 16:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064091', 'tblTempUsageDetail_20' ) start [2024-12-20 16:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064091', 'tblTempUsageDetail_20' ) end [2024-12-20 16:37:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:37:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:37:32] Production.INFO: ==27072== Releasing lock... [2024-12-20 16:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:37:32] Production.INFO: 67 MB #Memory Used# [2024-12-20 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:38:04 [end_date_ymd] => 2024-12-20 16:38:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:38:04' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:38:25] Production.INFO: count ==5194 [2024-12-20 16:38:27] Production.ERROR: pbx CDR StartTime 2024-12-20 13:38:04 - End Time 2024-12-20 16:38:04 [2024-12-20 16:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064096', 'tblTempUsageDetail_20' ) start [2024-12-20 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064096', 'tblTempUsageDetail_20' ) end [2024-12-20 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064096', 'tblTempVendorCDR_20' ) start [2024-12-20 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064096', 'tblTempVendorCDR_20' ) end [2024-12-20 16:38:27] Production.INFO: ProcessCDR(1,14064096,1,1,2) [2024-12-20 16:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064096', 'tblTempUsageDetail_20' ) start [2024-12-20 16:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064096', 'tblTempUsageDetail_20' ) end [2024-12-20 16:38:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:38:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:38:32] Production.INFO: ==27186== Releasing lock... [2024-12-20 16:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:38:32] Production.INFO: 66.75 MB #Memory Used# [2024-12-20 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:39:04 [end_date_ymd] => 2024-12-20 16:39:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:39:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:39:21] Production.INFO: count ==5143 [2024-12-20 16:39:23] Production.ERROR: pbx CDR StartTime 2024-12-20 13:39:04 - End Time 2024-12-20 16:39:04 [2024-12-20 16:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064101', 'tblTempUsageDetail_20' ) start [2024-12-20 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064101', 'tblTempUsageDetail_20' ) end [2024-12-20 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064101', 'tblTempVendorCDR_20' ) start [2024-12-20 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064101', 'tblTempVendorCDR_20' ) end [2024-12-20 16:39:23] Production.INFO: ProcessCDR(1,14064101,1,1,2) [2024-12-20 16:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064101', 'tblTempUsageDetail_20' ) start [2024-12-20 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064101', 'tblTempUsageDetail_20' ) end [2024-12-20 16:39:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:39:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:39:28] Production.INFO: ==27261== Releasing lock... [2024-12-20 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:39:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-20 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:40:05 [end_date_ymd] => 2024-12-20 16:40:05 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:40:05' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:40:23] Production.INFO: count ==5120 [2024-12-20 16:40:25] Production.ERROR: pbx CDR StartTime 2024-12-20 13:40:05 - End Time 2024-12-20 16:40:05 [2024-12-20 16:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064107', 'tblTempUsageDetail_20' ) start [2024-12-20 16:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064107', 'tblTempUsageDetail_20' ) end [2024-12-20 16:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064107', 'tblTempVendorCDR_20' ) start [2024-12-20 16:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064107', 'tblTempVendorCDR_20' ) end [2024-12-20 16:40:25] Production.INFO: ProcessCDR(1,14064107,1,1,2) [2024-12-20 16:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064107', 'tblTempUsageDetail_20' ) start [2024-12-20 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064107', 'tblTempUsageDetail_20' ) end [2024-12-20 16:40:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:40:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:40:29] Production.INFO: ==27336== Releasing lock... [2024-12-20 16:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:40:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-20 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:41:05 [end_date_ymd] => 2024-12-20 16:41:05 [RateCDR] => 1 ) [2024-12-20 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:41:05' and `end` < '2024-12-20 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:41:25] Production.INFO: count ==5073 [2024-12-20 16:41:26] Production.ERROR: pbx CDR StartTime 2024-12-20 13:41:05 - End Time 2024-12-20 16:41:05 [2024-12-20 16:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064112', 'tblTempUsageDetail_20' ) start [2024-12-20 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064112', 'tblTempUsageDetail_20' ) end [2024-12-20 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064112', 'tblTempVendorCDR_20' ) start [2024-12-20 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064112', 'tblTempVendorCDR_20' ) end [2024-12-20 16:41:27] Production.INFO: ProcessCDR(1,14064112,1,1,2) [2024-12-20 16:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064112', 'tblTempUsageDetail_20' ) start [2024-12-20 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064112', 'tblTempUsageDetail_20' ) end [2024-12-20 16:41:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:41:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:41:31] Production.INFO: ==27415== Releasing lock... [2024-12-20 16:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:41:31] Production.INFO: 66 MB #Memory Used# [2024-12-20 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:42:05 [end_date_ymd] => 2024-12-20 16:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:42:24] Production.INFO: count ==5058 [2024-12-20 16:42:26] Production.ERROR: pbx CDR StartTime 2024-12-20 13:42:05 - End Time 2024-12-20 16:42:05 [2024-12-20 16:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064117', 'tblTempUsageDetail_20' ) start [2024-12-20 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064117', 'tblTempUsageDetail_20' ) end [2024-12-20 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064117', 'tblTempVendorCDR_20' ) start [2024-12-20 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064117', 'tblTempVendorCDR_20' ) end [2024-12-20 16:42:26] Production.INFO: ProcessCDR(1,14064117,1,1,2) [2024-12-20 16:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064117', 'tblTempUsageDetail_20' ) start [2024-12-20 16:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064117', 'tblTempUsageDetail_20' ) end [2024-12-20 16:42:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:42:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:42:31] Production.INFO: ==27487== Releasing lock... [2024-12-20 16:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:42:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:43:04 [end_date_ymd] => 2024-12-20 16:43:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:43:04' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:43:19] Production.INFO: count ==5030 [2024-12-20 16:43:21] Production.ERROR: pbx CDR StartTime 2024-12-20 13:43:04 - End Time 2024-12-20 16:43:04 [2024-12-20 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064122', 'tblTempUsageDetail_20' ) start [2024-12-20 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064122', 'tblTempUsageDetail_20' ) end [2024-12-20 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064122', 'tblTempVendorCDR_20' ) start [2024-12-20 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064122', 'tblTempVendorCDR_20' ) end [2024-12-20 16:43:21] Production.INFO: ProcessCDR(1,14064122,1,1,2) [2024-12-20 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064122', 'tblTempUsageDetail_20' ) start [2024-12-20 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064122', 'tblTempUsageDetail_20' ) end [2024-12-20 16:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:43:26] Production.INFO: ==27561== Releasing lock... [2024-12-20 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:43:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-20 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:44:05 [end_date_ymd] => 2024-12-20 16:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:44:18] Production.INFO: count ==5017 [2024-12-20 16:44:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:44:05 - End Time 2024-12-20 16:44:05 [2024-12-20 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064127', 'tblTempUsageDetail_20' ) start [2024-12-20 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064127', 'tblTempUsageDetail_20' ) end [2024-12-20 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064127', 'tblTempVendorCDR_20' ) start [2024-12-20 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064127', 'tblTempVendorCDR_20' ) end [2024-12-20 16:44:20] Production.INFO: ProcessCDR(1,14064127,1,1,2) [2024-12-20 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064127', 'tblTempUsageDetail_20' ) start [2024-12-20 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064127', 'tblTempUsageDetail_20' ) end [2024-12-20 16:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:44:25] Production.INFO: ==27637== Releasing lock... [2024-12-20 16:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:44:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:45:04 [end_date_ymd] => 2024-12-20 16:45:04 [RateCDR] => 1 ) [2024-12-20 16:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:45:04' and `end` < '2024-12-20 16:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:45:19] Production.INFO: count ==5005 [2024-12-20 16:45:21] Production.ERROR: pbx CDR StartTime 2024-12-20 13:45:04 - End Time 2024-12-20 16:45:04 [2024-12-20 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064132', 'tblTempUsageDetail_20' ) start [2024-12-20 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064132', 'tblTempUsageDetail_20' ) end [2024-12-20 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064132', 'tblTempVendorCDR_20' ) start [2024-12-20 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064132', 'tblTempVendorCDR_20' ) end [2024-12-20 16:45:21] Production.INFO: ProcessCDR(1,14064132,1,1,2) [2024-12-20 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064132', 'tblTempUsageDetail_20' ) start [2024-12-20 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064132', 'tblTempUsageDetail_20' ) end [2024-12-20 16:45:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:45:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:45:26] Production.INFO: ==27715== Releasing lock... [2024-12-20 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:45:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 16:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:46:04 [end_date_ymd] => 2024-12-20 16:46:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:46:04' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:46:31] Production.INFO: count ==5000 [2024-12-20 16:46:33] Production.ERROR: pbx CDR StartTime 2024-12-20 13:46:04 - End Time 2024-12-20 16:46:04 [2024-12-20 16:46:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064137', 'tblTempUsageDetail_20' ) start [2024-12-20 16:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064137', 'tblTempUsageDetail_20' ) end [2024-12-20 16:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064137', 'tblTempVendorCDR_20' ) start [2024-12-20 16:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064137', 'tblTempVendorCDR_20' ) end [2024-12-20 16:46:33] Production.INFO: ProcessCDR(1,14064137,1,1,2) [2024-12-20 16:46:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:46:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:46:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:46:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064137', 'tblTempUsageDetail_20' ) start [2024-12-20 16:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064137', 'tblTempUsageDetail_20' ) end [2024-12-20 16:46:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:46:38] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:46:38] Production.INFO: ==27796== Releasing lock... [2024-12-20 16:46:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:46:38] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:47:05 [end_date_ymd] => 2024-12-20 16:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:47:30] Production.INFO: count ==5005 [2024-12-20 16:47:32] Production.ERROR: pbx CDR StartTime 2024-12-20 13:47:05 - End Time 2024-12-20 16:47:05 [2024-12-20 16:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064142', 'tblTempUsageDetail_20' ) start [2024-12-20 16:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064142', 'tblTempUsageDetail_20' ) end [2024-12-20 16:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064142', 'tblTempVendorCDR_20' ) start [2024-12-20 16:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064142', 'tblTempVendorCDR_20' ) end [2024-12-20 16:47:32] Production.INFO: ProcessCDR(1,14064142,1,1,2) [2024-12-20 16:47:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:47:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:47:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:47:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064142', 'tblTempUsageDetail_20' ) start [2024-12-20 16:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064142', 'tblTempUsageDetail_20' ) end [2024-12-20 16:47:36] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:47:36] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:47:36] Production.INFO: ==27873== Releasing lock... [2024-12-20 16:47:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:47:36] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:48:04 [end_date_ymd] => 2024-12-20 16:48:04 [RateCDR] => 1 ) [2024-12-20 16:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:48:04' and `end` < '2024-12-20 16:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:48:20] Production.INFO: count ==4997 [2024-12-20 16:48:22] Production.ERROR: pbx CDR StartTime 2024-12-20 13:48:04 - End Time 2024-12-20 16:48:04 [2024-12-20 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064147', 'tblTempUsageDetail_20' ) start [2024-12-20 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064147', 'tblTempUsageDetail_20' ) end [2024-12-20 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064147', 'tblTempVendorCDR_20' ) start [2024-12-20 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064147', 'tblTempVendorCDR_20' ) end [2024-12-20 16:48:22] Production.INFO: ProcessCDR(1,14064147,1,1,2) [2024-12-20 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064147', 'tblTempUsageDetail_20' ) start [2024-12-20 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064147', 'tblTempUsageDetail_20' ) end [2024-12-20 16:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:48:26] Production.INFO: ==27950== Releasing lock... [2024-12-20 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:48:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:49:05 [end_date_ymd] => 2024-12-20 16:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:49:21] Production.INFO: count ==4999 [2024-12-20 16:49:23] Production.ERROR: pbx CDR StartTime 2024-12-20 13:49:05 - End Time 2024-12-20 16:49:05 [2024-12-20 16:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064152', 'tblTempUsageDetail_20' ) start [2024-12-20 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064152', 'tblTempUsageDetail_20' ) end [2024-12-20 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064152', 'tblTempVendorCDR_20' ) start [2024-12-20 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064152', 'tblTempVendorCDR_20' ) end [2024-12-20 16:49:23] Production.INFO: ProcessCDR(1,14064152,1,1,2) [2024-12-20 16:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064152', 'tblTempUsageDetail_20' ) start [2024-12-20 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064152', 'tblTempUsageDetail_20' ) end [2024-12-20 16:49:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:49:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:49:27] Production.INFO: ==28026== Releasing lock... [2024-12-20 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:49:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-20 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:50:05 [end_date_ymd] => 2024-12-20 16:50:05 [RateCDR] => 1 ) [2024-12-20 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:50:05' and `end` < '2024-12-20 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:50:18] Production.INFO: count ==4988 [2024-12-20 16:50:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:50:05 - End Time 2024-12-20 16:50:05 [2024-12-20 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064158', 'tblTempUsageDetail_20' ) start [2024-12-20 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064158', 'tblTempUsageDetail_20' ) end [2024-12-20 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064158', 'tblTempVendorCDR_20' ) start [2024-12-20 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064158', 'tblTempVendorCDR_20' ) end [2024-12-20 16:50:20] Production.INFO: ProcessCDR(1,14064158,1,1,2) [2024-12-20 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064158', 'tblTempUsageDetail_20' ) start [2024-12-20 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064158', 'tblTempUsageDetail_20' ) end [2024-12-20 16:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:50:25] Production.INFO: ==28104== Releasing lock... [2024-12-20 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:50:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-20 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:51:05 [end_date_ymd] => 2024-12-20 16:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:51:23] Production.INFO: count ==4961 [2024-12-20 16:51:25] Production.ERROR: pbx CDR StartTime 2024-12-20 13:51:05 - End Time 2024-12-20 16:51:05 [2024-12-20 16:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064163', 'tblTempUsageDetail_20' ) start [2024-12-20 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064163', 'tblTempUsageDetail_20' ) end [2024-12-20 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064163', 'tblTempVendorCDR_20' ) start [2024-12-20 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064163', 'tblTempVendorCDR_20' ) end [2024-12-20 16:51:25] Production.INFO: ProcessCDR(1,14064163,1,1,2) [2024-12-20 16:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064163', 'tblTempUsageDetail_20' ) start [2024-12-20 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064163', 'tblTempUsageDetail_20' ) end [2024-12-20 16:51:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:51:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:51:30] Production.INFO: ==28185== Releasing lock... [2024-12-20 16:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:51:30] Production.INFO: 65.25 MB #Memory Used# [2024-12-20 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:52:04 [end_date_ymd] => 2024-12-20 16:52:04 [RateCDR] => 1 ) [2024-12-20 16: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` >= '2024-12-20 13:52:04' and `end` < '2024-12-20 16: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 ,'') [2024-12-20 16:52:17] Production.INFO: count ==4935 [2024-12-20 16:52:19] Production.ERROR: pbx CDR StartTime 2024-12-20 13:52:04 - End Time 2024-12-20 16:52:04 [2024-12-20 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064168', 'tblTempUsageDetail_20' ) start [2024-12-20 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064168', 'tblTempUsageDetail_20' ) end [2024-12-20 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064168', 'tblTempVendorCDR_20' ) start [2024-12-20 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064168', 'tblTempVendorCDR_20' ) end [2024-12-20 16:52:19] Production.INFO: ProcessCDR(1,14064168,1,1,2) [2024-12-20 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064168', 'tblTempUsageDetail_20' ) start [2024-12-20 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064168', 'tblTempUsageDetail_20' ) end [2024-12-20 16:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:52:23] Production.INFO: ==28259== Releasing lock... [2024-12-20 16:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:52:23] Production.INFO: 65 MB #Memory Used# [2024-12-20 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:53:05 [end_date_ymd] => 2024-12-20 16:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:53:19] Production.INFO: count ==4903 [2024-12-20 16:53:21] Production.ERROR: pbx CDR StartTime 2024-12-20 13:53:05 - End Time 2024-12-20 16:53:05 [2024-12-20 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064173', 'tblTempUsageDetail_20' ) start [2024-12-20 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064173', 'tblTempUsageDetail_20' ) end [2024-12-20 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064173', 'tblTempVendorCDR_20' ) start [2024-12-20 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064173', 'tblTempVendorCDR_20' ) end [2024-12-20 16:53:21] Production.INFO: ProcessCDR(1,14064173,1,1,2) [2024-12-20 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064173', 'tblTempUsageDetail_20' ) start [2024-12-20 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064173', 'tblTempUsageDetail_20' ) end [2024-12-20 16:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:53:25] Production.INFO: ==28341== Releasing lock... [2024-12-20 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:53:25] Production.INFO: 64.75 MB #Memory Used# [2024-12-20 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:54:05 [end_date_ymd] => 2024-12-20 16:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:54:27] Production.INFO: count ==4902 [2024-12-20 16:54:29] Production.ERROR: pbx CDR StartTime 2024-12-20 13:54:05 - End Time 2024-12-20 16:54:05 [2024-12-20 16:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064178', 'tblTempUsageDetail_20' ) start [2024-12-20 16:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064178', 'tblTempUsageDetail_20' ) end [2024-12-20 16:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064178', 'tblTempVendorCDR_20' ) start [2024-12-20 16:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064178', 'tblTempVendorCDR_20' ) end [2024-12-20 16:54:29] Production.INFO: ProcessCDR(1,14064178,1,1,2) [2024-12-20 16:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064178', 'tblTempUsageDetail_20' ) start [2024-12-20 16:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064178', 'tblTempUsageDetail_20' ) end [2024-12-20 16:54:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:54:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:54:34] Production.INFO: ==28454== Releasing lock... [2024-12-20 16:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:54:34] Production.INFO: 64.75 MB #Memory Used# [2024-12-20 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:55:05 [end_date_ymd] => 2024-12-20 16:55:05 [RateCDR] => 1 ) [2024-12-20 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:55:05' and `end` < '2024-12-20 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:55:18] Production.INFO: count ==4885 [2024-12-20 16:55:20] Production.ERROR: pbx CDR StartTime 2024-12-20 13:55:05 - End Time 2024-12-20 16:55:05 [2024-12-20 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064183', 'tblTempUsageDetail_20' ) start [2024-12-20 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064183', 'tblTempUsageDetail_20' ) end [2024-12-20 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064183', 'tblTempVendorCDR_20' ) start [2024-12-20 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064183', 'tblTempVendorCDR_20' ) end [2024-12-20 16:55:20] Production.INFO: ProcessCDR(1,14064183,1,1,2) [2024-12-20 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064183', 'tblTempUsageDetail_20' ) start [2024-12-20 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064183', 'tblTempUsageDetail_20' ) end [2024-12-20 16:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:55:24] Production.INFO: ==28528== Releasing lock... [2024-12-20 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:55:24] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:56:05 [end_date_ymd] => 2024-12-20 16:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:56:22] Production.INFO: count ==4880 [2024-12-20 16:56:24] Production.ERROR: pbx CDR StartTime 2024-12-20 13:56:05 - End Time 2024-12-20 16:56:05 [2024-12-20 16:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064188', 'tblTempUsageDetail_20' ) start [2024-12-20 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064188', 'tblTempUsageDetail_20' ) end [2024-12-20 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064188', 'tblTempVendorCDR_20' ) start [2024-12-20 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064188', 'tblTempVendorCDR_20' ) end [2024-12-20 16:56:24] Production.INFO: ProcessCDR(1,14064188,1,1,2) [2024-12-20 16:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064188', 'tblTempUsageDetail_20' ) start [2024-12-20 16:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064188', 'tblTempUsageDetail_20' ) end [2024-12-20 16:56:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:56:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:56:29] Production.INFO: ==28609== Releasing lock... [2024-12-20 16:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:56:29] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:57:04 [end_date_ymd] => 2024-12-20 16:57:04 [RateCDR] => 1 ) [2024-12-20 16:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:57:04' and `end` < '2024-12-20 16:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:57:32] Production.INFO: count ==4894 [2024-12-20 16:57:34] Production.ERROR: pbx CDR StartTime 2024-12-20 13:57:04 - End Time 2024-12-20 16:57:04 [2024-12-20 16:57:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064193', 'tblTempUsageDetail_20' ) start [2024-12-20 16:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064193', 'tblTempUsageDetail_20' ) end [2024-12-20 16:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064193', 'tblTempVendorCDR_20' ) start [2024-12-20 16:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064193', 'tblTempVendorCDR_20' ) end [2024-12-20 16:57:34] Production.INFO: ProcessCDR(1,14064193,1,1,2) [2024-12-20 16:57:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:57:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:57:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:57:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:57:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064193', 'tblTempUsageDetail_20' ) start [2024-12-20 16:57:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064193', 'tblTempUsageDetail_20' ) end [2024-12-20 16:57:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:57:39] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:57:39] Production.INFO: ==28684== Releasing lock... [2024-12-20 16:57:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:57:39] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:58:05 [end_date_ymd] => 2024-12-20 16:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 13:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 16:58:32] Production.INFO: count ==4882 [2024-12-20 16:58:34] Production.ERROR: pbx CDR StartTime 2024-12-20 13:58:05 - End Time 2024-12-20 16:58:05 [2024-12-20 16:58:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064198', 'tblTempUsageDetail_20' ) start [2024-12-20 16:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064198', 'tblTempUsageDetail_20' ) end [2024-12-20 16:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064198', 'tblTempVendorCDR_20' ) start [2024-12-20 16:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064198', 'tblTempVendorCDR_20' ) end [2024-12-20 16:58:34] Production.INFO: ProcessCDR(1,14064198,1,1,2) [2024-12-20 16:58:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:58:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:58:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:58:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:58:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064198', 'tblTempUsageDetail_20' ) start [2024-12-20 16:58:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064198', 'tblTempUsageDetail_20' ) end [2024-12-20 16:58:39] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:58:39] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:58:39] Production.INFO: ==28762== Releasing lock... [2024-12-20 16:58:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:58:39] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 13:59:04 [end_date_ymd] => 2024-12-20 16:59:04 [RateCDR] => 1 ) [2024-12-20 16:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 13:59:04' and `end` < '2024-12-20 16:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 16:59:24] Production.INFO: count ==4869 [2024-12-20 16:59:26] Production.ERROR: pbx CDR StartTime 2024-12-20 13:59:04 - End Time 2024-12-20 16:59:04 [2024-12-20 16:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064203', 'tblTempUsageDetail_20' ) start [2024-12-20 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064203', 'tblTempUsageDetail_20' ) end [2024-12-20 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064203', 'tblTempVendorCDR_20' ) start [2024-12-20 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064203', 'tblTempVendorCDR_20' ) end [2024-12-20 16:59:26] Production.INFO: ProcessCDR(1,14064203,1,1,2) [2024-12-20 16:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 16:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 16:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064203', 'tblTempUsageDetail_20' ) start [2024-12-20 16:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064203', 'tblTempUsageDetail_20' ) end [2024-12-20 16:59:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 16:59:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 16:59:31] Production.INFO: ==28835== Releasing lock... [2024-12-20 16:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 16:59:31] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:00:06 [end_date_ymd] => 2024-12-20 17:00:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:00:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:00:23] Production.INFO: count ==4839 [2024-12-20 17:00:25] Production.ERROR: pbx CDR StartTime 2024-12-20 14:00:06 - End Time 2024-12-20 17:00:06 [2024-12-20 17:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064209', 'tblTempUsageDetail_20' ) start [2024-12-20 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064209', 'tblTempUsageDetail_20' ) end [2024-12-20 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064209', 'tblTempVendorCDR_20' ) start [2024-12-20 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064209', 'tblTempVendorCDR_20' ) end [2024-12-20 17:00:25] Production.INFO: ProcessCDR(1,14064209,1,1,2) [2024-12-20 17:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064209', 'tblTempUsageDetail_20' ) start [2024-12-20 17:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064209', 'tblTempUsageDetail_20' ) end [2024-12-20 17:00:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:00:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:00:30] Production.INFO: ==28914== Releasing lock... [2024-12-20 17:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:00:30] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:01:05 [end_date_ymd] => 2024-12-20 17:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:01:19] Production.INFO: count ==4900 [2024-12-20 17:01:20] Production.ERROR: pbx CDR StartTime 2024-12-20 14:01:05 - End Time 2024-12-20 17:01:05 [2024-12-20 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064214', 'tblTempUsageDetail_20' ) start [2024-12-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064214', 'tblTempUsageDetail_20' ) end [2024-12-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064214', 'tblTempVendorCDR_20' ) start [2024-12-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064214', 'tblTempVendorCDR_20' ) end [2024-12-20 17:01:21] Production.INFO: ProcessCDR(1,14064214,1,1,2) [2024-12-20 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064214', 'tblTempUsageDetail_20' ) start [2024-12-20 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064214', 'tblTempUsageDetail_20' ) end [2024-12-20 17:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:01:25] Production.INFO: ==29006== Releasing lock... [2024-12-20 17:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:01:25] Production.INFO: 64.75 MB #Memory Used# [2024-12-20 17:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:02:04 [end_date_ymd] => 2024-12-20 17:02:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:02:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:02:18] Production.INFO: count ==4894 [2024-12-20 17:02:20] Production.ERROR: pbx CDR StartTime 2024-12-20 14:02:04 - End Time 2024-12-20 17:02:04 [2024-12-20 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064219', 'tblTempUsageDetail_20' ) start [2024-12-20 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064219', 'tblTempUsageDetail_20' ) end [2024-12-20 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064219', 'tblTempVendorCDR_20' ) start [2024-12-20 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064219', 'tblTempVendorCDR_20' ) end [2024-12-20 17:02:21] Production.INFO: ProcessCDR(1,14064219,1,1,2) [2024-12-20 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064219', 'tblTempUsageDetail_20' ) start [2024-12-20 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064219', 'tblTempUsageDetail_20' ) end [2024-12-20 17:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:02:25] Production.INFO: ==29082== Releasing lock... [2024-12-20 17:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:02:25] Production.INFO: 64.75 MB #Memory Used# [2024-12-20 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:03:05 [end_date_ymd] => 2024-12-20 17:03:05 [RateCDR] => 1 ) [2024-12-20 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:03:05' and `end` < '2024-12-20 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:03:21] Production.INFO: count ==4871 [2024-12-20 17:03:23] Production.ERROR: pbx CDR StartTime 2024-12-20 14:03:05 - End Time 2024-12-20 17:03:05 [2024-12-20 17:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064224', 'tblTempUsageDetail_20' ) start [2024-12-20 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064224', 'tblTempUsageDetail_20' ) end [2024-12-20 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064224', 'tblTempVendorCDR_20' ) start [2024-12-20 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064224', 'tblTempVendorCDR_20' ) end [2024-12-20 17:03:23] Production.INFO: ProcessCDR(1,14064224,1,1,2) [2024-12-20 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064224', 'tblTempUsageDetail_20' ) start [2024-12-20 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064224', 'tblTempUsageDetail_20' ) end [2024-12-20 17:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:03:27] Production.INFO: ==29159== Releasing lock... [2024-12-20 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:03:27] Production.INFO: 64.5 MB #Memory Used# [2024-12-20 17:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:04:04 [end_date_ymd] => 2024-12-20 17:04:04 [RateCDR] => 1 ) [2024-12-20 17:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:04:04' and `end` < '2024-12-20 17:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:04:22] Production.INFO: count ==4856 [2024-12-20 17:04:24] Production.ERROR: pbx CDR StartTime 2024-12-20 14:04:04 - End Time 2024-12-20 17:04:04 [2024-12-20 17:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064229', 'tblTempUsageDetail_20' ) start [2024-12-20 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064229', 'tblTempUsageDetail_20' ) end [2024-12-20 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064229', 'tblTempVendorCDR_20' ) start [2024-12-20 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064229', 'tblTempVendorCDR_20' ) end [2024-12-20 17:04:24] Production.INFO: ProcessCDR(1,14064229,1,1,2) [2024-12-20 17:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064229', 'tblTempUsageDetail_20' ) start [2024-12-20 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064229', 'tblTempUsageDetail_20' ) end [2024-12-20 17:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:04:28] Production.INFO: ==29236== Releasing lock... [2024-12-20 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:04:28] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:05:05 [end_date_ymd] => 2024-12-20 17:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:05:20] Production.INFO: count ==4847 [2024-12-20 17:05:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:05:05 - End Time 2024-12-20 17:05:05 [2024-12-20 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064234', 'tblTempUsageDetail_20' ) start [2024-12-20 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064234', 'tblTempUsageDetail_20' ) end [2024-12-20 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064234', 'tblTempVendorCDR_20' ) start [2024-12-20 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064234', 'tblTempVendorCDR_20' ) end [2024-12-20 17:05:21] Production.INFO: ProcessCDR(1,14064234,1,1,2) [2024-12-20 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064234', 'tblTempUsageDetail_20' ) start [2024-12-20 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064234', 'tblTempUsageDetail_20' ) end [2024-12-20 17:05:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:05:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:05:26] Production.INFO: ==29314== Releasing lock... [2024-12-20 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:05:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-20 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:06:05 [end_date_ymd] => 2024-12-20 17:06:05 [RateCDR] => 1 ) [2024-12-20 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:06:05' and `end` < '2024-12-20 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:06:27] Production.INFO: count ==4818 [2024-12-20 17:06:29] Production.ERROR: pbx CDR StartTime 2024-12-20 14:06:05 - End Time 2024-12-20 17:06:05 [2024-12-20 17:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064239', 'tblTempUsageDetail_20' ) start [2024-12-20 17:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064239', 'tblTempUsageDetail_20' ) end [2024-12-20 17:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064239', 'tblTempVendorCDR_20' ) start [2024-12-20 17:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064239', 'tblTempVendorCDR_20' ) end [2024-12-20 17:06:29] Production.INFO: ProcessCDR(1,14064239,1,1,2) [2024-12-20 17:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064239', 'tblTempUsageDetail_20' ) start [2024-12-20 17:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064239', 'tblTempUsageDetail_20' ) end [2024-12-20 17:06:34] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:06:34] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:06:34] Production.INFO: ==29390== Releasing lock... [2024-12-20 17:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:06:34] Production.INFO: 64 MB #Memory Used# [2024-12-20 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:07:04 [end_date_ymd] => 2024-12-20 17:07:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:07:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:07:25] Production.INFO: count ==4804 [2024-12-20 17:07:27] Production.ERROR: pbx CDR StartTime 2024-12-20 14:07:04 - End Time 2024-12-20 17:07:04 [2024-12-20 17:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064244', 'tblTempUsageDetail_20' ) start [2024-12-20 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064244', 'tblTempUsageDetail_20' ) end [2024-12-20 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064244', 'tblTempVendorCDR_20' ) start [2024-12-20 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064244', 'tblTempVendorCDR_20' ) end [2024-12-20 17:07:27] Production.INFO: ProcessCDR(1,14064244,1,1,2) [2024-12-20 17:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064244', 'tblTempUsageDetail_20' ) start [2024-12-20 17:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064244', 'tblTempUsageDetail_20' ) end [2024-12-20 17:07:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:07:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:07:31] Production.INFO: ==29461== Releasing lock... [2024-12-20 17:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:07:31] Production.INFO: 64 MB #Memory Used# [2024-12-20 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:08:05 [end_date_ymd] => 2024-12-20 17:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:08:24] Production.INFO: count ==4816 [2024-12-20 17:08:26] Production.ERROR: pbx CDR StartTime 2024-12-20 14:08:05 - End Time 2024-12-20 17:08:05 [2024-12-20 17:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064249', 'tblTempUsageDetail_20' ) start [2024-12-20 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064249', 'tblTempUsageDetail_20' ) end [2024-12-20 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064249', 'tblTempVendorCDR_20' ) start [2024-12-20 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064249', 'tblTempVendorCDR_20' ) end [2024-12-20 17:08:26] Production.INFO: ProcessCDR(1,14064249,1,1,2) [2024-12-20 17:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064249', 'tblTempUsageDetail_20' ) start [2024-12-20 17:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064249', 'tblTempUsageDetail_20' ) end [2024-12-20 17:08:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:08:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:08:31] Production.INFO: ==29571== Releasing lock... [2024-12-20 17:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:08:31] Production.INFO: 64 MB #Memory Used# [2024-12-20 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:09:04 [end_date_ymd] => 2024-12-20 17:09:04 [RateCDR] => 1 ) [2024-12-20 17:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:09:04' and `end` < '2024-12-20 17:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:09:21] Production.INFO: count ==4814 [2024-12-20 17:09:22] Production.ERROR: pbx CDR StartTime 2024-12-20 14:09:04 - End Time 2024-12-20 17:09:04 [2024-12-20 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064254', 'tblTempUsageDetail_20' ) start [2024-12-20 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064254', 'tblTempUsageDetail_20' ) end [2024-12-20 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064254', 'tblTempVendorCDR_20' ) start [2024-12-20 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064254', 'tblTempVendorCDR_20' ) end [2024-12-20 17:09:23] Production.INFO: ProcessCDR(1,14064254,1,1,2) [2024-12-20 17:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064254', 'tblTempUsageDetail_20' ) start [2024-12-20 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064254', 'tblTempUsageDetail_20' ) end [2024-12-20 17:09:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:09:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:09:27] Production.INFO: ==29688== Releasing lock... [2024-12-20 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:09:27] Production.INFO: 64 MB #Memory Used# [2024-12-20 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:10:06 [end_date_ymd] => 2024-12-20 17:10:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:10:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:10:31] Production.INFO: count ==4821 [2024-12-20 17:10:33] Production.ERROR: pbx CDR StartTime 2024-12-20 14:10:06 - End Time 2024-12-20 17:10:06 [2024-12-20 17:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064259', 'tblTempUsageDetail_20' ) start [2024-12-20 17:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064259', 'tblTempUsageDetail_20' ) end [2024-12-20 17:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064259', 'tblTempVendorCDR_20' ) start [2024-12-20 17:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064259', 'tblTempVendorCDR_20' ) end [2024-12-20 17:10:33] Production.INFO: ProcessCDR(1,14064259,1,1,2) [2024-12-20 17:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064259', 'tblTempUsageDetail_20' ) start [2024-12-20 17:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064259', 'tblTempUsageDetail_20' ) end [2024-12-20 17:10:38] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:10:38] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:10:38] Production.INFO: ==29768== Releasing lock... [2024-12-20 17:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:10:38] Production.INFO: 64 MB #Memory Used# [2024-12-20 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:11:04 [end_date_ymd] => 2024-12-20 17:11:04 [RateCDR] => 1 ) [2024-12-20 17:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:11:04' and `end` < '2024-12-20 17:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:11:27] Production.INFO: count ==4785 [2024-12-20 17:11:29] Production.ERROR: pbx CDR StartTime 2024-12-20 14:11:04 - End Time 2024-12-20 17:11:04 [2024-12-20 17:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064265', 'tblTempUsageDetail_20' ) start [2024-12-20 17:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064265', 'tblTempUsageDetail_20' ) end [2024-12-20 17:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064265', 'tblTempVendorCDR_20' ) start [2024-12-20 17:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064265', 'tblTempVendorCDR_20' ) end [2024-12-20 17:11:29] Production.INFO: ProcessCDR(1,14064265,1,1,2) [2024-12-20 17:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064265', 'tblTempUsageDetail_20' ) start [2024-12-20 17:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064265', 'tblTempUsageDetail_20' ) end [2024-12-20 17:11:32] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:11:32] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:11:32] Production.INFO: ==29852== Releasing lock... [2024-12-20 17:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:11:32] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:12:05 [end_date_ymd] => 2024-12-20 17:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:12:25] Production.INFO: count ==4784 [2024-12-20 17:12:27] Production.ERROR: pbx CDR StartTime 2024-12-20 14:12:05 - End Time 2024-12-20 17:12:05 [2024-12-20 17:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064270', 'tblTempUsageDetail_20' ) start [2024-12-20 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064270', 'tblTempUsageDetail_20' ) end [2024-12-20 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064270', 'tblTempVendorCDR_20' ) start [2024-12-20 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064270', 'tblTempVendorCDR_20' ) end [2024-12-20 17:12:27] Production.INFO: ProcessCDR(1,14064270,1,1,2) [2024-12-20 17:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064270', 'tblTempUsageDetail_20' ) start [2024-12-20 17:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064270', 'tblTempUsageDetail_20' ) end [2024-12-20 17:12:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:12:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:12:31] Production.INFO: ==29959== Releasing lock... [2024-12-20 17:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:12:31] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:13:04 [end_date_ymd] => 2024-12-20 17:13:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:13:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:13:25] Production.INFO: count ==4780 [2024-12-20 17:13:27] Production.ERROR: pbx CDR StartTime 2024-12-20 14:13:04 - End Time 2024-12-20 17:13:04 [2024-12-20 17:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064275', 'tblTempUsageDetail_20' ) start [2024-12-20 17:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064275', 'tblTempUsageDetail_20' ) end [2024-12-20 17:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064275', 'tblTempVendorCDR_20' ) start [2024-12-20 17:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064275', 'tblTempVendorCDR_20' ) end [2024-12-20 17:13:27] Production.INFO: ProcessCDR(1,14064275,1,1,2) [2024-12-20 17:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064275', 'tblTempUsageDetail_20' ) start [2024-12-20 17:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064275', 'tblTempUsageDetail_20' ) end [2024-12-20 17:13:33] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:13:33] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:13:33] Production.INFO: ==30062== Releasing lock... [2024-12-20 17:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:13:33] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:14:05 [end_date_ymd] => 2024-12-20 17:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:14:19] Production.INFO: count ==4776 [2024-12-20 17:14:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:14:05 - End Time 2024-12-20 17:14:05 [2024-12-20 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064280', 'tblTempUsageDetail_20' ) start [2024-12-20 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064280', 'tblTempUsageDetail_20' ) end [2024-12-20 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064280', 'tblTempVendorCDR_20' ) start [2024-12-20 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064280', 'tblTempVendorCDR_20' ) end [2024-12-20 17:14:21] Production.INFO: ProcessCDR(1,14064280,1,1,2) [2024-12-20 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064280', 'tblTempUsageDetail_20' ) start [2024-12-20 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064280', 'tblTempUsageDetail_20' ) end [2024-12-20 17:14:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:14:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:14:27] Production.INFO: ==30159== Releasing lock... [2024-12-20 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:14:27] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:15:05 [end_date_ymd] => 2024-12-20 17:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:15:18] Production.INFO: count ==4766 [2024-12-20 17:15:20] Production.ERROR: pbx CDR StartTime 2024-12-20 14:15:05 - End Time 2024-12-20 17:15:05 [2024-12-20 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064285', 'tblTempUsageDetail_20' ) start [2024-12-20 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064285', 'tblTempUsageDetail_20' ) end [2024-12-20 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064285', 'tblTempVendorCDR_20' ) start [2024-12-20 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064285', 'tblTempVendorCDR_20' ) end [2024-12-20 17:15:20] Production.INFO: ProcessCDR(1,14064285,1,1,2) [2024-12-20 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064285', 'tblTempUsageDetail_20' ) start [2024-12-20 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064285', 'tblTempUsageDetail_20' ) end [2024-12-20 17:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:15:23] Production.INFO: ==30291== Releasing lock... [2024-12-20 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:15:23] Production.INFO: 63.75 MB #Memory Used# [2024-12-20 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:16:04 [end_date_ymd] => 2024-12-20 17:16:04 [RateCDR] => 1 ) [2024-12-20 17:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:16:04' and `end` < '2024-12-20 17:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:16:19] Production.INFO: count ==4738 [2024-12-20 17:16:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:16:04 - End Time 2024-12-20 17:16:04 [2024-12-20 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064290', 'tblTempUsageDetail_20' ) start [2024-12-20 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064290', 'tblTempUsageDetail_20' ) end [2024-12-20 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064290', 'tblTempVendorCDR_20' ) start [2024-12-20 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064290', 'tblTempVendorCDR_20' ) end [2024-12-20 17:16:21] Production.INFO: ProcessCDR(1,14064290,1,1,2) [2024-12-20 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064290', 'tblTempUsageDetail_20' ) start [2024-12-20 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064290', 'tblTempUsageDetail_20' ) end [2024-12-20 17:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:16:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:16:26] Production.INFO: ==30393== Releasing lock... [2024-12-20 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:16:26] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:17:05 [end_date_ymd] => 2024-12-20 17:17:05 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:17:05' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:17:21] Production.INFO: count ==4706 [2024-12-20 17:17:23] Production.ERROR: pbx CDR StartTime 2024-12-20 14:17:05 - End Time 2024-12-20 17:17:05 [2024-12-20 17:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064295', 'tblTempUsageDetail_20' ) start [2024-12-20 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064295', 'tblTempUsageDetail_20' ) end [2024-12-20 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064295', 'tblTempVendorCDR_20' ) start [2024-12-20 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064295', 'tblTempVendorCDR_20' ) end [2024-12-20 17:17:23] Production.INFO: ProcessCDR(1,14064295,1,1,2) [2024-12-20 17:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064295', 'tblTempUsageDetail_20' ) start [2024-12-20 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064295', 'tblTempUsageDetail_20' ) end [2024-12-20 17:17:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:17:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:17:27] Production.INFO: ==30495== Releasing lock... [2024-12-20 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:17:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:18:04 [end_date_ymd] => 2024-12-20 17:18:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:18:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:18:18] Production.INFO: count ==4687 [2024-12-20 17:18:20] Production.ERROR: pbx CDR StartTime 2024-12-20 14:18:04 - End Time 2024-12-20 17:18:04 [2024-12-20 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064300', 'tblTempUsageDetail_20' ) start [2024-12-20 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064300', 'tblTempUsageDetail_20' ) end [2024-12-20 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064300', 'tblTempVendorCDR_20' ) start [2024-12-20 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064300', 'tblTempVendorCDR_20' ) end [2024-12-20 17:18:20] Production.INFO: ProcessCDR(1,14064300,1,1,2) [2024-12-20 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064300', 'tblTempUsageDetail_20' ) start [2024-12-20 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064300', 'tblTempUsageDetail_20' ) end [2024-12-20 17:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:18:25] Production.INFO: ==30594== Releasing lock... [2024-12-20 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:18:25] Production.INFO: 63 MB #Memory Used# [2024-12-20 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:19:05 [end_date_ymd] => 2024-12-20 17:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:19:24] Production.INFO: count ==4681 [2024-12-20 17:19:25] Production.ERROR: pbx CDR StartTime 2024-12-20 14:19:05 - End Time 2024-12-20 17:19:05 [2024-12-20 17:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064305', 'tblTempUsageDetail_20' ) start [2024-12-20 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064305', 'tblTempUsageDetail_20' ) end [2024-12-20 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064305', 'tblTempVendorCDR_20' ) start [2024-12-20 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064305', 'tblTempVendorCDR_20' ) end [2024-12-20 17:19:26] Production.INFO: ProcessCDR(1,14064305,1,1,2) [2024-12-20 17:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064305', 'tblTempUsageDetail_20' ) start [2024-12-20 17:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064305', 'tblTempUsageDetail_20' ) end [2024-12-20 17:19:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:19:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:19:30] Production.INFO: ==30695== Releasing lock... [2024-12-20 17:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:19:30] Production.INFO: 63 MB #Memory Used# [2024-12-20 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:20:06 [end_date_ymd] => 2024-12-20 17:20:06 [RateCDR] => 1 ) [2024-12-20 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:20:06' and `end` < '2024-12-20 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:20:24] Production.INFO: count ==4675 [2024-12-20 17:20:26] Production.ERROR: pbx CDR StartTime 2024-12-20 14:20:06 - End Time 2024-12-20 17:20:06 [2024-12-20 17:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064310', 'tblTempUsageDetail_20' ) start [2024-12-20 17:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064310', 'tblTempUsageDetail_20' ) end [2024-12-20 17:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064310', 'tblTempVendorCDR_20' ) start [2024-12-20 17:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064310', 'tblTempVendorCDR_20' ) end [2024-12-20 17:20:26] Production.INFO: ProcessCDR(1,14064310,1,1,2) [2024-12-20 17:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064310', 'tblTempUsageDetail_20' ) start [2024-12-20 17:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064310', 'tblTempUsageDetail_20' ) end [2024-12-20 17:20:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:20:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:20:31] Production.INFO: ==30792== Releasing lock... [2024-12-20 17:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:20:31] Production.INFO: 63 MB #Memory Used# [2024-12-20 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:21:04 [end_date_ymd] => 2024-12-20 17:21:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:21:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:21:17] Production.INFO: count ==4712 [2024-12-20 17:21:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:21:04 - End Time 2024-12-20 17:21:04 [2024-12-20 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064316', 'tblTempUsageDetail_20' ) start [2024-12-20 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064316', 'tblTempUsageDetail_20' ) end [2024-12-20 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064316', 'tblTempVendorCDR_20' ) start [2024-12-20 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064316', 'tblTempVendorCDR_20' ) end [2024-12-20 17:21:19] Production.INFO: ProcessCDR(1,14064316,1,1,2) [2024-12-20 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064316', 'tblTempUsageDetail_20' ) start [2024-12-20 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064316', 'tblTempUsageDetail_20' ) end [2024-12-20 17:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:21:24] Production.INFO: ==30892== Releasing lock... [2024-12-20 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:21:24] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:22:05 [end_date_ymd] => 2024-12-20 17:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:22:24] Production.INFO: count ==4723 [2024-12-20 17:22:26] Production.ERROR: pbx CDR StartTime 2024-12-20 14:22:05 - End Time 2024-12-20 17:22:05 [2024-12-20 17:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064321', 'tblTempUsageDetail_20' ) start [2024-12-20 17:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064321', 'tblTempUsageDetail_20' ) end [2024-12-20 17:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064321', 'tblTempVendorCDR_20' ) start [2024-12-20 17:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064321', 'tblTempVendorCDR_20' ) end [2024-12-20 17:22:26] Production.INFO: ProcessCDR(1,14064321,1,1,2) [2024-12-20 17:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064321', 'tblTempUsageDetail_20' ) start [2024-12-20 17:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064321', 'tblTempUsageDetail_20' ) end [2024-12-20 17:22:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:22:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:22:31] Production.INFO: ==30991== Releasing lock... [2024-12-20 17:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:22:31] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:23:05 [end_date_ymd] => 2024-12-20 17:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:23:25] Production.INFO: count ==4727 [2024-12-20 17:23:26] Production.ERROR: pbx CDR StartTime 2024-12-20 14:23:05 - End Time 2024-12-20 17:23:05 [2024-12-20 17:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064326', 'tblTempUsageDetail_20' ) start [2024-12-20 17:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064326', 'tblTempUsageDetail_20' ) end [2024-12-20 17:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064326', 'tblTempVendorCDR_20' ) start [2024-12-20 17:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064326', 'tblTempVendorCDR_20' ) end [2024-12-20 17:23:26] Production.INFO: ProcessCDR(1,14064326,1,1,2) [2024-12-20 17:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064326', 'tblTempUsageDetail_20' ) start [2024-12-20 17:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064326', 'tblTempUsageDetail_20' ) end [2024-12-20 17:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:23:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:23:31] Production.INFO: ==31093== Releasing lock... [2024-12-20 17:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:23:31] Production.INFO: 63.5 MB #Memory Used# [2024-12-20 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:24:05 [end_date_ymd] => 2024-12-20 17:24:05 [RateCDR] => 1 ) [2024-12-20 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:24:05' and `end` < '2024-12-20 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:24:21] Production.INFO: count ==4715 [2024-12-20 17:24:22] Production.ERROR: pbx CDR StartTime 2024-12-20 14:24:05 - End Time 2024-12-20 17:24:05 [2024-12-20 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064331', 'tblTempUsageDetail_20' ) start [2024-12-20 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064331', 'tblTempUsageDetail_20' ) end [2024-12-20 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064331', 'tblTempVendorCDR_20' ) start [2024-12-20 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064331', 'tblTempVendorCDR_20' ) end [2024-12-20 17:24:22] Production.INFO: ProcessCDR(1,14064331,1,1,2) [2024-12-20 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064331', 'tblTempUsageDetail_20' ) start [2024-12-20 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064331', 'tblTempUsageDetail_20' ) end [2024-12-20 17:24:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:24:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:24:27] Production.INFO: ==31193== Releasing lock... [2024-12-20 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:24:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-20 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:25:05 [end_date_ymd] => 2024-12-20 17:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:25:18] Production.INFO: count ==4687 [2024-12-20 17:25:20] Production.ERROR: pbx CDR StartTime 2024-12-20 14:25:05 - End Time 2024-12-20 17:25:05 [2024-12-20 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064336', 'tblTempUsageDetail_20' ) start [2024-12-20 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064336', 'tblTempUsageDetail_20' ) end [2024-12-20 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064336', 'tblTempVendorCDR_20' ) start [2024-12-20 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064336', 'tblTempVendorCDR_20' ) end [2024-12-20 17:25:20] Production.INFO: ProcessCDR(1,14064336,1,1,2) [2024-12-20 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064336', 'tblTempUsageDetail_20' ) start [2024-12-20 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064336', 'tblTempUsageDetail_20' ) end [2024-12-20 17:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:25:24] Production.INFO: ==31329== Releasing lock... [2024-12-20 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:25:24] Production.INFO: 63 MB #Memory Used# [2024-12-20 17:26:18] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:26:18 [end_date_ymd] => 2024-12-20 17:26:18 [RateCDR] => 1 ) [2024-12-20 17:26:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:26:18' and `end` < '2024-12-20 17:26:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:26:34] Production.INFO: count ==4675 [2024-12-20 17:27:32] Production.ERROR: pbx CDR StartTime 2024-12-20 14:26:18 - End Time 2024-12-20 17:26:18 [2024-12-20 17:27:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064341', 'tblTempUsageDetail_20' ) start [2024-12-20 17:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064341', 'tblTempUsageDetail_20' ) end [2024-12-20 17:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064341', 'tblTempVendorCDR_20' ) start [2024-12-20 17:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064341', 'tblTempVendorCDR_20' ) end [2024-12-20 17:27:37] Production.INFO: ProcessCDR(1,14064341,1,1,2) [2024-12-20 17:27:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:27:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:27:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:27:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:27:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064341', 'tblTempUsageDetail_20' ) start [2024-12-20 17:27:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064341', 'tblTempUsageDetail_20' ) end [2024-12-20 17:27:57] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:27:57] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:27:57] Production.INFO: ==31424== Releasing lock... [2024-12-20 17:27:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:27:57] Production.INFO: 63 MB #Memory Used# [2024-12-20 17:28:14] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:28:14 [end_date_ymd] => 2024-12-20 17:28:14 [RateCDR] => 1 ) [2024-12-20 17:28:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:28:14' and `end` < '2024-12-20 17:28:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:28:32] Production.INFO: count ==4661 [2024-12-20 17:29:05] Production.ERROR: pbx CDR StartTime 2024-12-20 14:28:14 - End Time 2024-12-20 17:28:14 [2024-12-20 17:29:05] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:29:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064349', 'tblTempUsageDetail_20' ) start [2024-12-20 17:29:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064349', 'tblTempUsageDetail_20' ) end [2024-12-20 17:29:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064349', 'tblTempVendorCDR_20' ) start [2024-12-20 17:29:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064349', 'tblTempVendorCDR_20' ) end [2024-12-20 17:29:10] Production.INFO: ProcessCDR(1,14064349,1,1,2) [2024-12-20 17:29:10] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:29:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064349', 'tblTempUsageDetail_20' ) start [2024-12-20 17:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064349', 'tblTempUsageDetail_20' ) end [2024-12-20 17:29:41] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:29:42] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:29:44] Production.INFO: ==31609== Releasing lock... [2024-12-20 17:29:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:29:44] Production.INFO: 63 MB #Memory Used# [2024-12-20 17:30:30] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:30:30 [end_date_ymd] => 2024-12-20 17:30:30 [RateCDR] => 1 ) [2024-12-20 17:30:30] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:30:30' and `end` < '2024-12-20 17:30:30' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:30:45] Production.INFO: count ==4650 [2024-12-20 17:31:17] Production.ERROR: pbx CDR StartTime 2024-12-20 14:30:30 - End Time 2024-12-20 17:30:30 [2024-12-20 17:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064358', 'tblTempUsageDetail_20' ) start [2024-12-20 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064358', 'tblTempUsageDetail_20' ) end [2024-12-20 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064358', 'tblTempVendorCDR_20' ) start [2024-12-20 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064358', 'tblTempVendorCDR_20' ) end [2024-12-20 17:31:22] Production.INFO: ProcessCDR(1,14064358,1,1,2) [2024-12-20 17:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:31:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:31:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064358', 'tblTempUsageDetail_20' ) start [2024-12-20 17:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064358', 'tblTempUsageDetail_20' ) end [2024-12-20 17:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:32:25] Production.INFO: ==31798== Releasing lock... [2024-12-20 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:32:25] Production.INFO: 62.75 MB #Memory Used# [2024-12-20 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:33:05 [end_date_ymd] => 2024-12-20 17:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:33:18] Production.INFO: count ==4630 [2024-12-20 17:33:20] Production.ERROR: pbx CDR StartTime 2024-12-20 14:33:05 - End Time 2024-12-20 17:33:05 [2024-12-20 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064370', 'tblTempUsageDetail_20' ) start [2024-12-20 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064370', 'tblTempUsageDetail_20' ) end [2024-12-20 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064370', 'tblTempVendorCDR_20' ) start [2024-12-20 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064370', 'tblTempVendorCDR_20' ) end [2024-12-20 17:33:20] Production.INFO: ProcessCDR(1,14064370,1,1,2) [2024-12-20 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064370', 'tblTempUsageDetail_20' ) start [2024-12-20 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064370', 'tblTempUsageDetail_20' ) end [2024-12-20 17:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:33:24] Production.INFO: ==32102== Releasing lock... [2024-12-20 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:33:24] Production.INFO: 62.75 MB #Memory Used# [2024-12-20 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:34:04 [end_date_ymd] => 2024-12-20 17:34:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:34:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:34:17] Production.INFO: count ==4613 [2024-12-20 17:34:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:34:04 - End Time 2024-12-20 17:34:04 [2024-12-20 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064375', 'tblTempUsageDetail_20' ) start [2024-12-20 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064375', 'tblTempUsageDetail_20' ) end [2024-12-20 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064375', 'tblTempVendorCDR_20' ) start [2024-12-20 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064375', 'tblTempVendorCDR_20' ) end [2024-12-20 17:34:19] Production.INFO: ProcessCDR(1,14064375,1,1,2) [2024-12-20 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064375', 'tblTempUsageDetail_20' ) start [2024-12-20 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064375', 'tblTempUsageDetail_20' ) end [2024-12-20 17:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:34:24] Production.INFO: ==32206== Releasing lock... [2024-12-20 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:34:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-20 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:35:05 [end_date_ymd] => 2024-12-20 17:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:35:17] Production.INFO: count ==4589 [2024-12-20 17:35:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:35:05 - End Time 2024-12-20 17:35:05 [2024-12-20 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064380', 'tblTempUsageDetail_20' ) start [2024-12-20 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064380', 'tblTempUsageDetail_20' ) end [2024-12-20 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064380', 'tblTempVendorCDR_20' ) start [2024-12-20 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064380', 'tblTempVendorCDR_20' ) end [2024-12-20 17:35:19] Production.INFO: ProcessCDR(1,14064380,1,1,2) [2024-12-20 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064380', 'tblTempUsageDetail_20' ) start [2024-12-20 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064380', 'tblTempUsageDetail_20' ) end [2024-12-20 17:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:35:23] Production.INFO: ==32312== Releasing lock... [2024-12-20 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:35:23] Production.INFO: 62.25 MB #Memory Used# [2024-12-20 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:36:05 [end_date_ymd] => 2024-12-20 17:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:36:19] Production.INFO: count ==4578 [2024-12-20 17:36:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:36:05 - End Time 2024-12-20 17:36:05 [2024-12-20 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064385', 'tblTempUsageDetail_20' ) start [2024-12-20 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064385', 'tblTempUsageDetail_20' ) end [2024-12-20 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064385', 'tblTempVendorCDR_20' ) start [2024-12-20 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064385', 'tblTempVendorCDR_20' ) end [2024-12-20 17:36:21] Production.INFO: ProcessCDR(1,14064385,1,1,2) [2024-12-20 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064385', 'tblTempUsageDetail_20' ) start [2024-12-20 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064385', 'tblTempUsageDetail_20' ) end [2024-12-20 17:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:36:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:36:26] Production.INFO: ==32418== Releasing lock... [2024-12-20 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:36:26] Production.INFO: 62.25 MB #Memory Used# [2024-12-20 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:37:05 [end_date_ymd] => 2024-12-20 17:37:05 [RateCDR] => 1 ) [2024-12-20 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:37:05' and `end` < '2024-12-20 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:37:29] Production.INFO: count ==4573 [2024-12-20 17:37:30] Production.ERROR: pbx CDR StartTime 2024-12-20 14:37:05 - End Time 2024-12-20 17:37:05 [2024-12-20 17:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064390', 'tblTempUsageDetail_20' ) start [2024-12-20 17:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064390', 'tblTempUsageDetail_20' ) end [2024-12-20 17:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064390', 'tblTempVendorCDR_20' ) start [2024-12-20 17:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064390', 'tblTempVendorCDR_20' ) end [2024-12-20 17:37:30] Production.INFO: ProcessCDR(1,14064390,1,1,2) [2024-12-20 17:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064390', 'tblTempUsageDetail_20' ) start [2024-12-20 17:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064390', 'tblTempUsageDetail_20' ) end [2024-12-20 17:37:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:37:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:37:35] Production.INFO: ==32525== Releasing lock... [2024-12-20 17:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:37:35] Production.INFO: 62.25 MB #Memory Used# [2024-12-20 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:38:05 [end_date_ymd] => 2024-12-20 17:38:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:38:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:38:24] Production.INFO: count ==4565 [2024-12-20 17:38:25] Production.ERROR: pbx CDR StartTime 2024-12-20 14:38:05 - End Time 2024-12-20 17:38:05 [2024-12-20 17:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064395', 'tblTempUsageDetail_20' ) start [2024-12-20 17:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064395', 'tblTempUsageDetail_20' ) end [2024-12-20 17:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064395', 'tblTempVendorCDR_20' ) start [2024-12-20 17:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064395', 'tblTempVendorCDR_20' ) end [2024-12-20 17:38:25] Production.INFO: ProcessCDR(1,14064395,1,1,2) [2024-12-20 17:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064395', 'tblTempUsageDetail_20' ) start [2024-12-20 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064395', 'tblTempUsageDetail_20' ) end [2024-12-20 17:38:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:38:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:38:28] Production.INFO: ==32627== Releasing lock... [2024-12-20 17:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:38:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-20 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:39:04 [end_date_ymd] => 2024-12-20 17:39:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:39:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:39:20] Production.INFO: count ==4547 [2024-12-20 17:39:22] Production.ERROR: pbx CDR StartTime 2024-12-20 14:39:04 - End Time 2024-12-20 17:39:04 [2024-12-20 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064400', 'tblTempUsageDetail_20' ) start [2024-12-20 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064400', 'tblTempUsageDetail_20' ) end [2024-12-20 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064400', 'tblTempVendorCDR_20' ) start [2024-12-20 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064400', 'tblTempVendorCDR_20' ) end [2024-12-20 17:39:22] Production.INFO: ProcessCDR(1,14064400,1,1,2) [2024-12-20 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064400', 'tblTempUsageDetail_20' ) start [2024-12-20 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064400', 'tblTempUsageDetail_20' ) end [2024-12-20 17:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:39:25] Production.INFO: ==32726== Releasing lock... [2024-12-20 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:39:25] Production.INFO: 62 MB #Memory Used# [2024-12-20 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:40:05 [end_date_ymd] => 2024-12-20 17:40:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:40:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:40:18] Production.INFO: count ==4533 [2024-12-20 17:40:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:40:05 - End Time 2024-12-20 17:40:05 [2024-12-20 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064405', 'tblTempUsageDetail_20' ) start [2024-12-20 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064405', 'tblTempUsageDetail_20' ) end [2024-12-20 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064405', 'tblTempVendorCDR_20' ) start [2024-12-20 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064405', 'tblTempVendorCDR_20' ) end [2024-12-20 17:40:20] Production.INFO: ProcessCDR(1,14064405,1,1,2) [2024-12-20 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064405', 'tblTempUsageDetail_20' ) start [2024-12-20 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064405', 'tblTempUsageDetail_20' ) end [2024-12-20 17:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:40:24] Production.INFO: ==392== Releasing lock... [2024-12-20 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:40:24] Production.INFO: 62 MB #Memory Used# [2024-12-20 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:41:05 [end_date_ymd] => 2024-12-20 17:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:41:21] Production.INFO: count ==4532 [2024-12-20 17:41:22] Production.ERROR: pbx CDR StartTime 2024-12-20 14:41:05 - End Time 2024-12-20 17:41:05 [2024-12-20 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064411', 'tblTempUsageDetail_20' ) start [2024-12-20 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064411', 'tblTempUsageDetail_20' ) end [2024-12-20 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064411', 'tblTempVendorCDR_20' ) start [2024-12-20 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064411', 'tblTempVendorCDR_20' ) end [2024-12-20 17:41:22] Production.INFO: ProcessCDR(1,14064411,1,1,2) [2024-12-20 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064411', 'tblTempUsageDetail_20' ) start [2024-12-20 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064411', 'tblTempUsageDetail_20' ) end [2024-12-20 17:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:41:27] Production.INFO: ==551== Releasing lock... [2024-12-20 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:41:27] Production.INFO: 62 MB #Memory Used# [2024-12-20 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:42:04 [end_date_ymd] => 2024-12-20 17:42:04 [RateCDR] => 1 ) [2024-12-20 17:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:42:04' and `end` < '2024-12-20 17:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:42:28] Production.INFO: count ==4533 [2024-12-20 17:42:30] Production.ERROR: pbx CDR StartTime 2024-12-20 14:42:04 - End Time 2024-12-20 17:42:04 [2024-12-20 17:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064416', 'tblTempUsageDetail_20' ) start [2024-12-20 17:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064416', 'tblTempUsageDetail_20' ) end [2024-12-20 17:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064416', 'tblTempVendorCDR_20' ) start [2024-12-20 17:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064416', 'tblTempVendorCDR_20' ) end [2024-12-20 17:42:30] Production.INFO: ProcessCDR(1,14064416,1,1,2) [2024-12-20 17:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064416', 'tblTempUsageDetail_20' ) start [2024-12-20 17:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064416', 'tblTempUsageDetail_20' ) end [2024-12-20 17:42:35] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:42:35] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:42:35] Production.INFO: ==698== Releasing lock... [2024-12-20 17:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:42:35] Production.INFO: 62 MB #Memory Used# [2024-12-20 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:43:05 [end_date_ymd] => 2024-12-20 17:43:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:43:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:43:23] Production.INFO: count ==4539 [2024-12-20 17:43:24] Production.ERROR: pbx CDR StartTime 2024-12-20 14:43:05 - End Time 2024-12-20 17:43:05 [2024-12-20 17:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064421', 'tblTempUsageDetail_20' ) start [2024-12-20 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064421', 'tblTempUsageDetail_20' ) end [2024-12-20 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064421', 'tblTempVendorCDR_20' ) start [2024-12-20 17:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064421', 'tblTempVendorCDR_20' ) end [2024-12-20 17:43:25] Production.INFO: ProcessCDR(1,14064421,1,1,2) [2024-12-20 17:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064421', 'tblTempUsageDetail_20' ) start [2024-12-20 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064421', 'tblTempUsageDetail_20' ) end [2024-12-20 17:43:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:43:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:43:29] Production.INFO: ==812== Releasing lock... [2024-12-20 17:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:43:29] Production.INFO: 62 MB #Memory Used# [2024-12-20 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:44:05 [end_date_ymd] => 2024-12-20 17:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:44:17] Production.INFO: count ==4518 [2024-12-20 17:44:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:44:05 - End Time 2024-12-20 17:44:05 [2024-12-20 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064426', 'tblTempUsageDetail_20' ) start [2024-12-20 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064426', 'tblTempUsageDetail_20' ) end [2024-12-20 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064426', 'tblTempVendorCDR_20' ) start [2024-12-20 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064426', 'tblTempVendorCDR_20' ) end [2024-12-20 17:44:19] Production.INFO: ProcessCDR(1,14064426,1,1,2) [2024-12-20 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064426', 'tblTempUsageDetail_20' ) start [2024-12-20 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064426', 'tblTempUsageDetail_20' ) end [2024-12-20 17:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:44:22] Production.INFO: ==899== Releasing lock... [2024-12-20 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:44:22] Production.INFO: 61.75 MB #Memory Used# [2024-12-20 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:45:04 [end_date_ymd] => 2024-12-20 17:45:04 [RateCDR] => 1 ) [2024-12-20 17:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:45:04' and `end` < '2024-12-20 17:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:45:24] Production.INFO: count ==4482 [2024-12-20 17:45:26] Production.ERROR: pbx CDR StartTime 2024-12-20 14:45:04 - End Time 2024-12-20 17:45:04 [2024-12-20 17:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064431', 'tblTempUsageDetail_20' ) start [2024-12-20 17:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064431', 'tblTempUsageDetail_20' ) end [2024-12-20 17:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064431', 'tblTempVendorCDR_20' ) start [2024-12-20 17:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064431', 'tblTempVendorCDR_20' ) end [2024-12-20 17:45:26] Production.INFO: ProcessCDR(1,14064431,1,1,2) [2024-12-20 17:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064431', 'tblTempUsageDetail_20' ) start [2024-12-20 17:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064431', 'tblTempUsageDetail_20' ) end [2024-12-20 17:45:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:45:31] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:45:31] Production.INFO: ==992== Releasing lock... [2024-12-20 17:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:45:31] Production.INFO: 61.5 MB #Memory Used# [2024-12-20 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:46:05 [end_date_ymd] => 2024-12-20 17:46:05 [RateCDR] => 1 ) [2024-12-20 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:46:05' and `end` < '2024-12-20 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:46:19] Production.INFO: count ==4459 [2024-12-20 17:46:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:46:05 - End Time 2024-12-20 17:46:05 [2024-12-20 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064436', 'tblTempUsageDetail_20' ) start [2024-12-20 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064436', 'tblTempUsageDetail_20' ) end [2024-12-20 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064436', 'tblTempVendorCDR_20' ) start [2024-12-20 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064436', 'tblTempVendorCDR_20' ) end [2024-12-20 17:46:21] Production.INFO: ProcessCDR(1,14064436,1,1,2) [2024-12-20 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064436', 'tblTempUsageDetail_20' ) start [2024-12-20 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064436', 'tblTempUsageDetail_20' ) end [2024-12-20 17:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:46:24] Production.INFO: ==1082== Releasing lock... [2024-12-20 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:46:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-20 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:47:04 [end_date_ymd] => 2024-12-20 17:47:04 [RateCDR] => 1 ) [2024-12-20 17:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 14:47:04' and `end` < '2024-12-20 17:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 17:47:17] Production.INFO: count ==4443 [2024-12-20 17:47:18] Production.ERROR: pbx CDR StartTime 2024-12-20 14:47:04 - End Time 2024-12-20 17:47:04 [2024-12-20 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064441', 'tblTempUsageDetail_20' ) start [2024-12-20 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064441', 'tblTempUsageDetail_20' ) end [2024-12-20 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064441', 'tblTempVendorCDR_20' ) start [2024-12-20 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064441', 'tblTempVendorCDR_20' ) end [2024-12-20 17:47:18] Production.INFO: ProcessCDR(1,14064441,1,1,2) [2024-12-20 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064441', 'tblTempUsageDetail_20' ) start [2024-12-20 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064441', 'tblTempUsageDetail_20' ) end [2024-12-20 17:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:47:23] Production.INFO: ==1177== Releasing lock... [2024-12-20 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:47:23] Production.INFO: 61.25 MB #Memory Used# [2024-12-20 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:48:05 [end_date_ymd] => 2024-12-20 17:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:48:18] Production.INFO: count ==4431 [2024-12-20 17:48:20] Production.ERROR: pbx CDR StartTime 2024-12-20 14:48:05 - End Time 2024-12-20 17:48:05 [2024-12-20 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064446', 'tblTempUsageDetail_20' ) start [2024-12-20 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064446', 'tblTempUsageDetail_20' ) end [2024-12-20 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064446', 'tblTempVendorCDR_20' ) start [2024-12-20 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064446', 'tblTempVendorCDR_20' ) end [2024-12-20 17:48:20] Production.INFO: ProcessCDR(1,14064446,1,1,2) [2024-12-20 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064446', 'tblTempUsageDetail_20' ) start [2024-12-20 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064446', 'tblTempUsageDetail_20' ) end [2024-12-20 17:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:48:24] Production.INFO: ==1286== Releasing lock... [2024-12-20 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:48:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-20 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:49:04 [end_date_ymd] => 2024-12-20 17:49:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:49:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:49:17] Production.INFO: count ==4414 [2024-12-20 17:49:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:49:04 - End Time 2024-12-20 17:49:04 [2024-12-20 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064451', 'tblTempUsageDetail_20' ) start [2024-12-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064451', 'tblTempUsageDetail_20' ) end [2024-12-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064451', 'tblTempVendorCDR_20' ) start [2024-12-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064451', 'tblTempVendorCDR_20' ) end [2024-12-20 17:49:19] Production.INFO: ProcessCDR(1,14064451,1,1,2) [2024-12-20 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064451', 'tblTempUsageDetail_20' ) start [2024-12-20 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064451', 'tblTempUsageDetail_20' ) end [2024-12-20 17:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:49:22] Production.INFO: ==1380== Releasing lock... [2024-12-20 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:49:22] Production.INFO: 61.25 MB #Memory Used# [2024-12-20 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:50:05 [end_date_ymd] => 2024-12-20 17:50:05 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:50:05' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:50:18] Production.INFO: count ==4390 [2024-12-20 17:50:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:50:05 - End Time 2024-12-20 17:50:05 [2024-12-20 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064457', 'tblTempUsageDetail_20' ) start [2024-12-20 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064457', 'tblTempUsageDetail_20' ) end [2024-12-20 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064457', 'tblTempVendorCDR_20' ) start [2024-12-20 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064457', 'tblTempVendorCDR_20' ) end [2024-12-20 17:50:20] Production.INFO: ProcessCDR(1,14064457,1,1,2) [2024-12-20 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064457', 'tblTempUsageDetail_20' ) start [2024-12-20 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064457', 'tblTempUsageDetail_20' ) end [2024-12-20 17:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:50:23] Production.INFO: ==1474== Releasing lock... [2024-12-20 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:50:23] Production.INFO: 60.75 MB #Memory Used# [2024-12-20 17:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:51:04 [end_date_ymd] => 2024-12-20 17:51:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:51:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:51:20] Production.INFO: count ==4343 [2024-12-20 17:51:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:51:04 - End Time 2024-12-20 17:51:04 [2024-12-20 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064462', 'tblTempUsageDetail_20' ) start [2024-12-20 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064462', 'tblTempUsageDetail_20' ) end [2024-12-20 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064462', 'tblTempVendorCDR_20' ) start [2024-12-20 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064462', 'tblTempVendorCDR_20' ) end [2024-12-20 17:51:21] Production.INFO: ProcessCDR(1,14064462,1,1,2) [2024-12-20 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064462', 'tblTempUsageDetail_20' ) start [2024-12-20 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064462', 'tblTempUsageDetail_20' ) end [2024-12-20 17:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:51:26] Production.INFO: ==1604== Releasing lock... [2024-12-20 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:51:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-20 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:52:04 [end_date_ymd] => 2024-12-20 17:52:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:52:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:52:17] Production.INFO: count ==4294 [2024-12-20 17:52:18] Production.ERROR: pbx CDR StartTime 2024-12-20 14:52:04 - End Time 2024-12-20 17:52:04 [2024-12-20 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064467', 'tblTempUsageDetail_20' ) start [2024-12-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064467', 'tblTempUsageDetail_20' ) end [2024-12-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064467', 'tblTempVendorCDR_20' ) start [2024-12-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064467', 'tblTempVendorCDR_20' ) end [2024-12-20 17:52:19] Production.INFO: ProcessCDR(1,14064467,1,1,2) [2024-12-20 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064467', 'tblTempUsageDetail_20' ) start [2024-12-20 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064467', 'tblTempUsageDetail_20' ) end [2024-12-20 17:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:52:22] Production.INFO: ==1697== Releasing lock... [2024-12-20 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:52:22] Production.INFO: 60 MB #Memory Used# [2024-12-20 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:53:05 [end_date_ymd] => 2024-12-20 17:53:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:53:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:53:19] Production.INFO: count ==4257 [2024-12-20 17:53:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:53:05 - End Time 2024-12-20 17:53:05 [2024-12-20 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064472', 'tblTempUsageDetail_20' ) start [2024-12-20 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064472', 'tblTempUsageDetail_20' ) end [2024-12-20 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064472', 'tblTempVendorCDR_20' ) start [2024-12-20 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064472', 'tblTempVendorCDR_20' ) end [2024-12-20 17:53:21] Production.INFO: ProcessCDR(1,14064472,1,1,2) [2024-12-20 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064472', 'tblTempUsageDetail_20' ) start [2024-12-20 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064472', 'tblTempUsageDetail_20' ) end [2024-12-20 17:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:53:25] Production.INFO: ==1795== Releasing lock... [2024-12-20 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:53:25] Production.INFO: 59.75 MB #Memory Used# [2024-12-20 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:54:05 [end_date_ymd] => 2024-12-20 17:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:54:18] Production.INFO: count ==4253 [2024-12-20 17:54:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:54:05 - End Time 2024-12-20 17:54:05 [2024-12-20 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064477', 'tblTempUsageDetail_20' ) start [2024-12-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064477', 'tblTempUsageDetail_20' ) end [2024-12-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064477', 'tblTempVendorCDR_20' ) start [2024-12-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064477', 'tblTempVendorCDR_20' ) end [2024-12-20 17:54:19] Production.INFO: ProcessCDR(1,14064477,1,1,2) [2024-12-20 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064477', 'tblTempUsageDetail_20' ) start [2024-12-20 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064477', 'tblTempUsageDetail_20' ) end [2024-12-20 17:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:54:24] Production.INFO: ==1917== Releasing lock... [2024-12-20 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:54:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-20 17:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:55:04 [end_date_ymd] => 2024-12-20 17:55:04 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:55:04' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:55:17] Production.INFO: count ==4216 [2024-12-20 17:55:18] Production.ERROR: pbx CDR StartTime 2024-12-20 14:55:04 - End Time 2024-12-20 17:55:04 [2024-12-20 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064482', 'tblTempUsageDetail_20' ) start [2024-12-20 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064482', 'tblTempUsageDetail_20' ) end [2024-12-20 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064482', 'tblTempVendorCDR_20' ) start [2024-12-20 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064482', 'tblTempVendorCDR_20' ) end [2024-12-20 17:55:18] Production.INFO: ProcessCDR(1,14064482,1,1,2) [2024-12-20 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064482', 'tblTempUsageDetail_20' ) start [2024-12-20 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064482', 'tblTempUsageDetail_20' ) end [2024-12-20 17:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:55:21] Production.INFO: ==2046== Releasing lock... [2024-12-20 17:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:55:21] Production.INFO: 59.75 MB #Memory Used# [2024-12-20 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:56:06 [end_date_ymd] => 2024-12-20 17:56:06 [RateCDR] => 1 ) [2024-12-20 17: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` >= '2024-12-20 14:56:06' and `end` < '2024-12-20 17: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 ,'') [2024-12-20 17:56:20] Production.INFO: count ==4199 [2024-12-20 17:56:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:56:06 - End Time 2024-12-20 17:56:06 [2024-12-20 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064487', 'tblTempUsageDetail_20' ) start [2024-12-20 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064487', 'tblTempUsageDetail_20' ) end [2024-12-20 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064487', 'tblTempVendorCDR_20' ) start [2024-12-20 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064487', 'tblTempVendorCDR_20' ) end [2024-12-20 17:56:21] Production.INFO: ProcessCDR(1,14064487,1,1,2) [2024-12-20 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064487', 'tblTempUsageDetail_20' ) start [2024-12-20 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064487', 'tblTempUsageDetail_20' ) end [2024-12-20 17:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:56:24] Production.INFO: ==2197== Releasing lock... [2024-12-20 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:56:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-20 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:57:05 [end_date_ymd] => 2024-12-20 17:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:57:18] Production.INFO: count ==4173 [2024-12-20 17:57:20] Production.ERROR: pbx CDR StartTime 2024-12-20 14:57:05 - End Time 2024-12-20 17:57:05 [2024-12-20 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064492', 'tblTempUsageDetail_20' ) start [2024-12-20 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064492', 'tblTempUsageDetail_20' ) end [2024-12-20 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064492', 'tblTempVendorCDR_20' ) start [2024-12-20 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064492', 'tblTempVendorCDR_20' ) end [2024-12-20 17:57:20] Production.INFO: ProcessCDR(1,14064492,1,1,2) [2024-12-20 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064492', 'tblTempUsageDetail_20' ) start [2024-12-20 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064492', 'tblTempUsageDetail_20' ) end [2024-12-20 17:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:57:24] Production.INFO: ==2312== Releasing lock... [2024-12-20 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:57:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-20 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:58:05 [end_date_ymd] => 2024-12-20 17:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:58:17] Production.INFO: count ==4138 [2024-12-20 17:58:19] Production.ERROR: pbx CDR StartTime 2024-12-20 14:58:05 - End Time 2024-12-20 17:58:05 [2024-12-20 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064497', 'tblTempUsageDetail_20' ) start [2024-12-20 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064497', 'tblTempUsageDetail_20' ) end [2024-12-20 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064497', 'tblTempVendorCDR_20' ) start [2024-12-20 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064497', 'tblTempVendorCDR_20' ) end [2024-12-20 17:58:19] Production.INFO: ProcessCDR(1,14064497,1,1,2) [2024-12-20 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064497', 'tblTempUsageDetail_20' ) start [2024-12-20 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064497', 'tblTempUsageDetail_20' ) end [2024-12-20 17:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:58:22] Production.INFO: ==2432== Releasing lock... [2024-12-20 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:58:22] Production.INFO: 59.25 MB #Memory Used# [2024-12-20 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 14:59:05 [end_date_ymd] => 2024-12-20 17:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 14:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 17:59:19] Production.INFO: count ==4113 [2024-12-20 17:59:21] Production.ERROR: pbx CDR StartTime 2024-12-20 14:59:05 - End Time 2024-12-20 17:59:05 [2024-12-20 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064502', 'tblTempUsageDetail_20' ) start [2024-12-20 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064502', 'tblTempUsageDetail_20' ) end [2024-12-20 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064502', 'tblTempVendorCDR_20' ) start [2024-12-20 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064502', 'tblTempVendorCDR_20' ) end [2024-12-20 17:59:21] Production.INFO: ProcessCDR(1,14064502,1,1,2) [2024-12-20 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064502', 'tblTempUsageDetail_20' ) start [2024-12-20 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064502', 'tblTempUsageDetail_20' ) end [2024-12-20 17:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 17:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 17:59:24] Production.INFO: ==2545== Releasing lock... [2024-12-20 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 17:59:24] Production.INFO: 58.75 MB #Memory Used# [2024-12-20 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:00:06 [end_date_ymd] => 2024-12-20 18:00:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:00:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:00:19] Production.INFO: count ==4081 [2024-12-20 18:00:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:00:06 - End Time 2024-12-20 18:00:06 [2024-12-20 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064508', 'tblTempUsageDetail_20' ) start [2024-12-20 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064508', 'tblTempUsageDetail_20' ) end [2024-12-20 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064508', 'tblTempVendorCDR_20' ) start [2024-12-20 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064508', 'tblTempVendorCDR_20' ) end [2024-12-20 18:00:20] Production.INFO: ProcessCDR(1,14064508,1,1,2) [2024-12-20 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064508', 'tblTempUsageDetail_20' ) start [2024-12-20 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064508', 'tblTempUsageDetail_20' ) end [2024-12-20 18:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:00:24] Production.INFO: ==2667== Releasing lock... [2024-12-20 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:00:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-20 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:01:04 [end_date_ymd] => 2024-12-20 18:01:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:01:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:01:18] Production.INFO: count ==4021 [2024-12-20 18:01:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:01:04 - End Time 2024-12-20 18:01:04 [2024-12-20 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064513', 'tblTempUsageDetail_20' ) start [2024-12-20 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064513', 'tblTempUsageDetail_20' ) end [2024-12-20 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064513', 'tblTempVendorCDR_20' ) start [2024-12-20 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064513', 'tblTempVendorCDR_20' ) end [2024-12-20 18:01:20] Production.INFO: ProcessCDR(1,14064513,1,1,2) [2024-12-20 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064513', 'tblTempUsageDetail_20' ) start [2024-12-20 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064513', 'tblTempUsageDetail_20' ) end [2024-12-20 18:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:01:23] Production.INFO: ==2795== Releasing lock... [2024-12-20 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:01:23] Production.INFO: 58 MB #Memory Used# [2024-12-20 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:02:05 [end_date_ymd] => 2024-12-20 18:02:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:02:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:02:18] Production.INFO: count ==4010 [2024-12-20 18:02:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:02:05 - End Time 2024-12-20 18:02:05 [2024-12-20 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064518', 'tblTempUsageDetail_20' ) start [2024-12-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064518', 'tblTempUsageDetail_20' ) end [2024-12-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064518', 'tblTempVendorCDR_20' ) start [2024-12-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064518', 'tblTempVendorCDR_20' ) end [2024-12-20 18:02:20] Production.INFO: ProcessCDR(1,14064518,1,1,2) [2024-12-20 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064518', 'tblTempUsageDetail_20' ) start [2024-12-20 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064518', 'tblTempUsageDetail_20' ) end [2024-12-20 18:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:02:24] Production.INFO: ==2916== Releasing lock... [2024-12-20 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:02:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-20 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:03:04 [end_date_ymd] => 2024-12-20 18:03:04 [RateCDR] => 1 ) [2024-12-20 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:03:04' and `end` < '2024-12-20 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:03:18] Production.INFO: count ==3999 [2024-12-20 18:03:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:03:04 - End Time 2024-12-20 18:03:04 [2024-12-20 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064523', 'tblTempUsageDetail_20' ) start [2024-12-20 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064523', 'tblTempUsageDetail_20' ) end [2024-12-20 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064523', 'tblTempVendorCDR_20' ) start [2024-12-20 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064523', 'tblTempVendorCDR_20' ) end [2024-12-20 18:03:20] Production.INFO: ProcessCDR(1,14064523,1,1,2) [2024-12-20 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064523', 'tblTempUsageDetail_20' ) start [2024-12-20 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064523', 'tblTempUsageDetail_20' ) end [2024-12-20 18:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:03:24] Production.INFO: ==3035== Releasing lock... [2024-12-20 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:03:24] Production.INFO: 57.75 MB #Memory Used# [2024-12-20 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:04:05 [end_date_ymd] => 2024-12-20 18:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:04:18] Production.INFO: count ==3993 [2024-12-20 18:04:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:04:05 - End Time 2024-12-20 18:04:05 [2024-12-20 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064528', 'tblTempUsageDetail_20' ) start [2024-12-20 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064528', 'tblTempUsageDetail_20' ) end [2024-12-20 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064528', 'tblTempVendorCDR_20' ) start [2024-12-20 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064528', 'tblTempVendorCDR_20' ) end [2024-12-20 18:04:20] Production.INFO: ProcessCDR(1,14064528,1,1,2) [2024-12-20 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064528', 'tblTempUsageDetail_20' ) start [2024-12-20 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064528', 'tblTempUsageDetail_20' ) end [2024-12-20 18:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:04:24] Production.INFO: ==3159== Releasing lock... [2024-12-20 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:04:24] Production.INFO: 57.75 MB #Memory Used# [2024-12-20 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:05:05 [end_date_ymd] => 2024-12-20 18:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:05:18] Production.INFO: count ==3987 [2024-12-20 18:05:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:05:05 - End Time 2024-12-20 18:05:05 [2024-12-20 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064533', 'tblTempUsageDetail_20' ) start [2024-12-20 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064533', 'tblTempUsageDetail_20' ) end [2024-12-20 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064533', 'tblTempVendorCDR_20' ) start [2024-12-20 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064533', 'tblTempVendorCDR_20' ) end [2024-12-20 18:05:19] Production.INFO: ProcessCDR(1,14064533,1,1,2) [2024-12-20 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064533', 'tblTempUsageDetail_20' ) start [2024-12-20 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064533', 'tblTempUsageDetail_20' ) end [2024-12-20 18:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:05:24] Production.INFO: ==3285== Releasing lock... [2024-12-20 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:05:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-20 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:06:05 [end_date_ymd] => 2024-12-20 18:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:06:19] Production.INFO: count ==3982 [2024-12-20 18:06:21] Production.ERROR: pbx CDR StartTime 2024-12-20 15:06:05 - End Time 2024-12-20 18:06:05 [2024-12-20 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064538', 'tblTempUsageDetail_20' ) start [2024-12-20 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064538', 'tblTempUsageDetail_20' ) end [2024-12-20 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064538', 'tblTempVendorCDR_20' ) start [2024-12-20 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064538', 'tblTempVendorCDR_20' ) end [2024-12-20 18:06:21] Production.INFO: ProcessCDR(1,14064538,1,1,2) [2024-12-20 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064538', 'tblTempUsageDetail_20' ) start [2024-12-20 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064538', 'tblTempUsageDetail_20' ) end [2024-12-20 18:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:06:24] Production.INFO: ==3401== Releasing lock... [2024-12-20 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:06:24] Production.INFO: 57.75 MB #Memory Used# [2024-12-20 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:07:05 [end_date_ymd] => 2024-12-20 18:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:07:22] Production.INFO: count ==3973 [2024-12-20 18:07:23] Production.ERROR: pbx CDR StartTime 2024-12-20 15:07:05 - End Time 2024-12-20 18:07:05 [2024-12-20 18:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064543', 'tblTempUsageDetail_20' ) start [2024-12-20 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064543', 'tblTempUsageDetail_20' ) end [2024-12-20 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064543', 'tblTempVendorCDR_20' ) start [2024-12-20 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064543', 'tblTempVendorCDR_20' ) end [2024-12-20 18:07:23] Production.INFO: ProcessCDR(1,14064543,1,1,2) [2024-12-20 18:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064543', 'tblTempUsageDetail_20' ) start [2024-12-20 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064543', 'tblTempUsageDetail_20' ) end [2024-12-20 18:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:07:28] Production.INFO: ==3520== Releasing lock... [2024-12-20 18:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:07:28] Production.INFO: 57.75 MB #Memory Used# [2024-12-20 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:08:05 [end_date_ymd] => 2024-12-20 18:08:05 [RateCDR] => 1 ) [2024-12-20 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:08:05' and `end` < '2024-12-20 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:08:23] Production.INFO: count ==3956 [2024-12-20 18:08:25] Production.ERROR: pbx CDR StartTime 2024-12-20 15:08:05 - End Time 2024-12-20 18:08:05 [2024-12-20 18:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064548', 'tblTempUsageDetail_20' ) start [2024-12-20 18:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064548', 'tblTempUsageDetail_20' ) end [2024-12-20 18:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064548', 'tblTempVendorCDR_20' ) start [2024-12-20 18:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064548', 'tblTempVendorCDR_20' ) end [2024-12-20 18:08:25] Production.INFO: ProcessCDR(1,14064548,1,1,2) [2024-12-20 18:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064548', 'tblTempUsageDetail_20' ) start [2024-12-20 18:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064548', 'tblTempUsageDetail_20' ) end [2024-12-20 18:08:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:08:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:08:29] Production.INFO: ==3641== Releasing lock... [2024-12-20 18:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:08:29] Production.INFO: 57.5 MB #Memory Used# [2024-12-20 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:09:05 [end_date_ymd] => 2024-12-20 18:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:09:20] Production.INFO: count ==3933 [2024-12-20 18:09:21] Production.ERROR: pbx CDR StartTime 2024-12-20 15:09:05 - End Time 2024-12-20 18:09:05 [2024-12-20 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064553', 'tblTempUsageDetail_20' ) start [2024-12-20 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064553', 'tblTempUsageDetail_20' ) end [2024-12-20 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064553', 'tblTempVendorCDR_20' ) start [2024-12-20 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064553', 'tblTempVendorCDR_20' ) end [2024-12-20 18:09:21] Production.INFO: ProcessCDR(1,14064553,1,1,2) [2024-12-20 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064553', 'tblTempUsageDetail_20' ) start [2024-12-20 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064553', 'tblTempUsageDetail_20' ) end [2024-12-20 18:09:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:09:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:09:26] Production.INFO: ==3765== Releasing lock... [2024-12-20 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:09:26] Production.INFO: 57.25 MB #Memory Used# [2024-12-20 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:10:05 [end_date_ymd] => 2024-12-20 18:10:05 [RateCDR] => 1 ) [2024-12-20 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:10:05' and `end` < '2024-12-20 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:10:18] Production.INFO: count ==3886 [2024-12-20 18:10:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:10:05 - End Time 2024-12-20 18:10:05 [2024-12-20 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064559', 'tblTempUsageDetail_20' ) start [2024-12-20 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064559', 'tblTempUsageDetail_20' ) end [2024-12-20 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064559', 'tblTempVendorCDR_20' ) start [2024-12-20 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064559', 'tblTempVendorCDR_20' ) end [2024-12-20 18:10:19] Production.INFO: ProcessCDR(1,14064559,1,1,2) [2024-12-20 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064559', 'tblTempUsageDetail_20' ) start [2024-12-20 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064559', 'tblTempUsageDetail_20' ) end [2024-12-20 18:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:10:24] Production.INFO: ==3877== Releasing lock... [2024-12-20 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:10:24] Production.INFO: 57.75 MB #Memory Used# [2024-12-20 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:11:05 [end_date_ymd] => 2024-12-20 18:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:11:18] Production.INFO: count ==3916 [2024-12-20 18:11:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:11:05 - End Time 2024-12-20 18:11:05 [2024-12-20 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064564', 'tblTempUsageDetail_20' ) start [2024-12-20 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064564', 'tblTempUsageDetail_20' ) end [2024-12-20 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064564', 'tblTempVendorCDR_20' ) start [2024-12-20 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064564', 'tblTempVendorCDR_20' ) end [2024-12-20 18:11:20] Production.INFO: ProcessCDR(1,14064564,1,1,2) [2024-12-20 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064564', 'tblTempUsageDetail_20' ) start [2024-12-20 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064564', 'tblTempUsageDetail_20' ) end [2024-12-20 18:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:11:24] Production.INFO: ==3970== Releasing lock... [2024-12-20 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:11:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-20 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:12:04 [end_date_ymd] => 2024-12-20 18:12:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:12:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:12:17] Production.INFO: count ==3900 [2024-12-20 18:12:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:12:04 - End Time 2024-12-20 18:12:04 [2024-12-20 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064569', 'tblTempUsageDetail_20' ) start [2024-12-20 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064569', 'tblTempUsageDetail_20' ) end [2024-12-20 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064569', 'tblTempVendorCDR_20' ) start [2024-12-20 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064569', 'tblTempVendorCDR_20' ) end [2024-12-20 18:12:18] Production.INFO: ProcessCDR(1,14064569,1,1,2) [2024-12-20 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064569', 'tblTempUsageDetail_20' ) start [2024-12-20 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064569', 'tblTempUsageDetail_20' ) end [2024-12-20 18:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:12:23] Production.INFO: ==4096== Releasing lock... [2024-12-20 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:12:23] Production.INFO: 57.75 MB #Memory Used# [2024-12-20 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:13:05 [end_date_ymd] => 2024-12-20 18:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:13:18] Production.INFO: count ==3897 [2024-12-20 18:13:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:13:05 - End Time 2024-12-20 18:13:05 [2024-12-20 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064574', 'tblTempUsageDetail_20' ) start [2024-12-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064574', 'tblTempUsageDetail_20' ) end [2024-12-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064574', 'tblTempVendorCDR_20' ) start [2024-12-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064574', 'tblTempVendorCDR_20' ) end [2024-12-20 18:13:19] Production.INFO: ProcessCDR(1,14064574,1,1,2) [2024-12-20 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064574', 'tblTempUsageDetail_20' ) start [2024-12-20 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064574', 'tblTempUsageDetail_20' ) end [2024-12-20 18:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:13:23] Production.INFO: ==4181== Releasing lock... [2024-12-20 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:13:23] Production.INFO: 57 MB #Memory Used# [2024-12-20 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:14:05 [end_date_ymd] => 2024-12-20 18:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:14:18] Production.INFO: count ==3889 [2024-12-20 18:14:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:14:05 - End Time 2024-12-20 18:14:05 [2024-12-20 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064579', 'tblTempUsageDetail_20' ) start [2024-12-20 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064579', 'tblTempUsageDetail_20' ) end [2024-12-20 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064579', 'tblTempVendorCDR_20' ) start [2024-12-20 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064579', 'tblTempVendorCDR_20' ) end [2024-12-20 18:14:19] Production.INFO: ProcessCDR(1,14064579,1,1,2) [2024-12-20 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064579', 'tblTempUsageDetail_20' ) start [2024-12-20 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064579', 'tblTempUsageDetail_20' ) end [2024-12-20 18:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:14:22] Production.INFO: ==4266== Releasing lock... [2024-12-20 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:14:22] Production.INFO: 57.25 MB #Memory Used# [2024-12-20 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:15:05 [end_date_ymd] => 2024-12-20 18:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:15:18] Production.INFO: count ==3876 [2024-12-20 18:15:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:15:05 - End Time 2024-12-20 18:15:05 [2024-12-20 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064584', 'tblTempUsageDetail_20' ) start [2024-12-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064584', 'tblTempUsageDetail_20' ) end [2024-12-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064584', 'tblTempVendorCDR_20' ) start [2024-12-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064584', 'tblTempVendorCDR_20' ) end [2024-12-20 18:15:19] Production.INFO: ProcessCDR(1,14064584,1,1,2) [2024-12-20 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064584', 'tblTempUsageDetail_20' ) start [2024-12-20 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064584', 'tblTempUsageDetail_20' ) end [2024-12-20 18:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:15:24] Production.INFO: ==4351== Releasing lock... [2024-12-20 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:15:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-20 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:16:05 [end_date_ymd] => 2024-12-20 18:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:16:17] Production.INFO: count ==3848 [2024-12-20 18:16:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:16:05 - End Time 2024-12-20 18:16:05 [2024-12-20 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064589', 'tblTempUsageDetail_20' ) start [2024-12-20 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064589', 'tblTempUsageDetail_20' ) end [2024-12-20 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064589', 'tblTempVendorCDR_20' ) start [2024-12-20 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064589', 'tblTempVendorCDR_20' ) end [2024-12-20 18:16:19] Production.INFO: ProcessCDR(1,14064589,1,1,2) [2024-12-20 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064589', 'tblTempUsageDetail_20' ) start [2024-12-20 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064589', 'tblTempUsageDetail_20' ) end [2024-12-20 18:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:16:23] Production.INFO: ==4437== Releasing lock... [2024-12-20 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:16:23] Production.INFO: 57 MB #Memory Used# [2024-12-20 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:17:05 [end_date_ymd] => 2024-12-20 18:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:17:18] Production.INFO: count ==3820 [2024-12-20 18:17:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:17:05 - End Time 2024-12-20 18:17:05 [2024-12-20 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064594', 'tblTempUsageDetail_20' ) start [2024-12-20 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064594', 'tblTempUsageDetail_20' ) end [2024-12-20 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064594', 'tblTempVendorCDR_20' ) start [2024-12-20 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064594', 'tblTempVendorCDR_20' ) end [2024-12-20 18:17:20] Production.INFO: ProcessCDR(1,14064594,1,1,2) [2024-12-20 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064594', 'tblTempUsageDetail_20' ) start [2024-12-20 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064594', 'tblTempUsageDetail_20' ) end [2024-12-20 18:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:17:23] Production.INFO: ==4520== Releasing lock... [2024-12-20 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:17:23] Production.INFO: 57 MB #Memory Used# [2024-12-20 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:18:05 [end_date_ymd] => 2024-12-20 18:18:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:18:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:18:22] Production.INFO: count ==3816 [2024-12-20 18:18:23] Production.ERROR: pbx CDR StartTime 2024-12-20 15:18:05 - End Time 2024-12-20 18:18:05 [2024-12-20 18:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064599', 'tblTempUsageDetail_20' ) start [2024-12-20 18:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064599', 'tblTempUsageDetail_20' ) end [2024-12-20 18:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064599', 'tblTempVendorCDR_20' ) start [2024-12-20 18:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064599', 'tblTempVendorCDR_20' ) end [2024-12-20 18:18:24] Production.INFO: ProcessCDR(1,14064599,1,1,2) [2024-12-20 18:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064599', 'tblTempUsageDetail_20' ) start [2024-12-20 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064599', 'tblTempUsageDetail_20' ) end [2024-12-20 18:18:28] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:18:28] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:18:28] Production.INFO: ==4610== Releasing lock... [2024-12-20 18:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:18:28] Production.INFO: 56.5 MB #Memory Used# [2024-12-20 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:19:05 [end_date_ymd] => 2024-12-20 18:19:05 [RateCDR] => 1 ) [2024-12-20 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:19:05' and `end` < '2024-12-20 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:19:20] Production.INFO: count ==3813 [2024-12-20 18:19:22] Production.ERROR: pbx CDR StartTime 2024-12-20 15:19:05 - End Time 2024-12-20 18:19:05 [2024-12-20 18:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064604', 'tblTempUsageDetail_20' ) start [2024-12-20 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064604', 'tblTempUsageDetail_20' ) end [2024-12-20 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064604', 'tblTempVendorCDR_20' ) start [2024-12-20 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064604', 'tblTempVendorCDR_20' ) end [2024-12-20 18:19:22] Production.INFO: ProcessCDR(1,14064604,1,1,2) [2024-12-20 18:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064604', 'tblTempUsageDetail_20' ) start [2024-12-20 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064604', 'tblTempUsageDetail_20' ) end [2024-12-20 18:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:19:25] Production.INFO: ==4693== Releasing lock... [2024-12-20 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:19:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-20 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:20:06 [end_date_ymd] => 2024-12-20 18:20:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:20:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:20:19] Production.INFO: count ==3794 [2024-12-20 18:20:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:20:06 - End Time 2024-12-20 18:20:06 [2024-12-20 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064610', 'tblTempUsageDetail_20' ) start [2024-12-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064610', 'tblTempUsageDetail_20' ) end [2024-12-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064610', 'tblTempVendorCDR_20' ) start [2024-12-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064610', 'tblTempVendorCDR_20' ) end [2024-12-20 18:20:20] Production.INFO: ProcessCDR(1,14064610,1,1,2) [2024-12-20 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064610', 'tblTempUsageDetail_20' ) start [2024-12-20 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064610', 'tblTempUsageDetail_20' ) end [2024-12-20 18:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:20:24] Production.INFO: ==4779== Releasing lock... [2024-12-20 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:20:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-20 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:21:04 [end_date_ymd] => 2024-12-20 18:21:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:21:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:21:20] Production.INFO: count ==3781 [2024-12-20 18:21:22] Production.ERROR: pbx CDR StartTime 2024-12-20 15:21:04 - End Time 2024-12-20 18:21:04 [2024-12-20 18:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064615', 'tblTempUsageDetail_20' ) start [2024-12-20 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064615', 'tblTempUsageDetail_20' ) end [2024-12-20 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064615', 'tblTempVendorCDR_20' ) start [2024-12-20 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064615', 'tblTempVendorCDR_20' ) end [2024-12-20 18:21:22] Production.INFO: ProcessCDR(1,14064615,1,1,2) [2024-12-20 18:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064615', 'tblTempUsageDetail_20' ) start [2024-12-20 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064615', 'tblTempUsageDetail_20' ) end [2024-12-20 18:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:21:25] Production.INFO: ==4860== Releasing lock... [2024-12-20 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:21:25] Production.INFO: 57 MB #Memory Used# [2024-12-20 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:22:05 [end_date_ymd] => 2024-12-20 18:22:05 [RateCDR] => 1 ) [2024-12-20 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:22:05' and `end` < '2024-12-20 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:22:18] Production.INFO: count ==3770 [2024-12-20 18:22:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:22:05 - End Time 2024-12-20 18:22:05 [2024-12-20 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064620', 'tblTempUsageDetail_20' ) start [2024-12-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064620', 'tblTempUsageDetail_20' ) end [2024-12-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064620', 'tblTempVendorCDR_20' ) start [2024-12-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064620', 'tblTempVendorCDR_20' ) end [2024-12-20 18:22:19] Production.INFO: ProcessCDR(1,14064620,1,1,2) [2024-12-20 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064620', 'tblTempUsageDetail_20' ) start [2024-12-20 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064620', 'tblTempUsageDetail_20' ) end [2024-12-20 18:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:22:22] Production.INFO: ==4943== Releasing lock... [2024-12-20 18:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:22:22] Production.INFO: 56.25 MB #Memory Used# [2024-12-20 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:23:05 [end_date_ymd] => 2024-12-20 18:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:23:17] Production.INFO: count ==3723 [2024-12-20 18:23:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:23:05 - End Time 2024-12-20 18:23:05 [2024-12-20 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064625', 'tblTempUsageDetail_20' ) start [2024-12-20 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064625', 'tblTempUsageDetail_20' ) end [2024-12-20 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064625', 'tblTempVendorCDR_20' ) start [2024-12-20 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064625', 'tblTempVendorCDR_20' ) end [2024-12-20 18:23:18] Production.INFO: ProcessCDR(1,14064625,1,1,2) [2024-12-20 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064625', 'tblTempUsageDetail_20' ) start [2024-12-20 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064625', 'tblTempUsageDetail_20' ) end [2024-12-20 18:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:23:22] Production.INFO: ==5027== Releasing lock... [2024-12-20 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:23:22] Production.INFO: 55.75 MB #Memory Used# [2024-12-20 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:24:05 [end_date_ymd] => 2024-12-20 18:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:24:18] Production.INFO: count ==3706 [2024-12-20 18:24:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:24:05 - End Time 2024-12-20 18:24:05 [2024-12-20 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064630', 'tblTempUsageDetail_20' ) start [2024-12-20 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064630', 'tblTempUsageDetail_20' ) end [2024-12-20 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064630', 'tblTempVendorCDR_20' ) start [2024-12-20 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064630', 'tblTempVendorCDR_20' ) end [2024-12-20 18:24:20] Production.INFO: ProcessCDR(1,14064630,1,1,2) [2024-12-20 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064630', 'tblTempUsageDetail_20' ) start [2024-12-20 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064630', 'tblTempUsageDetail_20' ) end [2024-12-20 18:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:24:24] Production.INFO: ==5113== Releasing lock... [2024-12-20 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:24:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-20 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:25:04 [end_date_ymd] => 2024-12-20 18:25:04 [RateCDR] => 1 ) [2024-12-20 18:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:25:04' and `end` < '2024-12-20 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:25:17] Production.INFO: count ==3688 [2024-12-20 18:25:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:25:04 - End Time 2024-12-20 18:25:04 [2024-12-20 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064635', 'tblTempUsageDetail_20' ) start [2024-12-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064635', 'tblTempUsageDetail_20' ) end [2024-12-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064635', 'tblTempVendorCDR_20' ) start [2024-12-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064635', 'tblTempVendorCDR_20' ) end [2024-12-20 18:25:19] Production.INFO: ProcessCDR(1,14064635,1,1,2) [2024-12-20 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064635', 'tblTempUsageDetail_20' ) start [2024-12-20 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064635', 'tblTempUsageDetail_20' ) end [2024-12-20 18:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:25:23] Production.INFO: ==5193== Releasing lock... [2024-12-20 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:25:23] Production.INFO: 55.75 MB #Memory Used# [2024-12-20 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:26:05 [end_date_ymd] => 2024-12-20 18:26:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:26:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:26:17] Production.INFO: count ==3683 [2024-12-20 18:26:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:26:05 - End Time 2024-12-20 18:26:05 [2024-12-20 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064640', 'tblTempUsageDetail_20' ) start [2024-12-20 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064640', 'tblTempUsageDetail_20' ) end [2024-12-20 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064640', 'tblTempVendorCDR_20' ) start [2024-12-20 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064640', 'tblTempVendorCDR_20' ) end [2024-12-20 18:26:19] Production.INFO: ProcessCDR(1,14064640,1,1,2) [2024-12-20 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064640', 'tblTempUsageDetail_20' ) start [2024-12-20 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064640', 'tblTempUsageDetail_20' ) end [2024-12-20 18:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:26:22] Production.INFO: ==5276== Releasing lock... [2024-12-20 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:26:22] Production.INFO: 56 MB #Memory Used# [2024-12-20 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:27:04 [end_date_ymd] => 2024-12-20 18:27:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:27:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:27:16] Production.INFO: count ==3674 [2024-12-20 18:27:17] Production.ERROR: pbx CDR StartTime 2024-12-20 15:27:04 - End Time 2024-12-20 18:27:04 [2024-12-20 18:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064645', 'tblTempUsageDetail_20' ) start [2024-12-20 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064645', 'tblTempUsageDetail_20' ) end [2024-12-20 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064645', 'tblTempVendorCDR_20' ) start [2024-12-20 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064645', 'tblTempVendorCDR_20' ) end [2024-12-20 18:27:18] Production.INFO: ProcessCDR(1,14064645,1,1,2) [2024-12-20 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064645', 'tblTempUsageDetail_20' ) start [2024-12-20 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064645', 'tblTempUsageDetail_20' ) end [2024-12-20 18:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:27:21] Production.INFO: ==5361== Releasing lock... [2024-12-20 18:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:27:21] Production.INFO: 55.75 MB #Memory Used# [2024-12-20 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:28:05 [end_date_ymd] => 2024-12-20 18:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:28:18] Production.INFO: count ==3664 [2024-12-20 18:28:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:28:05 - End Time 2024-12-20 18:28:05 [2024-12-20 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064650', 'tblTempUsageDetail_20' ) start [2024-12-20 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064650', 'tblTempUsageDetail_20' ) end [2024-12-20 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064650', 'tblTempVendorCDR_20' ) start [2024-12-20 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064650', 'tblTempVendorCDR_20' ) end [2024-12-20 18:28:19] Production.INFO: ProcessCDR(1,14064650,1,1,2) [2024-12-20 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064650', 'tblTempUsageDetail_20' ) start [2024-12-20 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064650', 'tblTempUsageDetail_20' ) end [2024-12-20 18:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:28:23] Production.INFO: ==5483== Releasing lock... [2024-12-20 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:28:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-20 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:29:05 [end_date_ymd] => 2024-12-20 18:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:29:22] Production.INFO: count ==3642 [2024-12-20 18:29:23] Production.ERROR: pbx CDR StartTime 2024-12-20 15:29:05 - End Time 2024-12-20 18:29:05 [2024-12-20 18:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064655', 'tblTempUsageDetail_20' ) start [2024-12-20 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064655', 'tblTempUsageDetail_20' ) end [2024-12-20 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064655', 'tblTempVendorCDR_20' ) start [2024-12-20 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064655', 'tblTempVendorCDR_20' ) end [2024-12-20 18:29:23] Production.INFO: ProcessCDR(1,14064655,1,1,2) [2024-12-20 18:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064655', 'tblTempUsageDetail_20' ) start [2024-12-20 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064655', 'tblTempUsageDetail_20' ) end [2024-12-20 18:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:29:26] Production.INFO: ==5565== Releasing lock... [2024-12-20 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:29:26] Production.INFO: 55.75 MB #Memory Used# [2024-12-20 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:30:05 [end_date_ymd] => 2024-12-20 18:30:05 [RateCDR] => 1 ) [2024-12-20 18:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:30:05' and `end` < '2024-12-20 18:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:30:20] Production.INFO: count ==3615 [2024-12-20 18:30:21] Production.ERROR: pbx CDR StartTime 2024-12-20 15:30:05 - End Time 2024-12-20 18:30:05 [2024-12-20 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064660', 'tblTempUsageDetail_20' ) start [2024-12-20 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064660', 'tblTempUsageDetail_20' ) end [2024-12-20 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064660', 'tblTempVendorCDR_20' ) start [2024-12-20 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064660', 'tblTempVendorCDR_20' ) end [2024-12-20 18:30:21] Production.INFO: ProcessCDR(1,14064660,1,1,2) [2024-12-20 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064660', 'tblTempUsageDetail_20' ) start [2024-12-20 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064660', 'tblTempUsageDetail_20' ) end [2024-12-20 18:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:30:25] Production.INFO: ==5649== Releasing lock... [2024-12-20 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:30:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-20 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:31:05 [end_date_ymd] => 2024-12-20 18:31:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:31:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:31:19] Production.INFO: count ==3587 [2024-12-20 18:31:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:31:05 - End Time 2024-12-20 18:31:05 [2024-12-20 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064666', 'tblTempUsageDetail_20' ) start [2024-12-20 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064666', 'tblTempUsageDetail_20' ) end [2024-12-20 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064666', 'tblTempVendorCDR_20' ) start [2024-12-20 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064666', 'tblTempVendorCDR_20' ) end [2024-12-20 18:31:20] Production.INFO: ProcessCDR(1,14064666,1,1,2) [2024-12-20 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064666', 'tblTempUsageDetail_20' ) start [2024-12-20 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064666', 'tblTempUsageDetail_20' ) end [2024-12-20 18:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:31:24] Production.INFO: ==5738== Releasing lock... [2024-12-20 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:31:24] Production.INFO: 55 MB #Memory Used# [2024-12-20 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:32:05 [end_date_ymd] => 2024-12-20 18:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:32:19] Production.INFO: count ==3577 [2024-12-20 18:32:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:32:05 - End Time 2024-12-20 18:32:05 [2024-12-20 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064671', 'tblTempUsageDetail_20' ) start [2024-12-20 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064671', 'tblTempUsageDetail_20' ) end [2024-12-20 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064671', 'tblTempVendorCDR_20' ) start [2024-12-20 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064671', 'tblTempVendorCDR_20' ) end [2024-12-20 18:32:20] Production.INFO: ProcessCDR(1,14064671,1,1,2) [2024-12-20 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064671', 'tblTempUsageDetail_20' ) start [2024-12-20 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064671', 'tblTempUsageDetail_20' ) end [2024-12-20 18:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:32:23] Production.INFO: ==5821== Releasing lock... [2024-12-20 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:32:23] Production.INFO: 54.75 MB #Memory Used# [2024-12-20 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:33:05 [end_date_ymd] => 2024-12-20 18:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:33:19] Production.INFO: count ==3577 [2024-12-20 18:33:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:33:05 - End Time 2024-12-20 18:33:05 [2024-12-20 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064676', 'tblTempUsageDetail_20' ) start [2024-12-20 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064676', 'tblTempUsageDetail_20' ) end [2024-12-20 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064676', 'tblTempVendorCDR_20' ) start [2024-12-20 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064676', 'tblTempVendorCDR_20' ) end [2024-12-20 18:33:20] Production.INFO: ProcessCDR(1,14064676,1,1,2) [2024-12-20 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064676', 'tblTempUsageDetail_20' ) start [2024-12-20 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064676', 'tblTempUsageDetail_20' ) end [2024-12-20 18:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:33:25] Production.INFO: ==5906== Releasing lock... [2024-12-20 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:33:25] Production.INFO: 55 MB #Memory Used# [2024-12-20 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:34:04 [end_date_ymd] => 2024-12-20 18:34:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:34:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:34:18] Production.INFO: count ==3570 [2024-12-20 18:34:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:34:04 - End Time 2024-12-20 18:34:04 [2024-12-20 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064681', 'tblTempUsageDetail_20' ) start [2024-12-20 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064681', 'tblTempUsageDetail_20' ) end [2024-12-20 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064681', 'tblTempVendorCDR_20' ) start [2024-12-20 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064681', 'tblTempVendorCDR_20' ) end [2024-12-20 18:34:19] Production.INFO: ProcessCDR(1,14064681,1,1,2) [2024-12-20 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064681', 'tblTempUsageDetail_20' ) start [2024-12-20 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064681', 'tblTempUsageDetail_20' ) end [2024-12-20 18:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:34:22] Production.INFO: ==5988== Releasing lock... [2024-12-20 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:34:22] Production.INFO: 54.75 MB #Memory Used# [2024-12-20 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:35:05 [end_date_ymd] => 2024-12-20 18:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:35:21] Production.INFO: count ==3564 [2024-12-20 18:35:22] Production.ERROR: pbx CDR StartTime 2024-12-20 15:35:05 - End Time 2024-12-20 18:35:05 [2024-12-20 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064686', 'tblTempUsageDetail_20' ) start [2024-12-20 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064686', 'tblTempUsageDetail_20' ) end [2024-12-20 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064686', 'tblTempVendorCDR_20' ) start [2024-12-20 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064686', 'tblTempVendorCDR_20' ) end [2024-12-20 18:35:22] Production.INFO: ProcessCDR(1,14064686,1,1,2) [2024-12-20 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064686', 'tblTempUsageDetail_20' ) start [2024-12-20 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064686', 'tblTempUsageDetail_20' ) end [2024-12-20 18:35:27] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:35:27] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:35:27] Production.INFO: ==6069== Releasing lock... [2024-12-20 18:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:35:27] Production.INFO: 54.5 MB #Memory Used# [2024-12-20 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:36:04 [end_date_ymd] => 2024-12-20 18:36:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:36:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:36:19] Production.INFO: count ==3543 [2024-12-20 18:36:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:36:04 - End Time 2024-12-20 18:36:04 [2024-12-20 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064691', 'tblTempUsageDetail_20' ) start [2024-12-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064691', 'tblTempUsageDetail_20' ) end [2024-12-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064691', 'tblTempVendorCDR_20' ) start [2024-12-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064691', 'tblTempVendorCDR_20' ) end [2024-12-20 18:36:20] Production.INFO: ProcessCDR(1,14064691,1,1,2) [2024-12-20 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064691', 'tblTempUsageDetail_20' ) start [2024-12-20 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064691', 'tblTempUsageDetail_20' ) end [2024-12-20 18:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:36:24] Production.INFO: ==6157== Releasing lock... [2024-12-20 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:36:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-20 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:37:05 [end_date_ymd] => 2024-12-20 18:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:37:17] Production.INFO: count ==3539 [2024-12-20 18:37:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:37:05 - End Time 2024-12-20 18:37:05 [2024-12-20 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064696', 'tblTempUsageDetail_20' ) start [2024-12-20 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064696', 'tblTempUsageDetail_20' ) end [2024-12-20 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064696', 'tblTempVendorCDR_20' ) start [2024-12-20 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064696', 'tblTempVendorCDR_20' ) end [2024-12-20 18:37:18] Production.INFO: ProcessCDR(1,14064696,1,1,2) [2024-12-20 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064696', 'tblTempUsageDetail_20' ) start [2024-12-20 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064696', 'tblTempUsageDetail_20' ) end [2024-12-20 18:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:37:23] Production.INFO: ==6238== Releasing lock... [2024-12-20 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:37:23] Production.INFO: 54.75 MB #Memory Used# [2024-12-20 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:38:04 [end_date_ymd] => 2024-12-20 18:38:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:38:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:38:18] Production.INFO: count ==3515 [2024-12-20 18:38:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:38:04 - End Time 2024-12-20 18:38:04 [2024-12-20 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064701', 'tblTempUsageDetail_20' ) start [2024-12-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064701', 'tblTempUsageDetail_20' ) end [2024-12-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064701', 'tblTempVendorCDR_20' ) start [2024-12-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064701', 'tblTempVendorCDR_20' ) end [2024-12-20 18:38:19] Production.INFO: ProcessCDR(1,14064701,1,1,2) [2024-12-20 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064701', 'tblTempUsageDetail_20' ) start [2024-12-20 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064701', 'tblTempUsageDetail_20' ) end [2024-12-20 18:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:38:23] Production.INFO: ==6324== Releasing lock... [2024-12-20 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:38:23] Production.INFO: 54.5 MB #Memory Used# [2024-12-20 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:39:05 [end_date_ymd] => 2024-12-20 18:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:39:18] Production.INFO: count ==3498 [2024-12-20 18:39:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:39:05 - End Time 2024-12-20 18:39:05 [2024-12-20 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064706', 'tblTempUsageDetail_20' ) start [2024-12-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064706', 'tblTempUsageDetail_20' ) end [2024-12-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064706', 'tblTempVendorCDR_20' ) start [2024-12-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064706', 'tblTempVendorCDR_20' ) end [2024-12-20 18:39:19] Production.INFO: ProcessCDR(1,14064706,1,1,2) [2024-12-20 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064706', 'tblTempUsageDetail_20' ) start [2024-12-20 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064706', 'tblTempUsageDetail_20' ) end [2024-12-20 18:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:39:23] Production.INFO: ==6407== Releasing lock... [2024-12-20 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:39:23] Production.INFO: 54.25 MB #Memory Used# [2024-12-20 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:40:05 [end_date_ymd] => 2024-12-20 18:40:05 [RateCDR] => 1 ) [2024-12-20 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:40:05' and `end` < '2024-12-20 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:40:24] Production.INFO: count ==3489 [2024-12-20 18:40:25] Production.ERROR: pbx CDR StartTime 2024-12-20 15:40:05 - End Time 2024-12-20 18:40:05 [2024-12-20 18:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064712', 'tblTempUsageDetail_20' ) start [2024-12-20 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064712', 'tblTempUsageDetail_20' ) end [2024-12-20 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064712', 'tblTempVendorCDR_20' ) start [2024-12-20 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064712', 'tblTempVendorCDR_20' ) end [2024-12-20 18:40:25] Production.INFO: ProcessCDR(1,14064712,1,1,2) [2024-12-20 18:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064712', 'tblTempUsageDetail_20' ) start [2024-12-20 18:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064712', 'tblTempUsageDetail_20' ) end [2024-12-20 18:40:29] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:40:29] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:40:29] Production.INFO: ==6492== Releasing lock... [2024-12-20 18:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:40:29] Production.INFO: 54.5 MB #Memory Used# [2024-12-20 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:41:04 [end_date_ymd] => 2024-12-20 18:41:04 [RateCDR] => 1 ) [2024-12-20 18:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:41:04' and `end` < '2024-12-20 18:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:41:17] Production.INFO: count ==3474 [2024-12-20 18:41:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:41:04 - End Time 2024-12-20 18:41:04 [2024-12-20 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064717', 'tblTempUsageDetail_20' ) start [2024-12-20 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064717', 'tblTempUsageDetail_20' ) end [2024-12-20 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064717', 'tblTempVendorCDR_20' ) start [2024-12-20 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064717', 'tblTempVendorCDR_20' ) end [2024-12-20 18:41:18] Production.INFO: ProcessCDR(1,14064717,1,1,2) [2024-12-20 18:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064717', 'tblTempUsageDetail_20' ) start [2024-12-20 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064717', 'tblTempUsageDetail_20' ) end [2024-12-20 18:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:41:23] Production.INFO: ==6576== Releasing lock... [2024-12-20 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:41:23] Production.INFO: 54.5 MB #Memory Used# [2024-12-20 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:42:05 [end_date_ymd] => 2024-12-20 18:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:42:18] Production.INFO: count ==3469 [2024-12-20 18:42:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:42:05 - End Time 2024-12-20 18:42:05 [2024-12-20 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064722', 'tblTempUsageDetail_20' ) start [2024-12-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064722', 'tblTempUsageDetail_20' ) end [2024-12-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064722', 'tblTempVendorCDR_20' ) start [2024-12-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064722', 'tblTempVendorCDR_20' ) end [2024-12-20 18:42:19] Production.INFO: ProcessCDR(1,14064722,1,1,2) [2024-12-20 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064722', 'tblTempUsageDetail_20' ) start [2024-12-20 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064722', 'tblTempUsageDetail_20' ) end [2024-12-20 18:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:42:23] Production.INFO: ==6659== Releasing lock... [2024-12-20 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:42:23] Production.INFO: 54.5 MB #Memory Used# [2024-12-20 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:43:04 [end_date_ymd] => 2024-12-20 18:43:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:43:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:43:19] Production.INFO: count ==3460 [2024-12-20 18:43:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:43:04 - End Time 2024-12-20 18:43:04 [2024-12-20 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064727', 'tblTempUsageDetail_20' ) start [2024-12-20 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064727', 'tblTempUsageDetail_20' ) end [2024-12-20 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064727', 'tblTempVendorCDR_20' ) start [2024-12-20 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064727', 'tblTempVendorCDR_20' ) end [2024-12-20 18:43:20] Production.INFO: ProcessCDR(1,14064727,1,1,2) [2024-12-20 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064727', 'tblTempUsageDetail_20' ) start [2024-12-20 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064727', 'tblTempUsageDetail_20' ) end [2024-12-20 18:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:43:25] Production.INFO: ==6778== Releasing lock... [2024-12-20 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:43:25] Production.INFO: 53.75 MB #Memory Used# [2024-12-20 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:44:05 [end_date_ymd] => 2024-12-20 18:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:44:17] Production.INFO: count ==3447 [2024-12-20 18:44:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:44:05 - End Time 2024-12-20 18:44:05 [2024-12-20 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064732', 'tblTempUsageDetail_20' ) start [2024-12-20 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064732', 'tblTempUsageDetail_20' ) end [2024-12-20 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064732', 'tblTempVendorCDR_20' ) start [2024-12-20 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064732', 'tblTempVendorCDR_20' ) end [2024-12-20 18:44:18] Production.INFO: ProcessCDR(1,14064732,1,1,2) [2024-12-20 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064732', 'tblTempUsageDetail_20' ) start [2024-12-20 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064732', 'tblTempUsageDetail_20' ) end [2024-12-20 18:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:44:23] Production.INFO: ==6862== Releasing lock... [2024-12-20 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:44:23] Production.INFO: 54.5 MB #Memory Used# [2024-12-20 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:45:05 [end_date_ymd] => 2024-12-20 18:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:45:18] Production.INFO: count ==3423 [2024-12-20 18:45:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:45:05 - End Time 2024-12-20 18:45:05 [2024-12-20 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064737', 'tblTempUsageDetail_20' ) start [2024-12-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064737', 'tblTempUsageDetail_20' ) end [2024-12-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064737', 'tblTempVendorCDR_20' ) start [2024-12-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064737', 'tblTempVendorCDR_20' ) end [2024-12-20 18:45:19] Production.INFO: ProcessCDR(1,14064737,1,1,2) [2024-12-20 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064737', 'tblTempUsageDetail_20' ) start [2024-12-20 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064737', 'tblTempUsageDetail_20' ) end [2024-12-20 18:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:45:24] Production.INFO: ==6945== Releasing lock... [2024-12-20 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:45:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-20 18:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:46:04 [end_date_ymd] => 2024-12-20 18:46:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:46:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:46:18] Production.INFO: count ==3390 [2024-12-20 18:46:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:46:04 - End Time 2024-12-20 18:46:04 [2024-12-20 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064742', 'tblTempUsageDetail_20' ) start [2024-12-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064742', 'tblTempUsageDetail_20' ) end [2024-12-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064742', 'tblTempVendorCDR_20' ) start [2024-12-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064742', 'tblTempVendorCDR_20' ) end [2024-12-20 18:46:19] Production.INFO: ProcessCDR(1,14064742,1,1,2) [2024-12-20 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064742', 'tblTempUsageDetail_20' ) start [2024-12-20 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064742', 'tblTempUsageDetail_20' ) end [2024-12-20 18:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:46:23] Production.INFO: ==7027== Releasing lock... [2024-12-20 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:46:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-20 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:47:05 [end_date_ymd] => 2024-12-20 18:47:05 [RateCDR] => 1 ) [2024-12-20 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:47:05' and `end` < '2024-12-20 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:47:17] Production.INFO: count ==3401 [2024-12-20 18:47:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:47:05 - End Time 2024-12-20 18:47:05 [2024-12-20 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064747', 'tblTempUsageDetail_20' ) start [2024-12-20 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064747', 'tblTempUsageDetail_20' ) end [2024-12-20 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064747', 'tblTempVendorCDR_20' ) start [2024-12-20 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064747', 'tblTempVendorCDR_20' ) end [2024-12-20 18:47:18] Production.INFO: ProcessCDR(1,14064747,1,1,2) [2024-12-20 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064747', 'tblTempUsageDetail_20' ) start [2024-12-20 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064747', 'tblTempUsageDetail_20' ) end [2024-12-20 18:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:47:23] Production.INFO: ==7110== Releasing lock... [2024-12-20 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:47:23] Production.INFO: 53.5 MB #Memory Used# [2024-12-20 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:48:04 [end_date_ymd] => 2024-12-20 18:48:04 [RateCDR] => 1 ) [2024-12-20 18:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:48:04' and `end` < '2024-12-20 18:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:48:18] Production.INFO: count ==3380 [2024-12-20 18:48:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:48:04 - End Time 2024-12-20 18:48:04 [2024-12-20 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064752', 'tblTempUsageDetail_20' ) start [2024-12-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064752', 'tblTempUsageDetail_20' ) end [2024-12-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064752', 'tblTempVendorCDR_20' ) start [2024-12-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064752', 'tblTempVendorCDR_20' ) end [2024-12-20 18:48:19] Production.INFO: ProcessCDR(1,14064752,1,1,2) [2024-12-20 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064752', 'tblTempUsageDetail_20' ) start [2024-12-20 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064752', 'tblTempUsageDetail_20' ) end [2024-12-20 18:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:48:23] Production.INFO: ==7192== Releasing lock... [2024-12-20 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:48:23] Production.INFO: 53.5 MB #Memory Used# [2024-12-20 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:49:05 [end_date_ymd] => 2024-12-20 18:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:49:17] Production.INFO: count ==3353 [2024-12-20 18:49:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:49:05 - End Time 2024-12-20 18:49:05 [2024-12-20 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064757', 'tblTempUsageDetail_20' ) start [2024-12-20 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064757', 'tblTempUsageDetail_20' ) end [2024-12-20 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064757', 'tblTempVendorCDR_20' ) start [2024-12-20 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064757', 'tblTempVendorCDR_20' ) end [2024-12-20 18:49:18] Production.INFO: ProcessCDR(1,14064757,1,1,2) [2024-12-20 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064757', 'tblTempUsageDetail_20' ) start [2024-12-20 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064757', 'tblTempUsageDetail_20' ) end [2024-12-20 18:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:49:21] Production.INFO: ==7282== Releasing lock... [2024-12-20 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:49:21] Production.INFO: 54 MB #Memory Used# [2024-12-20 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:50:05 [end_date_ymd] => 2024-12-20 18:50:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:50:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:50:17] Production.INFO: count ==3353 [2024-12-20 18:50:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:50:05 - End Time 2024-12-20 18:50:05 [2024-12-20 18:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064762', 'tblTempUsageDetail_20' ) start [2024-12-20 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064762', 'tblTempUsageDetail_20' ) end [2024-12-20 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064762', 'tblTempVendorCDR_20' ) start [2024-12-20 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064762', 'tblTempVendorCDR_20' ) end [2024-12-20 18:50:18] Production.INFO: ProcessCDR(1,14064762,1,1,2) [2024-12-20 18:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064762', 'tblTempUsageDetail_20' ) start [2024-12-20 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064762', 'tblTempUsageDetail_20' ) end [2024-12-20 18:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:50:23] Production.INFO: ==7366== Releasing lock... [2024-12-20 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:50:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-20 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:51:05 [end_date_ymd] => 2024-12-20 18:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:51:18] Production.INFO: count ==3282 [2024-12-20 18:51:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:51:05 - End Time 2024-12-20 18:51:05 [2024-12-20 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064768', 'tblTempUsageDetail_20' ) start [2024-12-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064768', 'tblTempUsageDetail_20' ) end [2024-12-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064768', 'tblTempVendorCDR_20' ) start [2024-12-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064768', 'tblTempVendorCDR_20' ) end [2024-12-20 18:51:19] Production.INFO: ProcessCDR(1,14064768,1,1,2) [2024-12-20 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064768', 'tblTempUsageDetail_20' ) start [2024-12-20 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064768', 'tblTempUsageDetail_20' ) end [2024-12-20 18:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:51:24] Production.INFO: ==7457== Releasing lock... [2024-12-20 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:51:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-20 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:52:06 [end_date_ymd] => 2024-12-20 18:52:06 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:52:06' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:52:19] Production.INFO: count ==3270 [2024-12-20 18:52:20] Production.ERROR: pbx CDR StartTime 2024-12-20 15:52:06 - End Time 2024-12-20 18:52:06 [2024-12-20 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064773', 'tblTempUsageDetail_20' ) start [2024-12-20 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064773', 'tblTempUsageDetail_20' ) end [2024-12-20 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064773', 'tblTempVendorCDR_20' ) start [2024-12-20 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064773', 'tblTempVendorCDR_20' ) end [2024-12-20 18:52:20] Production.INFO: ProcessCDR(1,14064773,1,1,2) [2024-12-20 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064773', 'tblTempUsageDetail_20' ) start [2024-12-20 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064773', 'tblTempUsageDetail_20' ) end [2024-12-20 18:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:52:23] Production.INFO: ==7543== Releasing lock... [2024-12-20 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:52:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-20 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:53:04 [end_date_ymd] => 2024-12-20 18:53:04 [RateCDR] => 1 ) [2024-12-20 18: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` >= '2024-12-20 15:53:04' and `end` < '2024-12-20 18: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 ,'') [2024-12-20 18:53:18] Production.INFO: count ==3269 [2024-12-20 18:53:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:53:04 - End Time 2024-12-20 18:53:04 [2024-12-20 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064778', 'tblTempUsageDetail_20' ) start [2024-12-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064778', 'tblTempUsageDetail_20' ) end [2024-12-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064778', 'tblTempVendorCDR_20' ) start [2024-12-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064778', 'tblTempVendorCDR_20' ) end [2024-12-20 18:53:19] Production.INFO: ProcessCDR(1,14064778,1,1,2) [2024-12-20 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064778', 'tblTempUsageDetail_20' ) start [2024-12-20 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064778', 'tblTempUsageDetail_20' ) end [2024-12-20 18:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:53:23] Production.INFO: ==7626== Releasing lock... [2024-12-20 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:53:23] Production.INFO: 53 MB #Memory Used# [2024-12-20 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:54:05 [end_date_ymd] => 2024-12-20 18:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:54:18] Production.INFO: count ==3247 [2024-12-20 18:54:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:54:05 - End Time 2024-12-20 18:54:05 [2024-12-20 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064783', 'tblTempUsageDetail_20' ) start [2024-12-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064783', 'tblTempUsageDetail_20' ) end [2024-12-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064783', 'tblTempVendorCDR_20' ) start [2024-12-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064783', 'tblTempVendorCDR_20' ) end [2024-12-20 18:54:19] Production.INFO: ProcessCDR(1,14064783,1,1,2) [2024-12-20 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064783', 'tblTempUsageDetail_20' ) start [2024-12-20 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064783', 'tblTempUsageDetail_20' ) end [2024-12-20 18:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:54:24] Production.INFO: ==7709== Releasing lock... [2024-12-20 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:54:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-20 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:55:05 [end_date_ymd] => 2024-12-20 18:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:55:17] Production.INFO: count ==3230 [2024-12-20 18:55:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:55:05 - End Time 2024-12-20 18:55:05 [2024-12-20 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064788', 'tblTempUsageDetail_20' ) start [2024-12-20 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064788', 'tblTempUsageDetail_20' ) end [2024-12-20 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064788', 'tblTempVendorCDR_20' ) start [2024-12-20 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064788', 'tblTempVendorCDR_20' ) end [2024-12-20 18:55:18] Production.INFO: ProcessCDR(1,14064788,1,1,2) [2024-12-20 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064788', 'tblTempUsageDetail_20' ) start [2024-12-20 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064788', 'tblTempUsageDetail_20' ) end [2024-12-20 18:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:55:21] Production.INFO: ==7795== Releasing lock... [2024-12-20 18:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:55:21] Production.INFO: 52.75 MB #Memory Used# [2024-12-20 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:56:05 [end_date_ymd] => 2024-12-20 18:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:56:17] Production.INFO: count ==3235 [2024-12-20 18:56:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:56:05 - End Time 2024-12-20 18:56:05 [2024-12-20 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064793', 'tblTempUsageDetail_20' ) start [2024-12-20 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064793', 'tblTempUsageDetail_20' ) end [2024-12-20 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064793', 'tblTempVendorCDR_20' ) start [2024-12-20 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064793', 'tblTempVendorCDR_20' ) end [2024-12-20 18:56:18] Production.INFO: ProcessCDR(1,14064793,1,1,2) [2024-12-20 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064793', 'tblTempUsageDetail_20' ) start [2024-12-20 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064793', 'tblTempUsageDetail_20' ) end [2024-12-20 18:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:56:21] Production.INFO: ==7877== Releasing lock... [2024-12-20 18:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:56:21] Production.INFO: 53 MB #Memory Used# [2024-12-20 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:57:05 [end_date_ymd] => 2024-12-20 18:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:57:18] Production.INFO: count ==3222 [2024-12-20 18:57:19] Production.ERROR: pbx CDR StartTime 2024-12-20 15:57:05 - End Time 2024-12-20 18:57:05 [2024-12-20 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064798', 'tblTempUsageDetail_20' ) start [2024-12-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064798', 'tblTempUsageDetail_20' ) end [2024-12-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064798', 'tblTempVendorCDR_20' ) start [2024-12-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064798', 'tblTempVendorCDR_20' ) end [2024-12-20 18:57:19] Production.INFO: ProcessCDR(1,14064798,1,1,2) [2024-12-20 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064798', 'tblTempUsageDetail_20' ) start [2024-12-20 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064798', 'tblTempUsageDetail_20' ) end [2024-12-20 18:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:57:24] Production.INFO: ==7968== Releasing lock... [2024-12-20 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:57:24] Production.INFO: 53 MB #Memory Used# [2024-12-20 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:58:05 [end_date_ymd] => 2024-12-20 18:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 15:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 18:58:17] Production.INFO: count ==3204 [2024-12-20 18:58:18] Production.ERROR: pbx CDR StartTime 2024-12-20 15:58:05 - End Time 2024-12-20 18:58:05 [2024-12-20 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064803', 'tblTempUsageDetail_20' ) start [2024-12-20 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064803', 'tblTempUsageDetail_20' ) end [2024-12-20 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064803', 'tblTempVendorCDR_20' ) start [2024-12-20 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064803', 'tblTempVendorCDR_20' ) end [2024-12-20 18:58:18] Production.INFO: ProcessCDR(1,14064803,1,1,2) [2024-12-20 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064803', 'tblTempUsageDetail_20' ) start [2024-12-20 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064803', 'tblTempUsageDetail_20' ) end [2024-12-20 18:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:58:23] Production.INFO: ==8063== Releasing lock... [2024-12-20 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:58:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-20 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 15:59:04 [end_date_ymd] => 2024-12-20 18:59:04 [RateCDR] => 1 ) [2024-12-20 18:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 15:59:04' and `end` < '2024-12-20 18:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 18:59:17] Production.INFO: count ==3197 [2024-12-20 18:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 15:59:04 - End Time 2024-12-20 18:59:04 [2024-12-20 18:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064808', 'tblTempUsageDetail_20' ) start [2024-12-20 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064808', 'tblTempUsageDetail_20' ) end [2024-12-20 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064808', 'tblTempVendorCDR_20' ) start [2024-12-20 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064808', 'tblTempVendorCDR_20' ) end [2024-12-20 18:59:17] Production.INFO: ProcessCDR(1,14064808,1,1,2) [2024-12-20 18:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 18:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 18:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064808', 'tblTempUsageDetail_20' ) start [2024-12-20 18:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064808', 'tblTempUsageDetail_20' ) end [2024-12-20 18:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 18:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 18:59:21] Production.INFO: ==8205== Releasing lock... [2024-12-20 18:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 18:59:21] Production.INFO: 51.75 MB #Memory Used# [2024-12-20 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:00:05 [end_date_ymd] => 2024-12-20 19:00:05 [RateCDR] => 1 ) [2024-12-20 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:00:05' and `end` < '2024-12-20 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:00:19] Production.INFO: count ==3166 [2024-12-20 19:00:20] Production.ERROR: pbx CDR StartTime 2024-12-20 16:00:05 - End Time 2024-12-20 19:00:05 [2024-12-20 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064814', 'tblTempUsageDetail_20' ) start [2024-12-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064814', 'tblTempUsageDetail_20' ) end [2024-12-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064814', 'tblTempVendorCDR_20' ) start [2024-12-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064814', 'tblTempVendorCDR_20' ) end [2024-12-20 19:00:20] Production.INFO: ProcessCDR(1,14064814,1,1,2) [2024-12-20 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064814', 'tblTempUsageDetail_20' ) start [2024-12-20 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064814', 'tblTempUsageDetail_20' ) end [2024-12-20 19:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:00:23] Production.INFO: ==8296== Releasing lock... [2024-12-20 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:00:23] Production.INFO: 51.5 MB #Memory Used# [2024-12-20 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:01:05 [end_date_ymd] => 2024-12-20 19:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:01:18] Production.INFO: count ==3085 [2024-12-20 19:01:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:01:05 - End Time 2024-12-20 19:01:05 [2024-12-20 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064819', 'tblTempUsageDetail_20' ) start [2024-12-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064819', 'tblTempUsageDetail_20' ) end [2024-12-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064819', 'tblTempVendorCDR_20' ) start [2024-12-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064819', 'tblTempVendorCDR_20' ) end [2024-12-20 19:01:19] Production.INFO: ProcessCDR(1,14064819,1,1,2) [2024-12-20 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064819', 'tblTempUsageDetail_20' ) start [2024-12-20 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064819', 'tblTempUsageDetail_20' ) end [2024-12-20 19:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:01:24] Production.INFO: ==8403== Releasing lock... [2024-12-20 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:01:24] Production.INFO: 51 MB #Memory Used# [2024-12-20 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:02:05 [end_date_ymd] => 2024-12-20 19:02:05 [RateCDR] => 1 ) [2024-12-20 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:02:05' and `end` < '2024-12-20 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:02:17] Production.INFO: count ==3054 [2024-12-20 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:02:05 - End Time 2024-12-20 19:02:05 [2024-12-20 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064824', 'tblTempUsageDetail_20' ) start [2024-12-20 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064824', 'tblTempUsageDetail_20' ) end [2024-12-20 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064824', 'tblTempVendorCDR_20' ) start [2024-12-20 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064824', 'tblTempVendorCDR_20' ) end [2024-12-20 19:02:18] Production.INFO: ProcessCDR(1,14064824,1,1,2) [2024-12-20 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064824', 'tblTempUsageDetail_20' ) start [2024-12-20 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064824', 'tblTempUsageDetail_20' ) end [2024-12-20 19:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:02:23] Production.INFO: ==8564== Releasing lock... [2024-12-20 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:02:23] Production.INFO: 50.75 MB #Memory Used# [2024-12-20 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:03:05 [end_date_ymd] => 2024-12-20 19:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:03:18] Production.INFO: count ==3047 [2024-12-20 19:03:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:03:05 - End Time 2024-12-20 19:03:05 [2024-12-20 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064829', 'tblTempUsageDetail_20' ) start [2024-12-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064829', 'tblTempUsageDetail_20' ) end [2024-12-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064829', 'tblTempVendorCDR_20' ) start [2024-12-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064829', 'tblTempVendorCDR_20' ) end [2024-12-20 19:03:19] Production.INFO: ProcessCDR(1,14064829,1,1,2) [2024-12-20 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064829', 'tblTempUsageDetail_20' ) start [2024-12-20 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064829', 'tblTempUsageDetail_20' ) end [2024-12-20 19:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:03:23] Production.INFO: ==8649== Releasing lock... [2024-12-20 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:03:23] Production.INFO: 51.25 MB #Memory Used# [2024-12-20 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:04:04 [end_date_ymd] => 2024-12-20 19:04:04 [RateCDR] => 1 ) [2024-12-20 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:04:04' and `end` < '2024-12-20 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:04:20] Production.INFO: count ==3032 [2024-12-20 19:04:21] Production.ERROR: pbx CDR StartTime 2024-12-20 16:04:04 - End Time 2024-12-20 19:04:04 [2024-12-20 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064834', 'tblTempUsageDetail_20' ) start [2024-12-20 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064834', 'tblTempUsageDetail_20' ) end [2024-12-20 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064834', 'tblTempVendorCDR_20' ) start [2024-12-20 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064834', 'tblTempVendorCDR_20' ) end [2024-12-20 19:04:21] Production.INFO: ProcessCDR(1,14064834,1,1,2) [2024-12-20 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064834', 'tblTempUsageDetail_20' ) start [2024-12-20 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064834', 'tblTempUsageDetail_20' ) end [2024-12-20 19:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:04:24] Production.INFO: ==8731== Releasing lock... [2024-12-20 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:04:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-20 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:05:05 [end_date_ymd] => 2024-12-20 19:05:05 [RateCDR] => 1 ) [2024-12-20 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:05:05' and `end` < '2024-12-20 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:05:17] Production.INFO: count ==3022 [2024-12-20 19:05:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:05:05 - End Time 2024-12-20 19:05:05 [2024-12-20 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064839', 'tblTempUsageDetail_20' ) start [2024-12-20 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064839', 'tblTempUsageDetail_20' ) end [2024-12-20 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064839', 'tblTempVendorCDR_20' ) start [2024-12-20 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064839', 'tblTempVendorCDR_20' ) end [2024-12-20 19:05:18] Production.INFO: ProcessCDR(1,14064839,1,1,2) [2024-12-20 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064839', 'tblTempUsageDetail_20' ) start [2024-12-20 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064839', 'tblTempUsageDetail_20' ) end [2024-12-20 19:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:05:21] Production.INFO: ==8891== Releasing lock... [2024-12-20 19:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:05:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-20 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:06:04 [end_date_ymd] => 2024-12-20 19:06:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:06:04' and `end` < '2024-12-20 19:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:06:20] Production.INFO: count ==3024 [2024-12-20 19:06:20] Production.ERROR: pbx CDR StartTime 2024-12-20 16:06:04 - End Time 2024-12-20 19:06:04 [2024-12-20 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064844', 'tblTempUsageDetail_20' ) start [2024-12-20 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064844', 'tblTempUsageDetail_20' ) end [2024-12-20 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064844', 'tblTempVendorCDR_20' ) start [2024-12-20 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064844', 'tblTempVendorCDR_20' ) end [2024-12-20 19:06:21] Production.INFO: ProcessCDR(1,14064844,1,1,2) [2024-12-20 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064844', 'tblTempUsageDetail_20' ) start [2024-12-20 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064844', 'tblTempUsageDetail_20' ) end [2024-12-20 19:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:06:24] Production.INFO: ==8972== Releasing lock... [2024-12-20 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:06:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-20 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:07:04 [end_date_ymd] => 2024-12-20 19:07:04 [RateCDR] => 1 ) [2024-12-20 19:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:07:04' and `end` < '2024-12-20 19:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:07:17] Production.INFO: count ==3028 [2024-12-20 19:07:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:07:04 - End Time 2024-12-20 19:07:04 [2024-12-20 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064849', 'tblTempUsageDetail_20' ) start [2024-12-20 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064849', 'tblTempUsageDetail_20' ) end [2024-12-20 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064849', 'tblTempVendorCDR_20' ) start [2024-12-20 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064849', 'tblTempVendorCDR_20' ) end [2024-12-20 19:07:18] Production.INFO: ProcessCDR(1,14064849,1,1,2) [2024-12-20 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064849', 'tblTempUsageDetail_20' ) start [2024-12-20 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064849', 'tblTempUsageDetail_20' ) end [2024-12-20 19:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:07:21] Production.INFO: ==9064== Releasing lock... [2024-12-20 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:07:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-20 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:08:05 [end_date_ymd] => 2024-12-20 19:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:08:18] Production.INFO: count ==3019 [2024-12-20 19:08:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:08:05 - End Time 2024-12-20 19:08:05 [2024-12-20 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064854', 'tblTempUsageDetail_20' ) start [2024-12-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064854', 'tblTempUsageDetail_20' ) end [2024-12-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064854', 'tblTempVendorCDR_20' ) start [2024-12-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064854', 'tblTempVendorCDR_20' ) end [2024-12-20 19:08:19] Production.INFO: ProcessCDR(1,14064854,1,1,2) [2024-12-20 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064854', 'tblTempUsageDetail_20' ) start [2024-12-20 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064854', 'tblTempUsageDetail_20' ) end [2024-12-20 19:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:08:22] Production.INFO: ==9226== Releasing lock... [2024-12-20 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:08:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-20 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:09:05 [end_date_ymd] => 2024-12-20 19:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:09:17] Production.INFO: count ==3003 [2024-12-20 19:09:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:09:05 - End Time 2024-12-20 19:09:05 [2024-12-20 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064859', 'tblTempUsageDetail_20' ) start [2024-12-20 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064859', 'tblTempUsageDetail_20' ) end [2024-12-20 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064859', 'tblTempVendorCDR_20' ) start [2024-12-20 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064859', 'tblTempVendorCDR_20' ) end [2024-12-20 19:09:18] Production.INFO: ProcessCDR(1,14064859,1,1,2) [2024-12-20 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064859', 'tblTempUsageDetail_20' ) start [2024-12-20 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064859', 'tblTempUsageDetail_20' ) end [2024-12-20 19:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:09:21] Production.INFO: ==9309== Releasing lock... [2024-12-20 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:09:21] Production.INFO: 50.75 MB #Memory Used# [2024-12-20 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:10:05 [end_date_ymd] => 2024-12-20 19:10:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:10:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:10:18] Production.INFO: count ==2996 [2024-12-20 19:10:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:10:05 - End Time 2024-12-20 19:10:05 [2024-12-20 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064865', 'tblTempUsageDetail_20' ) start [2024-12-20 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064865', 'tblTempUsageDetail_20' ) end [2024-12-20 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064865', 'tblTempVendorCDR_20' ) start [2024-12-20 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064865', 'tblTempVendorCDR_20' ) end [2024-12-20 19:10:19] Production.INFO: ProcessCDR(1,14064865,1,1,2) [2024-12-20 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064865', 'tblTempUsageDetail_20' ) start [2024-12-20 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064865', 'tblTempUsageDetail_20' ) end [2024-12-20 19:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:10:23] Production.INFO: ==9397== Releasing lock... [2024-12-20 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:10:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-20 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:11:04 [end_date_ymd] => 2024-12-20 19:11:04 [RateCDR] => 1 ) [2024-12-20 19:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:11:04' and `end` < '2024-12-20 19:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:11:17] Production.INFO: count ==2962 [2024-12-20 19:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:11:04 - End Time 2024-12-20 19:11:04 [2024-12-20 19:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064870', 'tblTempUsageDetail_20' ) start [2024-12-20 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064870', 'tblTempUsageDetail_20' ) end [2024-12-20 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064870', 'tblTempVendorCDR_20' ) start [2024-12-20 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064870', 'tblTempVendorCDR_20' ) end [2024-12-20 19:11:17] Production.INFO: ProcessCDR(1,14064870,1,1,2) [2024-12-20 19:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064870', 'tblTempUsageDetail_20' ) start [2024-12-20 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064870', 'tblTempUsageDetail_20' ) end [2024-12-20 19:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:11:21] Production.INFO: ==9481== Releasing lock... [2024-12-20 19:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:11:21] Production.INFO: 50 MB #Memory Used# [2024-12-20 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:12:05 [end_date_ymd] => 2024-12-20 19:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:12:20] Production.INFO: count ==2957 [2024-12-20 19:12:20] Production.ERROR: pbx CDR StartTime 2024-12-20 16:12:05 - End Time 2024-12-20 19:12:05 [2024-12-20 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064875', 'tblTempUsageDetail_20' ) start [2024-12-20 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064875', 'tblTempUsageDetail_20' ) end [2024-12-20 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064875', 'tblTempVendorCDR_20' ) start [2024-12-20 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064875', 'tblTempVendorCDR_20' ) end [2024-12-20 19:12:20] Production.INFO: ProcessCDR(1,14064875,1,1,2) [2024-12-20 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064875', 'tblTempUsageDetail_20' ) start [2024-12-20 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064875', 'tblTempUsageDetail_20' ) end [2024-12-20 19:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:12:23] Production.INFO: ==9643== Releasing lock... [2024-12-20 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:12:23] Production.INFO: 50 MB #Memory Used# [2024-12-20 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:13:05 [end_date_ymd] => 2024-12-20 19:13:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:13:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:13:18] Production.INFO: count ==2949 [2024-12-20 19:13:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:13:05 - End Time 2024-12-20 19:13:05 [2024-12-20 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064880', 'tblTempUsageDetail_20' ) start [2024-12-20 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064880', 'tblTempUsageDetail_20' ) end [2024-12-20 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064880', 'tblTempVendorCDR_20' ) start [2024-12-20 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064880', 'tblTempVendorCDR_20' ) end [2024-12-20 19:13:18] Production.INFO: ProcessCDR(1,14064880,1,1,2) [2024-12-20 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064880', 'tblTempUsageDetail_20' ) start [2024-12-20 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064880', 'tblTempUsageDetail_20' ) end [2024-12-20 19:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:13:23] Production.INFO: ==9727== Releasing lock... [2024-12-20 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:13:23] Production.INFO: 50 MB #Memory Used# [2024-12-20 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:14:05 [end_date_ymd] => 2024-12-20 19:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:14:17] Production.INFO: count ==2944 [2024-12-20 19:14:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:14:05 - End Time 2024-12-20 19:14:05 [2024-12-20 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064885', 'tblTempUsageDetail_20' ) start [2024-12-20 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064885', 'tblTempUsageDetail_20' ) end [2024-12-20 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064885', 'tblTempVendorCDR_20' ) start [2024-12-20 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064885', 'tblTempVendorCDR_20' ) end [2024-12-20 19:14:18] Production.INFO: ProcessCDR(1,14064885,1,1,2) [2024-12-20 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064885', 'tblTempUsageDetail_20' ) start [2024-12-20 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064885', 'tblTempUsageDetail_20' ) end [2024-12-20 19:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:14:21] Production.INFO: ==9815== Releasing lock... [2024-12-20 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:14:21] Production.INFO: 50 MB #Memory Used# [2024-12-20 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:15:05 [end_date_ymd] => 2024-12-20 19:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:15:18] Production.INFO: count ==2929 [2024-12-20 19:15:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:15:05 - End Time 2024-12-20 19:15:05 [2024-12-20 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064890', 'tblTempUsageDetail_20' ) start [2024-12-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064890', 'tblTempUsageDetail_20' ) end [2024-12-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064890', 'tblTempVendorCDR_20' ) start [2024-12-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064890', 'tblTempVendorCDR_20' ) end [2024-12-20 19:15:18] Production.INFO: ProcessCDR(1,14064890,1,1,2) [2024-12-20 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064890', 'tblTempUsageDetail_20' ) start [2024-12-20 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064890', 'tblTempUsageDetail_20' ) end [2024-12-20 19:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:15:21] Production.INFO: ==10015== Releasing lock... [2024-12-20 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:15:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-20 19:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:16:04 [end_date_ymd] => 2024-12-20 19:16:04 [RateCDR] => 1 ) [2024-12-20 19:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:16:04' and `end` < '2024-12-20 19:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:16:18] Production.INFO: count ==2897 [2024-12-20 19:16:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:16:04 - End Time 2024-12-20 19:16:04 [2024-12-20 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064895', 'tblTempUsageDetail_20' ) start [2024-12-20 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064895', 'tblTempUsageDetail_20' ) end [2024-12-20 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064895', 'tblTempVendorCDR_20' ) start [2024-12-20 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064895', 'tblTempVendorCDR_20' ) end [2024-12-20 19:16:18] Production.INFO: ProcessCDR(1,14064895,1,1,2) [2024-12-20 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064895', 'tblTempUsageDetail_20' ) start [2024-12-20 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064895', 'tblTempUsageDetail_20' ) end [2024-12-20 19:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:16:21] Production.INFO: ==10099== Releasing lock... [2024-12-20 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:16:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-20 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:17:05 [end_date_ymd] => 2024-12-20 19:17:05 [RateCDR] => 1 ) [2024-12-20 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:17:05' and `end` < '2024-12-20 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:17:17] Production.INFO: count ==2873 [2024-12-20 19:17:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:17:05 - End Time 2024-12-20 19:17:05 [2024-12-20 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064900', 'tblTempUsageDetail_20' ) start [2024-12-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064900', 'tblTempUsageDetail_20' ) end [2024-12-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064900', 'tblTempVendorCDR_20' ) start [2024-12-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064900', 'tblTempVendorCDR_20' ) end [2024-12-20 19:17:18] Production.INFO: ProcessCDR(1,14064900,1,1,2) [2024-12-20 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064900', 'tblTempUsageDetail_20' ) start [2024-12-20 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064900', 'tblTempUsageDetail_20' ) end [2024-12-20 19:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:17:22] Production.INFO: ==10183== Releasing lock... [2024-12-20 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:17:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-20 19:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:18:04 [end_date_ymd] => 2024-12-20 19:18:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:18:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:18:17] Production.INFO: count ==2863 [2024-12-20 19:18:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:18:04 - End Time 2024-12-20 19:18:04 [2024-12-20 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064905', 'tblTempUsageDetail_20' ) start [2024-12-20 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064905', 'tblTempUsageDetail_20' ) end [2024-12-20 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064905', 'tblTempVendorCDR_20' ) start [2024-12-20 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064905', 'tblTempVendorCDR_20' ) end [2024-12-20 19:18:18] Production.INFO: ProcessCDR(1,14064905,1,1,2) [2024-12-20 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064905', 'tblTempUsageDetail_20' ) start [2024-12-20 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064905', 'tblTempUsageDetail_20' ) end [2024-12-20 19:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:18:21] Production.INFO: ==10257== Releasing lock... [2024-12-20 19:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:18:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-20 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:19:04 [end_date_ymd] => 2024-12-20 19:19:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:19:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:19:17] Production.INFO: count ==2857 [2024-12-20 19:19:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:19:04 - End Time 2024-12-20 19:19:04 [2024-12-20 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064910', 'tblTempUsageDetail_20' ) start [2024-12-20 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064910', 'tblTempUsageDetail_20' ) end [2024-12-20 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064910', 'tblTempVendorCDR_20' ) start [2024-12-20 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064910', 'tblTempVendorCDR_20' ) end [2024-12-20 19:19:18] Production.INFO: ProcessCDR(1,14064910,1,1,2) [2024-12-20 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064910', 'tblTempUsageDetail_20' ) start [2024-12-20 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064910', 'tblTempUsageDetail_20' ) end [2024-12-20 19:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:19:22] Production.INFO: ==10330== Releasing lock... [2024-12-20 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:19:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-20 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:20:06 [end_date_ymd] => 2024-12-20 19:20:06 [RateCDR] => 1 ) [2024-12-20 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:20:06' and `end` < '2024-12-20 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:20:18] Production.INFO: count ==2868 [2024-12-20 19:20:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:20:06 - End Time 2024-12-20 19:20:06 [2024-12-20 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064915', 'tblTempUsageDetail_20' ) start [2024-12-20 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064915', 'tblTempUsageDetail_20' ) end [2024-12-20 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064915', 'tblTempVendorCDR_20' ) start [2024-12-20 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064915', 'tblTempVendorCDR_20' ) end [2024-12-20 19:20:19] Production.INFO: ProcessCDR(1,14064915,1,1,2) [2024-12-20 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064915', 'tblTempUsageDetail_20' ) start [2024-12-20 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064915', 'tblTempUsageDetail_20' ) end [2024-12-20 19:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:20:24] Production.INFO: ==10402== Releasing lock... [2024-12-20 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:20:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-20 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:21:04 [end_date_ymd] => 2024-12-20 19:21:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:21:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:21:17] Production.INFO: count ==2804 [2024-12-20 19:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:21:04 - End Time 2024-12-20 19:21:04 [2024-12-20 19:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064921', 'tblTempUsageDetail_20' ) start [2024-12-20 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064921', 'tblTempUsageDetail_20' ) end [2024-12-20 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064921', 'tblTempVendorCDR_20' ) start [2024-12-20 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064921', 'tblTempVendorCDR_20' ) end [2024-12-20 19:21:17] Production.INFO: ProcessCDR(1,14064921,1,1,2) [2024-12-20 19:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064921', 'tblTempUsageDetail_20' ) start [2024-12-20 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064921', 'tblTempUsageDetail_20' ) end [2024-12-20 19:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:21:22] Production.INFO: ==10477== Releasing lock... [2024-12-20 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:21:22] Production.INFO: 49 MB #Memory Used# [2024-12-20 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:22:05 [end_date_ymd] => 2024-12-20 19:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:22:17] Production.INFO: count ==2767 [2024-12-20 19:22:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:22:05 - End Time 2024-12-20 19:22:05 [2024-12-20 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064926', 'tblTempUsageDetail_20' ) start [2024-12-20 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064926', 'tblTempUsageDetail_20' ) end [2024-12-20 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064926', 'tblTempVendorCDR_20' ) start [2024-12-20 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064926', 'tblTempVendorCDR_20' ) end [2024-12-20 19:22:18] Production.INFO: ProcessCDR(1,14064926,1,1,2) [2024-12-20 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064926', 'tblTempUsageDetail_20' ) start [2024-12-20 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064926', 'tblTempUsageDetail_20' ) end [2024-12-20 19:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:22:22] Production.INFO: ==10555== Releasing lock... [2024-12-20 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:22:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-20 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:23:04 [end_date_ymd] => 2024-12-20 19:23:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:23:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:23:17] Production.INFO: count ==2742 [2024-12-20 19:23:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:23:04 - End Time 2024-12-20 19:23:04 [2024-12-20 19:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064931', 'tblTempUsageDetail_20' ) start [2024-12-20 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064931', 'tblTempUsageDetail_20' ) end [2024-12-20 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064931', 'tblTempVendorCDR_20' ) start [2024-12-20 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064931', 'tblTempVendorCDR_20' ) end [2024-12-20 19:23:17] Production.INFO: ProcessCDR(1,14064931,1,1,2) [2024-12-20 19:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064931', 'tblTempUsageDetail_20' ) start [2024-12-20 19:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064931', 'tblTempUsageDetail_20' ) end [2024-12-20 19:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:23:21] Production.INFO: ==10627== Releasing lock... [2024-12-20 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:23:21] Production.INFO: 49 MB #Memory Used# [2024-12-20 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:24:04 [end_date_ymd] => 2024-12-20 19:24:04 [RateCDR] => 1 ) [2024-12-20 19:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:24:04' and `end` < '2024-12-20 19:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:24:17] Production.INFO: count ==2731 [2024-12-20 19:24:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:24:04 - End Time 2024-12-20 19:24:04 [2024-12-20 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064936', 'tblTempUsageDetail_20' ) start [2024-12-20 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064936', 'tblTempUsageDetail_20' ) end [2024-12-20 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064936', 'tblTempVendorCDR_20' ) start [2024-12-20 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064936', 'tblTempVendorCDR_20' ) end [2024-12-20 19:24:18] Production.INFO: ProcessCDR(1,14064936,1,1,2) [2024-12-20 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064936', 'tblTempUsageDetail_20' ) start [2024-12-20 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064936', 'tblTempUsageDetail_20' ) end [2024-12-20 19:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:24:22] Production.INFO: ==10697== Releasing lock... [2024-12-20 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:24:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-20 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:25:04 [end_date_ymd] => 2024-12-20 19:25:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:25:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:25:19] Production.INFO: count ==2724 [2024-12-20 19:25:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:25:04 - End Time 2024-12-20 19:25:04 [2024-12-20 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064941', 'tblTempUsageDetail_20' ) start [2024-12-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064941', 'tblTempUsageDetail_20' ) end [2024-12-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064941', 'tblTempVendorCDR_20' ) start [2024-12-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064941', 'tblTempVendorCDR_20' ) end [2024-12-20 19:25:19] Production.INFO: ProcessCDR(1,14064941,1,1,2) [2024-12-20 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064941', 'tblTempUsageDetail_20' ) start [2024-12-20 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064941', 'tblTempUsageDetail_20' ) end [2024-12-20 19:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:25:24] Production.INFO: ==10769== Releasing lock... [2024-12-20 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:25:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-20 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:26:04 [end_date_ymd] => 2024-12-20 19:26:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:26:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:26:18] Production.INFO: count ==2708 [2024-12-20 19:26:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:26:04 - End Time 2024-12-20 19:26:04 [2024-12-20 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064946', 'tblTempUsageDetail_20' ) start [2024-12-20 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064946', 'tblTempUsageDetail_20' ) end [2024-12-20 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064946', 'tblTempVendorCDR_20' ) start [2024-12-20 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064946', 'tblTempVendorCDR_20' ) end [2024-12-20 19:26:19] Production.INFO: ProcessCDR(1,14064946,1,1,2) [2024-12-20 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064946', 'tblTempUsageDetail_20' ) start [2024-12-20 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064946', 'tblTempUsageDetail_20' ) end [2024-12-20 19:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:26:22] Production.INFO: ==10840== Releasing lock... [2024-12-20 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:26:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-20 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:27:04 [end_date_ymd] => 2024-12-20 19:27:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:27:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:27:18] Production.INFO: count ==2703 [2024-12-20 19:27:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:27:04 - End Time 2024-12-20 19:27:04 [2024-12-20 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064951', 'tblTempUsageDetail_20' ) start [2024-12-20 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064951', 'tblTempUsageDetail_20' ) end [2024-12-20 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064951', 'tblTempVendorCDR_20' ) start [2024-12-20 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064951', 'tblTempVendorCDR_20' ) end [2024-12-20 19:27:19] Production.INFO: ProcessCDR(1,14064951,1,1,2) [2024-12-20 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064951', 'tblTempUsageDetail_20' ) start [2024-12-20 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064951', 'tblTempUsageDetail_20' ) end [2024-12-20 19:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:27:22] Production.INFO: ==10910== Releasing lock... [2024-12-20 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:27:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-20 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:28:04 [end_date_ymd] => 2024-12-20 19:28:04 [RateCDR] => 1 ) [2024-12-20 19:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:28:04' and `end` < '2024-12-20 19:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:28:18] Production.INFO: count ==2695 [2024-12-20 19:28:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:28:04 - End Time 2024-12-20 19:28:04 [2024-12-20 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064956', 'tblTempUsageDetail_20' ) start [2024-12-20 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064956', 'tblTempUsageDetail_20' ) end [2024-12-20 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064956', 'tblTempVendorCDR_20' ) start [2024-12-20 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064956', 'tblTempVendorCDR_20' ) end [2024-12-20 19:28:19] Production.INFO: ProcessCDR(1,14064956,1,1,2) [2024-12-20 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064956', 'tblTempUsageDetail_20' ) start [2024-12-20 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064956', 'tblTempUsageDetail_20' ) end [2024-12-20 19:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:28:22] Production.INFO: ==10982== Releasing lock... [2024-12-20 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:28:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-20 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:29:05 [end_date_ymd] => 2024-12-20 19:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:29:17] Production.INFO: count ==2692 [2024-12-20 19:29:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:29:05 - End Time 2024-12-20 19:29:05 [2024-12-20 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064961', 'tblTempUsageDetail_20' ) start [2024-12-20 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064961', 'tblTempUsageDetail_20' ) end [2024-12-20 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064961', 'tblTempVendorCDR_20' ) start [2024-12-20 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064961', 'tblTempVendorCDR_20' ) end [2024-12-20 19:29:18] Production.INFO: ProcessCDR(1,14064961,1,1,2) [2024-12-20 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064961', 'tblTempUsageDetail_20' ) start [2024-12-20 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064961', 'tblTempUsageDetail_20' ) end [2024-12-20 19:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:29:22] Production.INFO: ==11055== Releasing lock... [2024-12-20 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:29:22] Production.INFO: 48 MB #Memory Used# [2024-12-20 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:30:05 [end_date_ymd] => 2024-12-20 19:30:05 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:30:05' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:30:21] Production.INFO: count ==2684 [2024-12-20 19:30:22] Production.ERROR: pbx CDR StartTime 2024-12-20 16:30:05 - End Time 2024-12-20 19:30:05 [2024-12-20 19:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064967', 'tblTempUsageDetail_20' ) start [2024-12-20 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064967', 'tblTempUsageDetail_20' ) end [2024-12-20 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064967', 'tblTempVendorCDR_20' ) start [2024-12-20 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064967', 'tblTempVendorCDR_20' ) end [2024-12-20 19:30:22] Production.INFO: ProcessCDR(1,14064967,1,1,2) [2024-12-20 19:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064967', 'tblTempUsageDetail_20' ) start [2024-12-20 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064967', 'tblTempUsageDetail_20' ) end [2024-12-20 19:30:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:30:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:30:26] Production.INFO: ==11165== Releasing lock... [2024-12-20 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:30:26] Production.INFO: 48 MB #Memory Used# [2024-12-20 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:31:05 [end_date_ymd] => 2024-12-20 19:31:05 [RateCDR] => 1 ) [2024-12-20 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:31:05' and `end` < '2024-12-20 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:31:18] Production.INFO: count ==2695 [2024-12-20 19:31:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:31:05 - End Time 2024-12-20 19:31:05 [2024-12-20 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064972', 'tblTempUsageDetail_20' ) start [2024-12-20 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064972', 'tblTempUsageDetail_20' ) end [2024-12-20 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064972', 'tblTempVendorCDR_20' ) start [2024-12-20 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064972', 'tblTempVendorCDR_20' ) end [2024-12-20 19:31:18] Production.INFO: ProcessCDR(1,14064972,1,1,2) [2024-12-20 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064972', 'tblTempUsageDetail_20' ) start [2024-12-20 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064972', 'tblTempUsageDetail_20' ) end [2024-12-20 19:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:31:21] Production.INFO: ==11240== Releasing lock... [2024-12-20 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:31:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-20 19:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:32:04 [end_date_ymd] => 2024-12-20 19:32:04 [RateCDR] => 1 ) [2024-12-20 19:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:32:04' and `end` < '2024-12-20 19:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:32:16] Production.INFO: count ==2682 [2024-12-20 19:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:32:04 - End Time 2024-12-20 19:32:04 [2024-12-20 19:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064977', 'tblTempUsageDetail_20' ) start [2024-12-20 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064977', 'tblTempUsageDetail_20' ) end [2024-12-20 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064977', 'tblTempVendorCDR_20' ) start [2024-12-20 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064977', 'tblTempVendorCDR_20' ) end [2024-12-20 19:32:17] Production.INFO: ProcessCDR(1,14064977,1,1,2) [2024-12-20 19:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064977', 'tblTempUsageDetail_20' ) start [2024-12-20 19:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064977', 'tblTempUsageDetail_20' ) end [2024-12-20 19:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:32:20] Production.INFO: ==11308== Releasing lock... [2024-12-20 19:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:32:20] Production.INFO: 48.25 MB #Memory Used# [2024-12-20 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:33:04 [end_date_ymd] => 2024-12-20 19:33:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:33:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:33:16] Production.INFO: count ==2672 [2024-12-20 19:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:33:04 - End Time 2024-12-20 19:33:04 [2024-12-20 19:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064982', 'tblTempUsageDetail_20' ) start [2024-12-20 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064982', 'tblTempUsageDetail_20' ) end [2024-12-20 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064982', 'tblTempVendorCDR_20' ) start [2024-12-20 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064982', 'tblTempVendorCDR_20' ) end [2024-12-20 19:33:17] Production.INFO: ProcessCDR(1,14064982,1,1,2) [2024-12-20 19:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064982', 'tblTempUsageDetail_20' ) start [2024-12-20 19:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064982', 'tblTempUsageDetail_20' ) end [2024-12-20 19:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:33:20] Production.INFO: ==11378== Releasing lock... [2024-12-20 19:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:33:20] Production.INFO: 48 MB #Memory Used# [2024-12-20 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:34:04 [end_date_ymd] => 2024-12-20 19:34:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:34:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:34:17] Production.INFO: count ==2658 [2024-12-20 19:34:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:34:04 - End Time 2024-12-20 19:34:04 [2024-12-20 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064987', 'tblTempUsageDetail_20' ) start [2024-12-20 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064987', 'tblTempUsageDetail_20' ) end [2024-12-20 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064987', 'tblTempVendorCDR_20' ) start [2024-12-20 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064987', 'tblTempVendorCDR_20' ) end [2024-12-20 19:34:18] Production.INFO: ProcessCDR(1,14064987,1,1,2) [2024-12-20 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064987', 'tblTempUsageDetail_20' ) start [2024-12-20 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064987', 'tblTempUsageDetail_20' ) end [2024-12-20 19:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:34:21] Production.INFO: ==11449== Releasing lock... [2024-12-20 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:34:21] Production.INFO: 48 MB #Memory Used# [2024-12-20 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:35:05 [end_date_ymd] => 2024-12-20 19:35:05 [RateCDR] => 1 ) [2024-12-20 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:35:05' and `end` < '2024-12-20 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:35:18] Production.INFO: count ==2650 [2024-12-20 19:35:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:35:05 - End Time 2024-12-20 19:35:05 [2024-12-20 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064992', 'tblTempUsageDetail_20' ) start [2024-12-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064992', 'tblTempUsageDetail_20' ) end [2024-12-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064992', 'tblTempVendorCDR_20' ) start [2024-12-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064992', 'tblTempVendorCDR_20' ) end [2024-12-20 19:35:18] Production.INFO: ProcessCDR(1,14064992,1,1,2) [2024-12-20 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064992', 'tblTempUsageDetail_20' ) start [2024-12-20 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064992', 'tblTempUsageDetail_20' ) end [2024-12-20 19:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:35:22] Production.INFO: ==11523== Releasing lock... [2024-12-20 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:35:22] Production.INFO: 48 MB #Memory Used# [2024-12-20 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:36:05 [end_date_ymd] => 2024-12-20 19:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:36:17] Production.INFO: count ==2620 [2024-12-20 19:36:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:36:05 - End Time 2024-12-20 19:36:05 [2024-12-20 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064997', 'tblTempUsageDetail_20' ) start [2024-12-20 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14064997', 'tblTempUsageDetail_20' ) end [2024-12-20 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064997', 'tblTempVendorCDR_20' ) start [2024-12-20 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14064997', 'tblTempVendorCDR_20' ) end [2024-12-20 19:36:18] Production.INFO: ProcessCDR(1,14064997,1,1,2) [2024-12-20 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14064997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14064997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14064997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14064997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064997', 'tblTempUsageDetail_20' ) start [2024-12-20 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14064997', 'tblTempUsageDetail_20' ) end [2024-12-20 19:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:36:21] Production.INFO: ==11598== Releasing lock... [2024-12-20 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:36:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-20 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:37:05 [end_date_ymd] => 2024-12-20 19:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:37:18] Production.INFO: count ==2613 [2024-12-20 19:37:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:37:05 - End Time 2024-12-20 19:37:05 [2024-12-20 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065002', 'tblTempUsageDetail_20' ) start [2024-12-20 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065002', 'tblTempUsageDetail_20' ) end [2024-12-20 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065002', 'tblTempVendorCDR_20' ) start [2024-12-20 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065002', 'tblTempVendorCDR_20' ) end [2024-12-20 19:37:18] Production.INFO: ProcessCDR(1,14065002,1,1,2) [2024-12-20 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065002', 'tblTempUsageDetail_20' ) start [2024-12-20 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065002', 'tblTempUsageDetail_20' ) end [2024-12-20 19:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:37:21] Production.INFO: ==11669== Releasing lock... [2024-12-20 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:37:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-20 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:38:04 [end_date_ymd] => 2024-12-20 19:38:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:38:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:38:18] Production.INFO: count ==2607 [2024-12-20 19:38:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:38:04 - End Time 2024-12-20 19:38:04 [2024-12-20 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065004', 'tblTempUsageDetail_20' ) start [2024-12-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065004', 'tblTempUsageDetail_20' ) end [2024-12-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065004', 'tblTempVendorCDR_20' ) start [2024-12-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065004', 'tblTempVendorCDR_20' ) end [2024-12-20 19:38:19] Production.INFO: ProcessCDR(1,14065004,1,1,2) [2024-12-20 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065004', 'tblTempUsageDetail_20' ) start [2024-12-20 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065004', 'tblTempUsageDetail_20' ) end [2024-12-20 19:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:38:22] Production.INFO: ==11744== Releasing lock... [2024-12-20 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:38:22] Production.INFO: 48 MB #Memory Used# [2024-12-20 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:39:05 [end_date_ymd] => 2024-12-20 19:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:39:17] Production.INFO: count ==2594 [2024-12-20 19:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:39:05 - End Time 2024-12-20 19:39:05 [2024-12-20 19:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065012', 'tblTempUsageDetail_20' ) start [2024-12-20 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065012', 'tblTempUsageDetail_20' ) end [2024-12-20 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065012', 'tblTempVendorCDR_20' ) start [2024-12-20 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065012', 'tblTempVendorCDR_20' ) end [2024-12-20 19:39:18] Production.INFO: ProcessCDR(1,14065012,1,1,2) [2024-12-20 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065012', 'tblTempUsageDetail_20' ) start [2024-12-20 19:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065012', 'tblTempUsageDetail_20' ) end [2024-12-20 19:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:39:21] Production.INFO: ==11816== Releasing lock... [2024-12-20 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:39:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-20 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:40:05 [end_date_ymd] => 2024-12-20 19:40:05 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:40:05' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:40:18] Production.INFO: count ==2579 [2024-12-20 19:40:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:40:05 - End Time 2024-12-20 19:40:05 [2024-12-20 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065018', 'tblTempUsageDetail_20' ) start [2024-12-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065018', 'tblTempUsageDetail_20' ) end [2024-12-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065018', 'tblTempVendorCDR_20' ) start [2024-12-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065018', 'tblTempVendorCDR_20' ) end [2024-12-20 19:40:19] Production.INFO: ProcessCDR(1,14065018,1,1,2) [2024-12-20 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065018', 'tblTempUsageDetail_20' ) start [2024-12-20 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065018', 'tblTempUsageDetail_20' ) end [2024-12-20 19:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:40:22] Production.INFO: ==11887== Releasing lock... [2024-12-20 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:40:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-20 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:41:04 [end_date_ymd] => 2024-12-20 19:41:04 [RateCDR] => 1 ) [2024-12-20 19:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:41:04' and `end` < '2024-12-20 19:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:41:18] Production.INFO: count ==2537 [2024-12-20 19:41:19] Production.ERROR: pbx CDR StartTime 2024-12-20 16:41:04 - End Time 2024-12-20 19:41:04 [2024-12-20 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065023', 'tblTempUsageDetail_20' ) start [2024-12-20 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065023', 'tblTempUsageDetail_20' ) end [2024-12-20 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065023', 'tblTempVendorCDR_20' ) start [2024-12-20 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065023', 'tblTempVendorCDR_20' ) end [2024-12-20 19:41:19] Production.INFO: ProcessCDR(1,14065023,1,1,2) [2024-12-20 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065023', 'tblTempUsageDetail_20' ) start [2024-12-20 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065023', 'tblTempUsageDetail_20' ) end [2024-12-20 19:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:41:22] Production.INFO: ==11960== Releasing lock... [2024-12-20 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:41:22] Production.INFO: 47 MB #Memory Used# [2024-12-20 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:42:05 [end_date_ymd] => 2024-12-20 19:42:05 [RateCDR] => 1 ) [2024-12-20 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 16:42:05' and `end` < '2024-12-20 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 19:42:17] Production.INFO: count ==2535 [2024-12-20 19:42:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:42:05 - End Time 2024-12-20 19:42:05 [2024-12-20 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065027', 'tblTempUsageDetail_20' ) start [2024-12-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065027', 'tblTempUsageDetail_20' ) end [2024-12-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065027', 'tblTempVendorCDR_20' ) start [2024-12-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065027', 'tblTempVendorCDR_20' ) end [2024-12-20 19:42:18] Production.INFO: ProcessCDR(1,14065027,1,1,2) [2024-12-20 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065027', 'tblTempUsageDetail_20' ) start [2024-12-20 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065027', 'tblTempUsageDetail_20' ) end [2024-12-20 19:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:42:21] Production.INFO: ==12031== Releasing lock... [2024-12-20 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:42:21] Production.INFO: 47 MB #Memory Used# [2024-12-20 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:43:04 [end_date_ymd] => 2024-12-20 19:43:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:43:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:43:16] Production.INFO: count ==2533 [2024-12-20 19:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:43:04 - End Time 2024-12-20 19:43:04 [2024-12-20 19:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065033', 'tblTempUsageDetail_20' ) start [2024-12-20 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065033', 'tblTempUsageDetail_20' ) end [2024-12-20 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065033', 'tblTempVendorCDR_20' ) start [2024-12-20 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065033', 'tblTempVendorCDR_20' ) end [2024-12-20 19:43:17] Production.INFO: ProcessCDR(1,14065033,1,1,2) [2024-12-20 19:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065033', 'tblTempUsageDetail_20' ) start [2024-12-20 19:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065033', 'tblTempUsageDetail_20' ) end [2024-12-20 19:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:43:20] Production.INFO: ==12104== Releasing lock... [2024-12-20 19:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:43:20] Production.INFO: 47 MB #Memory Used# [2024-12-20 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:44:05 [end_date_ymd] => 2024-12-20 19:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:44:18] Production.INFO: count ==2526 [2024-12-20 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:44:05 - End Time 2024-12-20 19:44:05 [2024-12-20 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065038', 'tblTempUsageDetail_20' ) start [2024-12-20 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065038', 'tblTempUsageDetail_20' ) end [2024-12-20 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065038', 'tblTempVendorCDR_20' ) start [2024-12-20 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065038', 'tblTempVendorCDR_20' ) end [2024-12-20 19:44:18] Production.INFO: ProcessCDR(1,14065038,1,1,2) [2024-12-20 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065038', 'tblTempUsageDetail_20' ) start [2024-12-20 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065038', 'tblTempUsageDetail_20' ) end [2024-12-20 19:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:44:21] Production.INFO: ==12176== Releasing lock... [2024-12-20 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:44:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-20 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:45:05 [end_date_ymd] => 2024-12-20 19:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:45:17] Production.INFO: count ==2519 [2024-12-20 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:45:05 - End Time 2024-12-20 19:45:05 [2024-12-20 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065043', 'tblTempUsageDetail_20' ) start [2024-12-20 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065043', 'tblTempUsageDetail_20' ) end [2024-12-20 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065043', 'tblTempVendorCDR_20' ) start [2024-12-20 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065043', 'tblTempVendorCDR_20' ) end [2024-12-20 19:45:18] Production.INFO: ProcessCDR(1,14065043,1,1,2) [2024-12-20 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065043', 'tblTempUsageDetail_20' ) start [2024-12-20 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065043', 'tblTempUsageDetail_20' ) end [2024-12-20 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:45:21] Production.INFO: ==12247== Releasing lock... [2024-12-20 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:45:21] Production.INFO: 47 MB #Memory Used# [2024-12-20 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:46:05 [end_date_ymd] => 2024-12-20 19:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:46:18] Production.INFO: count ==2505 [2024-12-20 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:46:05 - End Time 2024-12-20 19:46:05 [2024-12-20 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065048', 'tblTempUsageDetail_20' ) start [2024-12-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065048', 'tblTempUsageDetail_20' ) end [2024-12-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065048', 'tblTempVendorCDR_20' ) start [2024-12-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065048', 'tblTempVendorCDR_20' ) end [2024-12-20 19:46:19] Production.INFO: ProcessCDR(1,14065048,1,1,2) [2024-12-20 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065048', 'tblTempUsageDetail_20' ) start [2024-12-20 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065048', 'tblTempUsageDetail_20' ) end [2024-12-20 19:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:46:22] Production.INFO: ==12357== Releasing lock... [2024-12-20 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:46:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-20 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:47:05 [end_date_ymd] => 2024-12-20 19:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:47:17] Production.INFO: count ==2494 [2024-12-20 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:47:05 - End Time 2024-12-20 19:47:05 [2024-12-20 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065053', 'tblTempUsageDetail_20' ) start [2024-12-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065053', 'tblTempUsageDetail_20' ) end [2024-12-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065053', 'tblTempVendorCDR_20' ) start [2024-12-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065053', 'tblTempVendorCDR_20' ) end [2024-12-20 19:47:18] Production.INFO: ProcessCDR(1,14065053,1,1,2) [2024-12-20 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065053', 'tblTempUsageDetail_20' ) start [2024-12-20 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065053', 'tblTempUsageDetail_20' ) end [2024-12-20 19:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:47:21] Production.INFO: ==12428== Releasing lock... [2024-12-20 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:47:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-20 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:48:05 [end_date_ymd] => 2024-12-20 19:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:48:17] Production.INFO: count ==2494 [2024-12-20 19:48:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:48:05 - End Time 2024-12-20 19:48:05 [2024-12-20 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065058', 'tblTempUsageDetail_20' ) start [2024-12-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065058', 'tblTempUsageDetail_20' ) end [2024-12-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065058', 'tblTempVendorCDR_20' ) start [2024-12-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065058', 'tblTempVendorCDR_20' ) end [2024-12-20 19:48:18] Production.INFO: ProcessCDR(1,14065058,1,1,2) [2024-12-20 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065058', 'tblTempUsageDetail_20' ) start [2024-12-20 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065058', 'tblTempUsageDetail_20' ) end [2024-12-20 19:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:48:23] Production.INFO: ==12502== Releasing lock... [2024-12-20 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:48:23] Production.INFO: 47 MB #Memory Used# [2024-12-20 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:49:04 [end_date_ymd] => 2024-12-20 19:49:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:49:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:49:16] Production.INFO: count ==2482 [2024-12-20 19:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:49:04 - End Time 2024-12-20 19:49:04 [2024-12-20 19:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065063', 'tblTempUsageDetail_20' ) start [2024-12-20 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065063', 'tblTempUsageDetail_20' ) end [2024-12-20 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065063', 'tblTempVendorCDR_20' ) start [2024-12-20 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065063', 'tblTempVendorCDR_20' ) end [2024-12-20 19:49:17] Production.INFO: ProcessCDR(1,14065063,1,1,2) [2024-12-20 19:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065063', 'tblTempUsageDetail_20' ) start [2024-12-20 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065063', 'tblTempUsageDetail_20' ) end [2024-12-20 19:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:49:21] Production.INFO: ==12576== Releasing lock... [2024-12-20 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:49:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-20 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:50:05 [end_date_ymd] => 2024-12-20 19:50:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:50:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:50:21] Production.INFO: count ==2479 [2024-12-20 19:50:22] Production.ERROR: pbx CDR StartTime 2024-12-20 16:50:05 - End Time 2024-12-20 19:50:05 [2024-12-20 19:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065069', 'tblTempUsageDetail_20' ) start [2024-12-20 19:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065069', 'tblTempUsageDetail_20' ) end [2024-12-20 19:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065069', 'tblTempVendorCDR_20' ) start [2024-12-20 19:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065069', 'tblTempVendorCDR_20' ) end [2024-12-20 19:50:22] Production.INFO: ProcessCDR(1,14065069,1,1,2) [2024-12-20 19:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065069', 'tblTempUsageDetail_20' ) start [2024-12-20 19:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065069', 'tblTempUsageDetail_20' ) end [2024-12-20 19:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:50:26] Production.INFO: ==12652== Releasing lock... [2024-12-20 19:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:50:26] Production.INFO: 46.75 MB #Memory Used# [2024-12-20 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:51:04 [end_date_ymd] => 2024-12-20 19:51:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:51:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:51:16] Production.INFO: count ==2449 [2024-12-20 19:51:16] Production.ERROR: pbx CDR StartTime 2024-12-20 16:51:04 - End Time 2024-12-20 19:51:04 [2024-12-20 19:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065074', 'tblTempUsageDetail_20' ) start [2024-12-20 19:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065074', 'tblTempUsageDetail_20' ) end [2024-12-20 19:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065074', 'tblTempVendorCDR_20' ) start [2024-12-20 19:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065074', 'tblTempVendorCDR_20' ) end [2024-12-20 19:51:16] Production.INFO: ProcessCDR(1,14065074,1,1,2) [2024-12-20 19:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065074', 'tblTempUsageDetail_20' ) start [2024-12-20 19:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065074', 'tblTempUsageDetail_20' ) end [2024-12-20 19:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:51:19] Production.INFO: ==12723== Releasing lock... [2024-12-20 19:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:51:19] Production.INFO: 46.5 MB #Memory Used# [2024-12-20 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:52:05 [end_date_ymd] => 2024-12-20 19:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:52:18] Production.INFO: count ==2442 [2024-12-20 19:52:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:52:05 - End Time 2024-12-20 19:52:05 [2024-12-20 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065079', 'tblTempUsageDetail_20' ) start [2024-12-20 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065079', 'tblTempUsageDetail_20' ) end [2024-12-20 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065079', 'tblTempVendorCDR_20' ) start [2024-12-20 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065079', 'tblTempVendorCDR_20' ) end [2024-12-20 19:52:18] Production.INFO: ProcessCDR(1,14065079,1,1,2) [2024-12-20 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065079', 'tblTempUsageDetail_20' ) start [2024-12-20 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065079', 'tblTempUsageDetail_20' ) end [2024-12-20 19:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:52:23] Production.INFO: ==12795== Releasing lock... [2024-12-20 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:52:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-20 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:53:04 [end_date_ymd] => 2024-12-20 19:53:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:53:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:53:17] Production.INFO: count ==2428 [2024-12-20 19:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:53:04 - End Time 2024-12-20 19:53:04 [2024-12-20 19:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065084', 'tblTempUsageDetail_20' ) start [2024-12-20 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065084', 'tblTempUsageDetail_20' ) end [2024-12-20 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065084', 'tblTempVendorCDR_20' ) start [2024-12-20 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065084', 'tblTempVendorCDR_20' ) end [2024-12-20 19:53:17] Production.INFO: ProcessCDR(1,14065084,1,1,2) [2024-12-20 19:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065084', 'tblTempUsageDetail_20' ) start [2024-12-20 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065084', 'tblTempUsageDetail_20' ) end [2024-12-20 19:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:53:22] Production.INFO: ==12870== Releasing lock... [2024-12-20 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:53:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-20 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:54:05 [end_date_ymd] => 2024-12-20 19:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:54:18] Production.INFO: count ==2416 [2024-12-20 19:54:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:54:05 - End Time 2024-12-20 19:54:05 [2024-12-20 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065089', 'tblTempUsageDetail_20' ) start [2024-12-20 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065089', 'tblTempUsageDetail_20' ) end [2024-12-20 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065089', 'tblTempVendorCDR_20' ) start [2024-12-20 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065089', 'tblTempVendorCDR_20' ) end [2024-12-20 19:54:18] Production.INFO: ProcessCDR(1,14065089,1,1,2) [2024-12-20 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065089', 'tblTempUsageDetail_20' ) start [2024-12-20 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065089', 'tblTempUsageDetail_20' ) end [2024-12-20 19:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:54:21] Production.INFO: ==12947== Releasing lock... [2024-12-20 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:54:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-20 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:55:05 [end_date_ymd] => 2024-12-20 19:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:55:17] Production.INFO: count ==2411 [2024-12-20 19:55:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:55:05 - End Time 2024-12-20 19:55:05 [2024-12-20 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065094', 'tblTempUsageDetail_20' ) start [2024-12-20 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065094', 'tblTempUsageDetail_20' ) end [2024-12-20 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065094', 'tblTempVendorCDR_20' ) start [2024-12-20 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065094', 'tblTempVendorCDR_20' ) end [2024-12-20 19:55:18] Production.INFO: ProcessCDR(1,14065094,1,1,2) [2024-12-20 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065094', 'tblTempUsageDetail_20' ) start [2024-12-20 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065094', 'tblTempUsageDetail_20' ) end [2024-12-20 19:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:55:21] Production.INFO: ==13022== Releasing lock... [2024-12-20 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:55:21] Production.INFO: 46 MB #Memory Used# [2024-12-20 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:56:05 [end_date_ymd] => 2024-12-20 19:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:56:17] Production.INFO: count ==2399 [2024-12-20 19:56:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:56:05 - End Time 2024-12-20 19:56:05 [2024-12-20 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065099', 'tblTempUsageDetail_20' ) start [2024-12-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065099', 'tblTempUsageDetail_20' ) end [2024-12-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065099', 'tblTempVendorCDR_20' ) start [2024-12-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065099', 'tblTempVendorCDR_20' ) end [2024-12-20 19:56:18] Production.INFO: ProcessCDR(1,14065099,1,1,2) [2024-12-20 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065099', 'tblTempUsageDetail_20' ) start [2024-12-20 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065099', 'tblTempUsageDetail_20' ) end [2024-12-20 19:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:56:21] Production.INFO: ==13094== Releasing lock... [2024-12-20 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:56:21] Production.INFO: 46 MB #Memory Used# [2024-12-20 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:57:05 [end_date_ymd] => 2024-12-20 19:57:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:57:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:57:17] Production.INFO: count ==2373 [2024-12-20 19:57:18] Production.ERROR: pbx CDR StartTime 2024-12-20 16:57:05 - End Time 2024-12-20 19:57:05 [2024-12-20 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065104', 'tblTempUsageDetail_20' ) start [2024-12-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065104', 'tblTempUsageDetail_20' ) end [2024-12-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065104', 'tblTempVendorCDR_20' ) start [2024-12-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065104', 'tblTempVendorCDR_20' ) end [2024-12-20 19:57:18] Production.INFO: ProcessCDR(1,14065104,1,1,2) [2024-12-20 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065104', 'tblTempUsageDetail_20' ) start [2024-12-20 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065104', 'tblTempUsageDetail_20' ) end [2024-12-20 19:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:57:22] Production.INFO: ==13169== Releasing lock... [2024-12-20 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:57:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-20 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:58:04 [end_date_ymd] => 2024-12-20 19:58:04 [RateCDR] => 1 ) [2024-12-20 19: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` >= '2024-12-20 16:58:04' and `end` < '2024-12-20 19: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 ,'') [2024-12-20 19:58:17] Production.INFO: count ==2374 [2024-12-20 19:58:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:58:04 - End Time 2024-12-20 19:58:04 [2024-12-20 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065109', 'tblTempUsageDetail_20' ) start [2024-12-20 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065109', 'tblTempUsageDetail_20' ) end [2024-12-20 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065109', 'tblTempVendorCDR_20' ) start [2024-12-20 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065109', 'tblTempVendorCDR_20' ) end [2024-12-20 19:58:17] Production.INFO: ProcessCDR(1,14065109,1,1,2) [2024-12-20 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065109', 'tblTempUsageDetail_20' ) start [2024-12-20 19:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065109', 'tblTempUsageDetail_20' ) end [2024-12-20 19:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:58:20] Production.INFO: ==13246== Releasing lock... [2024-12-20 19:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:58:20] Production.INFO: 45.75 MB #Memory Used# [2024-12-20 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 16:59:05 [end_date_ymd] => 2024-12-20 19:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 16:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 19:59:17] Production.INFO: count ==2371 [2024-12-20 19:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 16:59:05 - End Time 2024-12-20 19:59:05 [2024-12-20 19:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065114', 'tblTempUsageDetail_20' ) start [2024-12-20 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065114', 'tblTempUsageDetail_20' ) end [2024-12-20 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065114', 'tblTempVendorCDR_20' ) start [2024-12-20 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065114', 'tblTempVendorCDR_20' ) end [2024-12-20 19:59:17] Production.INFO: ProcessCDR(1,14065114,1,1,2) [2024-12-20 19:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 19:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 19:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065114', 'tblTempUsageDetail_20' ) start [2024-12-20 19:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065114', 'tblTempUsageDetail_20' ) end [2024-12-20 19:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 19:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 19:59:20] Production.INFO: ==13321== Releasing lock... [2024-12-20 19:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 19:59:20] Production.INFO: 45.5 MB #Memory Used# [2024-12-20 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:00:05 [end_date_ymd] => 2024-12-20 20:00:05 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:00:05' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:00:17] Production.INFO: count ==2367 [2024-12-20 20:00:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:00:05 - End Time 2024-12-20 20:00:05 [2024-12-20 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065120', 'tblTempUsageDetail_20' ) start [2024-12-20 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065120', 'tblTempUsageDetail_20' ) end [2024-12-20 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065120', 'tblTempVendorCDR_20' ) start [2024-12-20 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065120', 'tblTempVendorCDR_20' ) end [2024-12-20 20:00:18] Production.INFO: ProcessCDR(1,14065120,1,1,2) [2024-12-20 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065120', 'tblTempUsageDetail_20' ) start [2024-12-20 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065120', 'tblTempUsageDetail_20' ) end [2024-12-20 20:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:00:21] Production.INFO: ==13395== Releasing lock... [2024-12-20 20:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:00:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-20 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:01:04 [end_date_ymd] => 2024-12-20 20:01:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:01:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:01:16] Production.INFO: count ==2282 [2024-12-20 20:01:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:01:04 - End Time 2024-12-20 20:01:04 [2024-12-20 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065125', 'tblTempUsageDetail_20' ) start [2024-12-20 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065125', 'tblTempUsageDetail_20' ) end [2024-12-20 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065125', 'tblTempVendorCDR_20' ) start [2024-12-20 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065125', 'tblTempVendorCDR_20' ) end [2024-12-20 20:01:17] Production.INFO: ProcessCDR(1,14065125,1,1,2) [2024-12-20 20:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065125', 'tblTempUsageDetail_20' ) start [2024-12-20 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065125', 'tblTempUsageDetail_20' ) end [2024-12-20 20:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:01:20] Production.INFO: ==13522== Releasing lock... [2024-12-20 20:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:01:20] Production.INFO: 45 MB #Memory Used# [2024-12-20 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:02:05 [end_date_ymd] => 2024-12-20 20:02:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:02:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:02:17] Production.INFO: count ==2269 [2024-12-20 20:02:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:02:05 - End Time 2024-12-20 20:02:05 [2024-12-20 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065130', 'tblTempUsageDetail_20' ) start [2024-12-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065130', 'tblTempUsageDetail_20' ) end [2024-12-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065130', 'tblTempVendorCDR_20' ) start [2024-12-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065130', 'tblTempVendorCDR_20' ) end [2024-12-20 20:02:18] Production.INFO: ProcessCDR(1,14065130,1,1,2) [2024-12-20 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065130', 'tblTempUsageDetail_20' ) start [2024-12-20 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065130', 'tblTempUsageDetail_20' ) end [2024-12-20 20:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:02:21] Production.INFO: ==13636== Releasing lock... [2024-12-20 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:02:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-20 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:03:04 [end_date_ymd] => 2024-12-20 20:03:04 [RateCDR] => 1 ) [2024-12-20 20:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:03:04' and `end` < '2024-12-20 20:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:03:17] Production.INFO: count ==2267 [2024-12-20 20:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:03:04 - End Time 2024-12-20 20:03:04 [2024-12-20 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065135', 'tblTempUsageDetail_20' ) start [2024-12-20 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065135', 'tblTempUsageDetail_20' ) end [2024-12-20 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065135', 'tblTempVendorCDR_20' ) start [2024-12-20 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065135', 'tblTempVendorCDR_20' ) end [2024-12-20 20:03:17] Production.INFO: ProcessCDR(1,14065135,1,1,2) [2024-12-20 20:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065135', 'tblTempUsageDetail_20' ) start [2024-12-20 20:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065135', 'tblTempUsageDetail_20' ) end [2024-12-20 20:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:03:20] Production.INFO: ==13708== Releasing lock... [2024-12-20 20:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:03:20] Production.INFO: 44.75 MB #Memory Used# [2024-12-20 20:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:04:04 [end_date_ymd] => 2024-12-20 20:04:04 [RateCDR] => 1 ) [2024-12-20 20:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:04:04' and `end` < '2024-12-20 20:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:04:16] Production.INFO: count ==2253 [2024-12-20 20:04:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:04:04 - End Time 2024-12-20 20:04:04 [2024-12-20 20:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065140', 'tblTempUsageDetail_20' ) start [2024-12-20 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065140', 'tblTempUsageDetail_20' ) end [2024-12-20 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065140', 'tblTempVendorCDR_20' ) start [2024-12-20 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065140', 'tblTempVendorCDR_20' ) end [2024-12-20 20:04:17] Production.INFO: ProcessCDR(1,14065140,1,1,2) [2024-12-20 20:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065140', 'tblTempUsageDetail_20' ) start [2024-12-20 20:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065140', 'tblTempUsageDetail_20' ) end [2024-12-20 20:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:04:20] Production.INFO: ==13782== Releasing lock... [2024-12-20 20:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:04:20] Production.INFO: 44.75 MB #Memory Used# [2024-12-20 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:05:05 [end_date_ymd] => 2024-12-20 20:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:05:17] Production.INFO: count ==2239 [2024-12-20 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:05:05 - End Time 2024-12-20 20:05:05 [2024-12-20 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065145', 'tblTempUsageDetail_20' ) start [2024-12-20 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065145', 'tblTempUsageDetail_20' ) end [2024-12-20 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065145', 'tblTempVendorCDR_20' ) start [2024-12-20 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065145', 'tblTempVendorCDR_20' ) end [2024-12-20 20:05:18] Production.INFO: ProcessCDR(1,14065145,1,1,2) [2024-12-20 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065145', 'tblTempUsageDetail_20' ) start [2024-12-20 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065145', 'tblTempUsageDetail_20' ) end [2024-12-20 20:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:05:22] Production.INFO: ==13856== Releasing lock... [2024-12-20 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:05:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-20 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:06:05 [end_date_ymd] => 2024-12-20 20:06:05 [RateCDR] => 1 ) [2024-12-20 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:06:05' and `end` < '2024-12-20 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:06:17] Production.INFO: count ==2227 [2024-12-20 20:06:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:06:05 - End Time 2024-12-20 20:06:05 [2024-12-20 20:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065150', 'tblTempUsageDetail_20' ) start [2024-12-20 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065150', 'tblTempUsageDetail_20' ) end [2024-12-20 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065150', 'tblTempVendorCDR_20' ) start [2024-12-20 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065150', 'tblTempVendorCDR_20' ) end [2024-12-20 20:06:17] Production.INFO: ProcessCDR(1,14065150,1,1,2) [2024-12-20 20:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065150', 'tblTempUsageDetail_20' ) start [2024-12-20 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065150', 'tblTempUsageDetail_20' ) end [2024-12-20 20:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:06:20] Production.INFO: ==13934== Releasing lock... [2024-12-20 20:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:06:20] Production.INFO: 44.5 MB #Memory Used# [2024-12-20 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:07:05 [end_date_ymd] => 2024-12-20 20:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:07:17] Production.INFO: count ==2192 [2024-12-20 20:07:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:07:05 - End Time 2024-12-20 20:07:05 [2024-12-20 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065155', 'tblTempUsageDetail_20' ) start [2024-12-20 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065155', 'tblTempUsageDetail_20' ) end [2024-12-20 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065155', 'tblTempVendorCDR_20' ) start [2024-12-20 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065155', 'tblTempVendorCDR_20' ) end [2024-12-20 20:07:18] Production.INFO: ProcessCDR(1,14065155,1,1,2) [2024-12-20 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065155', 'tblTempUsageDetail_20' ) start [2024-12-20 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065155', 'tblTempUsageDetail_20' ) end [2024-12-20 20:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:07:21] Production.INFO: ==14016== Releasing lock... [2024-12-20 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:07:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-20 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:08:04 [end_date_ymd] => 2024-12-20 20:08:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:08:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:08:25] Production.INFO: count ==2184 [2024-12-20 20:08:26] Production.ERROR: pbx CDR StartTime 2024-12-20 17:08:04 - End Time 2024-12-20 20:08:04 [2024-12-20 20:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065160', 'tblTempUsageDetail_20' ) start [2024-12-20 20:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065160', 'tblTempUsageDetail_20' ) end [2024-12-20 20:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065160', 'tblTempVendorCDR_20' ) start [2024-12-20 20:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065160', 'tblTempVendorCDR_20' ) end [2024-12-20 20:08:26] Production.INFO: ProcessCDR(1,14065160,1,1,2) [2024-12-20 20:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065160', 'tblTempUsageDetail_20' ) start [2024-12-20 20:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065160', 'tblTempUsageDetail_20' ) end [2024-12-20 20:08:30] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:08:30] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:08:30] Production.INFO: ==14090== Releasing lock... [2024-12-20 20:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:08:30] Production.INFO: 44.5 MB #Memory Used# [2024-12-20 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:09:05 [end_date_ymd] => 2024-12-20 20:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:09:19] Production.INFO: count ==2181 [2024-12-20 20:09:19] Production.ERROR: pbx CDR StartTime 2024-12-20 17:09:05 - End Time 2024-12-20 20:09:05 [2024-12-20 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065165', 'tblTempUsageDetail_20' ) start [2024-12-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065165', 'tblTempUsageDetail_20' ) end [2024-12-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065165', 'tblTempVendorCDR_20' ) start [2024-12-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065165', 'tblTempVendorCDR_20' ) end [2024-12-20 20:09:19] Production.INFO: ProcessCDR(1,14065165,1,1,2) [2024-12-20 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065165', 'tblTempUsageDetail_20' ) start [2024-12-20 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065165', 'tblTempUsageDetail_20' ) end [2024-12-20 20:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:09:22] Production.INFO: ==14173== Releasing lock... [2024-12-20 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:09:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-20 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:10:05 [end_date_ymd] => 2024-12-20 20:10:05 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:10:05' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:10:17] Production.INFO: count ==2170 [2024-12-20 20:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:10:05 - End Time 2024-12-20 20:10:05 [2024-12-20 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065170', 'tblTempUsageDetail_20' ) start [2024-12-20 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065170', 'tblTempUsageDetail_20' ) end [2024-12-20 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065170', 'tblTempVendorCDR_20' ) start [2024-12-20 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065170', 'tblTempVendorCDR_20' ) end [2024-12-20 20:10:18] Production.INFO: ProcessCDR(1,14065170,1,1,2) [2024-12-20 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065170', 'tblTempUsageDetail_20' ) start [2024-12-20 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065170', 'tblTempUsageDetail_20' ) end [2024-12-20 20:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:10:22] Production.INFO: ==14253== Releasing lock... [2024-12-20 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:10:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-20 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:11:05 [end_date_ymd] => 2024-12-20 20:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:11:17] Production.INFO: count ==2149 [2024-12-20 20:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:11:05 - End Time 2024-12-20 20:11:05 [2024-12-20 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065176', 'tblTempUsageDetail_20' ) start [2024-12-20 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065176', 'tblTempUsageDetail_20' ) end [2024-12-20 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065176', 'tblTempVendorCDR_20' ) start [2024-12-20 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065176', 'tblTempVendorCDR_20' ) end [2024-12-20 20:11:17] Production.INFO: ProcessCDR(1,14065176,1,1,2) [2024-12-20 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065176', 'tblTempUsageDetail_20' ) start [2024-12-20 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065176', 'tblTempUsageDetail_20' ) end [2024-12-20 20:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:11:22] Production.INFO: ==14331== Releasing lock... [2024-12-20 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:11:22] Production.INFO: 44 MB #Memory Used# [2024-12-20 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:12:05 [end_date_ymd] => 2024-12-20 20:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:12:20] Production.INFO: count ==2126 [2024-12-20 20:12:20] Production.ERROR: pbx CDR StartTime 2024-12-20 17:12:05 - End Time 2024-12-20 20:12:05 [2024-12-20 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065181', 'tblTempUsageDetail_20' ) start [2024-12-20 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065181', 'tblTempUsageDetail_20' ) end [2024-12-20 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065181', 'tblTempVendorCDR_20' ) start [2024-12-20 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065181', 'tblTempVendorCDR_20' ) end [2024-12-20 20:12:20] Production.INFO: ProcessCDR(1,14065181,1,1,2) [2024-12-20 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065181', 'tblTempUsageDetail_20' ) start [2024-12-20 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065181', 'tblTempUsageDetail_20' ) end [2024-12-20 20:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:12:23] Production.INFO: ==14409== Releasing lock... [2024-12-20 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:12:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-20 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:13:04 [end_date_ymd] => 2024-12-20 20:13:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:13:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:13:17] Production.INFO: count ==2105 [2024-12-20 20:13:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:13:04 - End Time 2024-12-20 20:13:04 [2024-12-20 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065186', 'tblTempUsageDetail_20' ) start [2024-12-20 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065186', 'tblTempUsageDetail_20' ) end [2024-12-20 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065186', 'tblTempVendorCDR_20' ) start [2024-12-20 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065186', 'tblTempVendorCDR_20' ) end [2024-12-20 20:13:17] Production.INFO: ProcessCDR(1,14065186,1,1,2) [2024-12-20 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065186', 'tblTempUsageDetail_20' ) start [2024-12-20 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065186', 'tblTempUsageDetail_20' ) end [2024-12-20 20:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:13:21] Production.INFO: ==14487== Releasing lock... [2024-12-20 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:13:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-20 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:14:05 [end_date_ymd] => 2024-12-20 20:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:14:17] Production.INFO: count ==2085 [2024-12-20 20:14:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:14:05 - End Time 2024-12-20 20:14:05 [2024-12-20 20:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065191', 'tblTempUsageDetail_20' ) start [2024-12-20 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065191', 'tblTempUsageDetail_20' ) end [2024-12-20 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065191', 'tblTempVendorCDR_20' ) start [2024-12-20 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065191', 'tblTempVendorCDR_20' ) end [2024-12-20 20:14:17] Production.INFO: ProcessCDR(1,14065191,1,1,2) [2024-12-20 20:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065191', 'tblTempUsageDetail_20' ) start [2024-12-20 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065191', 'tblTempUsageDetail_20' ) end [2024-12-20 20:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:14:22] Production.INFO: ==14568== Releasing lock... [2024-12-20 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:14:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-20 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:15:04 [end_date_ymd] => 2024-12-20 20:15:04 [RateCDR] => 1 ) [2024-12-20 20:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:15:04' and `end` < '2024-12-20 20:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:15:16] Production.INFO: count ==2083 [2024-12-20 20:15:16] Production.ERROR: pbx CDR StartTime 2024-12-20 17:15:04 - End Time 2024-12-20 20:15:04 [2024-12-20 20:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065196', 'tblTempUsageDetail_20' ) start [2024-12-20 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065196', 'tblTempUsageDetail_20' ) end [2024-12-20 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065196', 'tblTempVendorCDR_20' ) start [2024-12-20 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065196', 'tblTempVendorCDR_20' ) end [2024-12-20 20:15:17] Production.INFO: ProcessCDR(1,14065196,1,1,2) [2024-12-20 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065196', 'tblTempUsageDetail_20' ) start [2024-12-20 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065196', 'tblTempUsageDetail_20' ) end [2024-12-20 20:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:15:20] Production.INFO: ==14640== Releasing lock... [2024-12-20 20:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:15:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-20 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:16:04 [end_date_ymd] => 2024-12-20 20:16:04 [RateCDR] => 1 ) [2024-12-20 20:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:16:04' and `end` < '2024-12-20 20:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:16:17] Production.INFO: count ==2077 [2024-12-20 20:16:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:16:04 - End Time 2024-12-20 20:16:04 [2024-12-20 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065201', 'tblTempUsageDetail_20' ) start [2024-12-20 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065201', 'tblTempUsageDetail_20' ) end [2024-12-20 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065201', 'tblTempVendorCDR_20' ) start [2024-12-20 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065201', 'tblTempVendorCDR_20' ) end [2024-12-20 20:16:17] Production.INFO: ProcessCDR(1,14065201,1,1,2) [2024-12-20 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065201', 'tblTempUsageDetail_20' ) start [2024-12-20 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065201', 'tblTempUsageDetail_20' ) end [2024-12-20 20:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:16:20] Production.INFO: ==14720== Releasing lock... [2024-12-20 20:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:16:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-20 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:17:05 [end_date_ymd] => 2024-12-20 20:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:17:17] Production.INFO: count ==2066 [2024-12-20 20:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:17:05 - End Time 2024-12-20 20:17:05 [2024-12-20 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065206', 'tblTempUsageDetail_20' ) start [2024-12-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065206', 'tblTempUsageDetail_20' ) end [2024-12-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065206', 'tblTempVendorCDR_20' ) start [2024-12-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065206', 'tblTempVendorCDR_20' ) end [2024-12-20 20:17:18] Production.INFO: ProcessCDR(1,14065206,1,1,2) [2024-12-20 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065206', 'tblTempUsageDetail_20' ) start [2024-12-20 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065206', 'tblTempUsageDetail_20' ) end [2024-12-20 20:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:17:21] Production.INFO: ==14812== Releasing lock... [2024-12-20 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:17:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-20 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:18:04 [end_date_ymd] => 2024-12-20 20:18:04 [RateCDR] => 1 ) [2024-12-20 20:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:18:04' and `end` < '2024-12-20 20:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:18:17] Production.INFO: count ==2063 [2024-12-20 20:18:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:18:04 - End Time 2024-12-20 20:18:04 [2024-12-20 20:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065211', 'tblTempUsageDetail_20' ) start [2024-12-20 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065211', 'tblTempUsageDetail_20' ) end [2024-12-20 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065211', 'tblTempVendorCDR_20' ) start [2024-12-20 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065211', 'tblTempVendorCDR_20' ) end [2024-12-20 20:18:17] Production.INFO: ProcessCDR(1,14065211,1,1,2) [2024-12-20 20:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065211', 'tblTempUsageDetail_20' ) start [2024-12-20 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065211', 'tblTempUsageDetail_20' ) end [2024-12-20 20:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:18:22] Production.INFO: ==14927== Releasing lock... [2024-12-20 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:18:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-20 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:19:05 [end_date_ymd] => 2024-12-20 20:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:19:17] Production.INFO: count ==2048 [2024-12-20 20:19:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:19:05 - End Time 2024-12-20 20:19:05 [2024-12-20 20:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065216', 'tblTempUsageDetail_20' ) start [2024-12-20 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065216', 'tblTempUsageDetail_20' ) end [2024-12-20 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065216', 'tblTempVendorCDR_20' ) start [2024-12-20 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065216', 'tblTempVendorCDR_20' ) end [2024-12-20 20:19:17] Production.INFO: ProcessCDR(1,14065216,1,1,2) [2024-12-20 20:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065216', 'tblTempUsageDetail_20' ) start [2024-12-20 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065216', 'tblTempUsageDetail_20' ) end [2024-12-20 20:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:19:22] Production.INFO: ==15006== Releasing lock... [2024-12-20 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:19:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-20 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:20:05 [end_date_ymd] => 2024-12-20 20:20:05 [RateCDR] => 1 ) [2024-12-20 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:20:05' and `end` < '2024-12-20 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:20:17] Production.INFO: count ==2042 [2024-12-20 20:20:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:20:05 - End Time 2024-12-20 20:20:05 [2024-12-20 20:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065222', 'tblTempUsageDetail_20' ) start [2024-12-20 20:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065222', 'tblTempUsageDetail_20' ) end [2024-12-20 20:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065222', 'tblTempVendorCDR_20' ) start [2024-12-20 20:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065222', 'tblTempVendorCDR_20' ) end [2024-12-20 20:20:17] Production.INFO: ProcessCDR(1,14065222,1,1,2) [2024-12-20 20:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065222', 'tblTempUsageDetail_20' ) start [2024-12-20 20:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065222', 'tblTempUsageDetail_20' ) end [2024-12-20 20:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:20:20] Production.INFO: ==15087== Releasing lock... [2024-12-20 20:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:20:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-20 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:21:04 [end_date_ymd] => 2024-12-20 20:21:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:21:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:21:17] Production.INFO: count ==1994 [2024-12-20 20:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:21:04 - End Time 2024-12-20 20:21:04 [2024-12-20 20:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065226', 'tblTempUsageDetail_20' ) start [2024-12-20 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065226', 'tblTempUsageDetail_20' ) end [2024-12-20 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065226', 'tblTempVendorCDR_20' ) start [2024-12-20 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065226', 'tblTempVendorCDR_20' ) end [2024-12-20 20:21:17] Production.INFO: ProcessCDR(1,14065226,1,1,2) [2024-12-20 20:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065226', 'tblTempUsageDetail_20' ) start [2024-12-20 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065226', 'tblTempUsageDetail_20' ) end [2024-12-20 20:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:21:21] Production.INFO: ==15162== Releasing lock... [2024-12-20 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:21:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:22:05 [end_date_ymd] => 2024-12-20 20:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:22:17] Production.INFO: count ==1993 [2024-12-20 20:22:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:22:05 - End Time 2024-12-20 20:22:05 [2024-12-20 20:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065232', 'tblTempUsageDetail_20' ) start [2024-12-20 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065232', 'tblTempUsageDetail_20' ) end [2024-12-20 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065232', 'tblTempVendorCDR_20' ) start [2024-12-20 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065232', 'tblTempVendorCDR_20' ) end [2024-12-20 20:22:17] Production.INFO: ProcessCDR(1,14065232,1,1,2) [2024-12-20 20:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065232', 'tblTempUsageDetail_20' ) start [2024-12-20 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065232', 'tblTempUsageDetail_20' ) end [2024-12-20 20:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:22:22] Production.INFO: ==15238== Releasing lock... [2024-12-20 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:22:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:23:04 [end_date_ymd] => 2024-12-20 20:23:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:23:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:23:16] Production.INFO: count ==1988 [2024-12-20 20:23:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:23:04 - End Time 2024-12-20 20:23:04 [2024-12-20 20:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065237', 'tblTempUsageDetail_20' ) start [2024-12-20 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065237', 'tblTempUsageDetail_20' ) end [2024-12-20 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065237', 'tblTempVendorCDR_20' ) start [2024-12-20 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065237', 'tblTempVendorCDR_20' ) end [2024-12-20 20:23:17] Production.INFO: ProcessCDR(1,14065237,1,1,2) [2024-12-20 20:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065237', 'tblTempUsageDetail_20' ) start [2024-12-20 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065237', 'tblTempUsageDetail_20' ) end [2024-12-20 20:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:23:21] Production.INFO: ==15333== Releasing lock... [2024-12-20 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:23:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-20 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:24:05 [end_date_ymd] => 2024-12-20 20:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:24:18] Production.INFO: count ==1983 [2024-12-20 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:24:05 - End Time 2024-12-20 20:24:05 [2024-12-20 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065242', 'tblTempUsageDetail_20' ) start [2024-12-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065242', 'tblTempUsageDetail_20' ) end [2024-12-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065242', 'tblTempVendorCDR_20' ) start [2024-12-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065242', 'tblTempVendorCDR_20' ) end [2024-12-20 20:24:18] Production.INFO: ProcessCDR(1,14065242,1,1,2) [2024-12-20 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065242', 'tblTempUsageDetail_20' ) start [2024-12-20 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065242', 'tblTempUsageDetail_20' ) end [2024-12-20 20:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:24:22] Production.INFO: ==15406== Releasing lock... [2024-12-20 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:24:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:25:04 [end_date_ymd] => 2024-12-20 20:25:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:25:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:25:16] Production.INFO: count ==1980 [2024-12-20 20:25:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:25:04 - End Time 2024-12-20 20:25:04 [2024-12-20 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065247', 'tblTempUsageDetail_20' ) start [2024-12-20 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065247', 'tblTempUsageDetail_20' ) end [2024-12-20 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065247', 'tblTempVendorCDR_20' ) start [2024-12-20 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065247', 'tblTempVendorCDR_20' ) end [2024-12-20 20:25:17] Production.INFO: ProcessCDR(1,14065247,1,1,2) [2024-12-20 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065247', 'tblTempUsageDetail_20' ) start [2024-12-20 20:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065247', 'tblTempUsageDetail_20' ) end [2024-12-20 20:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:25:20] Production.INFO: ==15477== Releasing lock... [2024-12-20 20:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:25:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:26:04 [end_date_ymd] => 2024-12-20 20:26:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:26:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:26:17] Production.INFO: count ==1980 [2024-12-20 20:26:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:26:04 - End Time 2024-12-20 20:26:04 [2024-12-20 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065252', 'tblTempUsageDetail_20' ) start [2024-12-20 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065252', 'tblTempUsageDetail_20' ) end [2024-12-20 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065252', 'tblTempVendorCDR_20' ) start [2024-12-20 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065252', 'tblTempVendorCDR_20' ) end [2024-12-20 20:26:17] Production.INFO: ProcessCDR(1,14065252,1,1,2) [2024-12-20 20:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065252', 'tblTempUsageDetail_20' ) start [2024-12-20 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065252', 'tblTempUsageDetail_20' ) end [2024-12-20 20:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:26:21] Production.INFO: ==15555== Releasing lock... [2024-12-20 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:26:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-20 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:27:05 [end_date_ymd] => 2024-12-20 20:27:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:27:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:27:18] Production.INFO: count ==1975 [2024-12-20 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:27:05 - End Time 2024-12-20 20:27:05 [2024-12-20 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065257', 'tblTempUsageDetail_20' ) start [2024-12-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065257', 'tblTempUsageDetail_20' ) end [2024-12-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065257', 'tblTempVendorCDR_20' ) start [2024-12-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065257', 'tblTempVendorCDR_20' ) end [2024-12-20 20:27:18] Production.INFO: ProcessCDR(1,14065257,1,1,2) [2024-12-20 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065257', 'tblTempUsageDetail_20' ) start [2024-12-20 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065257', 'tblTempUsageDetail_20' ) end [2024-12-20 20:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:27:23] Production.INFO: ==15631== Releasing lock... [2024-12-20 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:27:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-20 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:28:04 [end_date_ymd] => 2024-12-20 20:28:04 [RateCDR] => 1 ) [2024-12-20 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:28:04' and `end` < '2024-12-20 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:28:17] Production.INFO: count ==1977 [2024-12-20 20:28:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:28:04 - End Time 2024-12-20 20:28:04 [2024-12-20 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065262', 'tblTempUsageDetail_20' ) start [2024-12-20 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065262', 'tblTempUsageDetail_20' ) end [2024-12-20 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065262', 'tblTempVendorCDR_20' ) start [2024-12-20 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065262', 'tblTempVendorCDR_20' ) end [2024-12-20 20:28:17] Production.INFO: ProcessCDR(1,14065262,1,1,2) [2024-12-20 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065262', 'tblTempUsageDetail_20' ) start [2024-12-20 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065262', 'tblTempUsageDetail_20' ) end [2024-12-20 20:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:28:20] Production.INFO: ==15706== Releasing lock... [2024-12-20 20:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:28:20] Production.INFO: 42.5 MB #Memory Used# [2024-12-20 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:29:05 [end_date_ymd] => 2024-12-20 20:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:29:18] Production.INFO: count ==1975 [2024-12-20 20:29:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:29:05 - End Time 2024-12-20 20:29:05 [2024-12-20 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065267', 'tblTempUsageDetail_20' ) start [2024-12-20 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065267', 'tblTempUsageDetail_20' ) end [2024-12-20 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065267', 'tblTempVendorCDR_20' ) start [2024-12-20 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065267', 'tblTempVendorCDR_20' ) end [2024-12-20 20:29:18] Production.INFO: ProcessCDR(1,14065267,1,1,2) [2024-12-20 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065267', 'tblTempUsageDetail_20' ) start [2024-12-20 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065267', 'tblTempUsageDetail_20' ) end [2024-12-20 20:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:29:21] Production.INFO: ==15780== Releasing lock... [2024-12-20 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:29:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-20 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:30:05 [end_date_ymd] => 2024-12-20 20:30:05 [RateCDR] => 1 ) [2024-12-20 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:30:05' and `end` < '2024-12-20 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:30:17] Production.INFO: count ==1973 [2024-12-20 20:30:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:30:05 - End Time 2024-12-20 20:30:05 [2024-12-20 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065273', 'tblTempUsageDetail_20' ) start [2024-12-20 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065273', 'tblTempUsageDetail_20' ) end [2024-12-20 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065273', 'tblTempVendorCDR_20' ) start [2024-12-20 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065273', 'tblTempVendorCDR_20' ) end [2024-12-20 20:30:18] Production.INFO: ProcessCDR(1,14065273,1,1,2) [2024-12-20 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065273', 'tblTempUsageDetail_20' ) start [2024-12-20 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065273', 'tblTempUsageDetail_20' ) end [2024-12-20 20:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:30:22] Production.INFO: ==15856== Releasing lock... [2024-12-20 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:30:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-20 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:31:04 [end_date_ymd] => 2024-12-20 20:31:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:31:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:31:17] Production.INFO: count ==1931 [2024-12-20 20:31:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:31:04 - End Time 2024-12-20 20:31:04 [2024-12-20 20:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065278', 'tblTempUsageDetail_20' ) start [2024-12-20 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065278', 'tblTempUsageDetail_20' ) end [2024-12-20 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065278', 'tblTempVendorCDR_20' ) start [2024-12-20 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065278', 'tblTempVendorCDR_20' ) end [2024-12-20 20:31:17] Production.INFO: ProcessCDR(1,14065278,1,1,2) [2024-12-20 20:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065278', 'tblTempUsageDetail_20' ) start [2024-12-20 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065278', 'tblTempUsageDetail_20' ) end [2024-12-20 20:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:31:21] Production.INFO: ==15938== Releasing lock... [2024-12-20 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:31:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-20 20:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:32:04 [end_date_ymd] => 2024-12-20 20:32:04 [RateCDR] => 1 ) [2024-12-20 20:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:32:04' and `end` < '2024-12-20 20:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:32:16] Production.INFO: count ==1928 [2024-12-20 20:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:32:04 - End Time 2024-12-20 20:32:04 [2024-12-20 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065283', 'tblTempUsageDetail_20' ) start [2024-12-20 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065283', 'tblTempUsageDetail_20' ) end [2024-12-20 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065283', 'tblTempVendorCDR_20' ) start [2024-12-20 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065283', 'tblTempVendorCDR_20' ) end [2024-12-20 20:32:17] Production.INFO: ProcessCDR(1,14065283,1,1,2) [2024-12-20 20:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065283', 'tblTempUsageDetail_20' ) start [2024-12-20 20:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065283', 'tblTempUsageDetail_20' ) end [2024-12-20 20:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:32:20] Production.INFO: ==16013== Releasing lock... [2024-12-20 20:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:32:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-20 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:33:04 [end_date_ymd] => 2024-12-20 20:33:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:33:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:33:17] Production.INFO: count ==1923 [2024-12-20 20:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:33:04 - End Time 2024-12-20 20:33:04 [2024-12-20 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065288', 'tblTempUsageDetail_20' ) start [2024-12-20 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065288', 'tblTempUsageDetail_20' ) end [2024-12-20 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065288', 'tblTempVendorCDR_20' ) start [2024-12-20 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065288', 'tblTempVendorCDR_20' ) end [2024-12-20 20:33:17] Production.INFO: ProcessCDR(1,14065288,1,1,2) [2024-12-20 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065288', 'tblTempUsageDetail_20' ) start [2024-12-20 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065288', 'tblTempUsageDetail_20' ) end [2024-12-20 20:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:33:21] Production.INFO: ==16124== Releasing lock... [2024-12-20 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:33:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-20 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:34:05 [end_date_ymd] => 2024-12-20 20:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:34:18] Production.INFO: count ==1921 [2024-12-20 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:34:05 - End Time 2024-12-20 20:34:05 [2024-12-20 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065293', 'tblTempUsageDetail_20' ) start [2024-12-20 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065293', 'tblTempUsageDetail_20' ) end [2024-12-20 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065293', 'tblTempVendorCDR_20' ) start [2024-12-20 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065293', 'tblTempVendorCDR_20' ) end [2024-12-20 20:34:18] Production.INFO: ProcessCDR(1,14065293,1,1,2) [2024-12-20 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065293', 'tblTempUsageDetail_20' ) start [2024-12-20 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065293', 'tblTempUsageDetail_20' ) end [2024-12-20 20:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:34:21] Production.INFO: ==16203== Releasing lock... [2024-12-20 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:34:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-20 20:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:35:04 [end_date_ymd] => 2024-12-20 20:35:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:35:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:35:16] Production.INFO: count ==1919 [2024-12-20 20:35:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:35:04 - End Time 2024-12-20 20:35:04 [2024-12-20 20:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065298', 'tblTempUsageDetail_20' ) start [2024-12-20 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065298', 'tblTempUsageDetail_20' ) end [2024-12-20 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065298', 'tblTempVendorCDR_20' ) start [2024-12-20 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065298', 'tblTempVendorCDR_20' ) end [2024-12-20 20:35:17] Production.INFO: ProcessCDR(1,14065298,1,1,2) [2024-12-20 20:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065298', 'tblTempUsageDetail_20' ) start [2024-12-20 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065298', 'tblTempUsageDetail_20' ) end [2024-12-20 20:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:35:20] Production.INFO: ==16279== Releasing lock... [2024-12-20 20:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:35:20] Production.INFO: 42 MB #Memory Used# [2024-12-20 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:36:05 [end_date_ymd] => 2024-12-20 20:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:36:17] Production.INFO: count ==1904 [2024-12-20 20:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:36:05 - End Time 2024-12-20 20:36:05 [2024-12-20 20:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065303', 'tblTempUsageDetail_20' ) start [2024-12-20 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065303', 'tblTempUsageDetail_20' ) end [2024-12-20 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065303', 'tblTempVendorCDR_20' ) start [2024-12-20 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065303', 'tblTempVendorCDR_20' ) end [2024-12-20 20:36:17] Production.INFO: ProcessCDR(1,14065303,1,1,2) [2024-12-20 20:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065303', 'tblTempUsageDetail_20' ) start [2024-12-20 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065303', 'tblTempUsageDetail_20' ) end [2024-12-20 20:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:36:22] Production.INFO: ==16350== Releasing lock... [2024-12-20 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:36:22] Production.INFO: 42 MB #Memory Used# [2024-12-20 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:37:04 [end_date_ymd] => 2024-12-20 20:37:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:37:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:37:17] Production.INFO: count ==1899 [2024-12-20 20:37:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:37:04 - End Time 2024-12-20 20:37:04 [2024-12-20 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065308', 'tblTempUsageDetail_20' ) start [2024-12-20 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065308', 'tblTempUsageDetail_20' ) end [2024-12-20 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065308', 'tblTempVendorCDR_20' ) start [2024-12-20 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065308', 'tblTempVendorCDR_20' ) end [2024-12-20 20:37:17] Production.INFO: ProcessCDR(1,14065308,1,1,2) [2024-12-20 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065308', 'tblTempUsageDetail_20' ) start [2024-12-20 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065308', 'tblTempUsageDetail_20' ) end [2024-12-20 20:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:37:22] Production.INFO: ==16423== Releasing lock... [2024-12-20 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:37:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-20 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:38:04 [end_date_ymd] => 2024-12-20 20:38:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:38:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:38:17] Production.INFO: count ==1884 [2024-12-20 20:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:38:04 - End Time 2024-12-20 20:38:04 [2024-12-20 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065313', 'tblTempUsageDetail_20' ) start [2024-12-20 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065313', 'tblTempUsageDetail_20' ) end [2024-12-20 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065313', 'tblTempVendorCDR_20' ) start [2024-12-20 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065313', 'tblTempVendorCDR_20' ) end [2024-12-20 20:38:17] Production.INFO: ProcessCDR(1,14065313,1,1,2) [2024-12-20 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065313', 'tblTempUsageDetail_20' ) start [2024-12-20 20:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065313', 'tblTempUsageDetail_20' ) end [2024-12-20 20:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:38:20] Production.INFO: ==16497== Releasing lock... [2024-12-20 20:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:38:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-20 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:39:05 [end_date_ymd] => 2024-12-20 20:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:39:17] Production.INFO: count ==1881 [2024-12-20 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:39:05 - End Time 2024-12-20 20:39:05 [2024-12-20 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065318', 'tblTempUsageDetail_20' ) start [2024-12-20 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065318', 'tblTempUsageDetail_20' ) end [2024-12-20 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065318', 'tblTempVendorCDR_20' ) start [2024-12-20 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065318', 'tblTempVendorCDR_20' ) end [2024-12-20 20:39:17] Production.INFO: ProcessCDR(1,14065318,1,1,2) [2024-12-20 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065318', 'tblTempUsageDetail_20' ) start [2024-12-20 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065318', 'tblTempUsageDetail_20' ) end [2024-12-20 20:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:39:21] Production.INFO: ==16569== Releasing lock... [2024-12-20 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:39:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-20 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:40:05 [end_date_ymd] => 2024-12-20 20:40:05 [RateCDR] => 1 ) [2024-12-20 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:40:05' and `end` < '2024-12-20 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:40:17] Production.INFO: count ==1868 [2024-12-20 20:40:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:40:05 - End Time 2024-12-20 20:40:05 [2024-12-20 20:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065324', 'tblTempUsageDetail_20' ) start [2024-12-20 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065324', 'tblTempUsageDetail_20' ) end [2024-12-20 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065324', 'tblTempVendorCDR_20' ) start [2024-12-20 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065324', 'tblTempVendorCDR_20' ) end [2024-12-20 20:40:17] Production.INFO: ProcessCDR(1,14065324,1,1,2) [2024-12-20 20:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065324', 'tblTempUsageDetail_20' ) start [2024-12-20 20:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065324', 'tblTempUsageDetail_20' ) end [2024-12-20 20:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:40:20] Production.INFO: ==16651== Releasing lock... [2024-12-20 20:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:40:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-20 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:41:05 [end_date_ymd] => 2024-12-20 20:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:41:17] Production.INFO: count ==1810 [2024-12-20 20:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:41:05 - End Time 2024-12-20 20:41:05 [2024-12-20 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065329', 'tblTempUsageDetail_20' ) start [2024-12-20 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065329', 'tblTempUsageDetail_20' ) end [2024-12-20 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065329', 'tblTempVendorCDR_20' ) start [2024-12-20 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065329', 'tblTempVendorCDR_20' ) end [2024-12-20 20:41:17] Production.INFO: ProcessCDR(1,14065329,1,1,2) [2024-12-20 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065329', 'tblTempUsageDetail_20' ) start [2024-12-20 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065329', 'tblTempUsageDetail_20' ) end [2024-12-20 20:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:41:20] Production.INFO: ==16729== Releasing lock... [2024-12-20 20:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:41:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-20 20:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:42:04 [end_date_ymd] => 2024-12-20 20:42:04 [RateCDR] => 1 ) [2024-12-20 20:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:42:04' and `end` < '2024-12-20 20:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:42:16] Production.INFO: count ==1809 [2024-12-20 20:42:16] Production.ERROR: pbx CDR StartTime 2024-12-20 17:42:04 - End Time 2024-12-20 20:42:04 [2024-12-20 20:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065334', 'tblTempUsageDetail_20' ) start [2024-12-20 20:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065334', 'tblTempUsageDetail_20' ) end [2024-12-20 20:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065334', 'tblTempVendorCDR_20' ) start [2024-12-20 20:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065334', 'tblTempVendorCDR_20' ) end [2024-12-20 20:42:16] Production.INFO: ProcessCDR(1,14065334,1,1,2) [2024-12-20 20:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065334', 'tblTempUsageDetail_20' ) start [2024-12-20 20:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065334', 'tblTempUsageDetail_20' ) end [2024-12-20 20:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:42:20] Production.INFO: ==16799== Releasing lock... [2024-12-20 20:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:42:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-20 20:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:43:04 [end_date_ymd] => 2024-12-20 20:43:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:43:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:43:17] Production.INFO: count ==1802 [2024-12-20 20:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:43:04 - End Time 2024-12-20 20:43:04 [2024-12-20 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065339', 'tblTempUsageDetail_20' ) start [2024-12-20 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065339', 'tblTempUsageDetail_20' ) end [2024-12-20 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065339', 'tblTempVendorCDR_20' ) start [2024-12-20 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065339', 'tblTempVendorCDR_20' ) end [2024-12-20 20:43:17] Production.INFO: ProcessCDR(1,14065339,1,1,2) [2024-12-20 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065339', 'tblTempUsageDetail_20' ) start [2024-12-20 20:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065339', 'tblTempUsageDetail_20' ) end [2024-12-20 20:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:43:20] Production.INFO: ==16870== Releasing lock... [2024-12-20 20:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:43:20] Production.INFO: 41 MB #Memory Used# [2024-12-20 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:44:05 [end_date_ymd] => 2024-12-20 20:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:44:17] Production.INFO: count ==1803 [2024-12-20 20:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:44:05 - End Time 2024-12-20 20:44:05 [2024-12-20 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065344', 'tblTempUsageDetail_20' ) start [2024-12-20 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065344', 'tblTempUsageDetail_20' ) end [2024-12-20 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065344', 'tblTempVendorCDR_20' ) start [2024-12-20 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065344', 'tblTempVendorCDR_20' ) end [2024-12-20 20:44:17] Production.INFO: ProcessCDR(1,14065344,1,1,2) [2024-12-20 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065344', 'tblTempUsageDetail_20' ) start [2024-12-20 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065344', 'tblTempUsageDetail_20' ) end [2024-12-20 20:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:44:21] Production.INFO: ==16942== Releasing lock... [2024-12-20 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:44:21] Production.INFO: 41 MB #Memory Used# [2024-12-20 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:45:04 [end_date_ymd] => 2024-12-20 20:45:04 [RateCDR] => 1 ) [2024-12-20 20:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:45:04' and `end` < '2024-12-20 20:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:45:17] Production.INFO: count ==1799 [2024-12-20 20:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:45:04 - End Time 2024-12-20 20:45:04 [2024-12-20 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065349', 'tblTempUsageDetail_20' ) start [2024-12-20 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065349', 'tblTempUsageDetail_20' ) end [2024-12-20 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065349', 'tblTempVendorCDR_20' ) start [2024-12-20 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065349', 'tblTempVendorCDR_20' ) end [2024-12-20 20:45:17] Production.INFO: ProcessCDR(1,14065349,1,1,2) [2024-12-20 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065349', 'tblTempUsageDetail_20' ) start [2024-12-20 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065349', 'tblTempUsageDetail_20' ) end [2024-12-20 20:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:45:20] Production.INFO: ==17012== Releasing lock... [2024-12-20 20:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:45:20] Production.INFO: 41 MB #Memory Used# [2024-12-20 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:46:05 [end_date_ymd] => 2024-12-20 20:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:46:17] Production.INFO: count ==1796 [2024-12-20 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:46:05 - End Time 2024-12-20 20:46:05 [2024-12-20 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065354', 'tblTempUsageDetail_20' ) start [2024-12-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065354', 'tblTempUsageDetail_20' ) end [2024-12-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065354', 'tblTempVendorCDR_20' ) start [2024-12-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065354', 'tblTempVendorCDR_20' ) end [2024-12-20 20:46:18] Production.INFO: ProcessCDR(1,14065354,1,1,2) [2024-12-20 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065354', 'tblTempUsageDetail_20' ) start [2024-12-20 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065354', 'tblTempUsageDetail_20' ) end [2024-12-20 20:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:46:21] Production.INFO: ==17083== Releasing lock... [2024-12-20 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:46:21] Production.INFO: 41 MB #Memory Used# [2024-12-20 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:47:04 [end_date_ymd] => 2024-12-20 20:47:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:47:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:47:16] Production.INFO: count ==1790 [2024-12-20 20:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:47:04 - End Time 2024-12-20 20:47:04 [2024-12-20 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065359', 'tblTempUsageDetail_20' ) start [2024-12-20 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065359', 'tblTempUsageDetail_20' ) end [2024-12-20 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065359', 'tblTempVendorCDR_20' ) start [2024-12-20 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065359', 'tblTempVendorCDR_20' ) end [2024-12-20 20:47:17] Production.INFO: ProcessCDR(1,14065359,1,1,2) [2024-12-20 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065359', 'tblTempUsageDetail_20' ) start [2024-12-20 20:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065359', 'tblTempUsageDetail_20' ) end [2024-12-20 20:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:47:20] Production.INFO: ==17154== Releasing lock... [2024-12-20 20:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:47:20] Production.INFO: 41 MB #Memory Used# [2024-12-20 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:48:05 [end_date_ymd] => 2024-12-20 20:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:48:17] Production.INFO: count ==1783 [2024-12-20 20:48:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:48:05 - End Time 2024-12-20 20:48:05 [2024-12-20 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065364', 'tblTempUsageDetail_20' ) start [2024-12-20 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065364', 'tblTempUsageDetail_20' ) end [2024-12-20 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065364', 'tblTempVendorCDR_20' ) start [2024-12-20 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065364', 'tblTempVendorCDR_20' ) end [2024-12-20 20:48:18] Production.INFO: ProcessCDR(1,14065364,1,1,2) [2024-12-20 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065364', 'tblTempUsageDetail_20' ) start [2024-12-20 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065364', 'tblTempUsageDetail_20' ) end [2024-12-20 20:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:48:21] Production.INFO: ==17226== Releasing lock... [2024-12-20 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:48:21] Production.INFO: 41 MB #Memory Used# [2024-12-20 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:49:05 [end_date_ymd] => 2024-12-20 20:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:49:17] Production.INFO: count ==1779 [2024-12-20 20:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:49:05 - End Time 2024-12-20 20:49:05 [2024-12-20 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065369', 'tblTempUsageDetail_20' ) start [2024-12-20 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065369', 'tblTempUsageDetail_20' ) end [2024-12-20 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065369', 'tblTempVendorCDR_20' ) start [2024-12-20 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065369', 'tblTempVendorCDR_20' ) end [2024-12-20 20:49:17] Production.INFO: ProcessCDR(1,14065369,1,1,2) [2024-12-20 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065369', 'tblTempUsageDetail_20' ) start [2024-12-20 20:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065369', 'tblTempUsageDetail_20' ) end [2024-12-20 20:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:49:21] Production.INFO: ==17336== Releasing lock... [2024-12-20 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:49:21] Production.INFO: 41 MB #Memory Used# [2024-12-20 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:50:05 [end_date_ymd] => 2024-12-20 20:50:05 [RateCDR] => 1 ) [2024-12-20 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:50:05' and `end` < '2024-12-20 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:50:17] Production.INFO: count ==1779 [2024-12-20 20:50:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:50:05 - End Time 2024-12-20 20:50:05 [2024-12-20 20:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065374', 'tblTempUsageDetail_20' ) start [2024-12-20 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065374', 'tblTempUsageDetail_20' ) end [2024-12-20 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065374', 'tblTempVendorCDR_20' ) start [2024-12-20 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065374', 'tblTempVendorCDR_20' ) end [2024-12-20 20:50:17] Production.INFO: ProcessCDR(1,14065374,1,1,2) [2024-12-20 20:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065374', 'tblTempUsageDetail_20' ) start [2024-12-20 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065374', 'tblTempUsageDetail_20' ) end [2024-12-20 20:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:50:21] Production.INFO: ==17408== Releasing lock... [2024-12-20 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:50:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-20 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:51:05 [end_date_ymd] => 2024-12-20 20:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:51:17] Production.INFO: count ==1713 [2024-12-20 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:51:05 - End Time 2024-12-20 20:51:05 [2024-12-20 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065380', 'tblTempUsageDetail_20' ) start [2024-12-20 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065380', 'tblTempUsageDetail_20' ) end [2024-12-20 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065380', 'tblTempVendorCDR_20' ) start [2024-12-20 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065380', 'tblTempVendorCDR_20' ) end [2024-12-20 20:51:17] Production.INFO: ProcessCDR(1,14065380,1,1,2) [2024-12-20 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065380', 'tblTempUsageDetail_20' ) start [2024-12-20 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065380', 'tblTempUsageDetail_20' ) end [2024-12-20 20:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:51:21] Production.INFO: ==17517== Releasing lock... [2024-12-20 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:51:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-20 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:52:04 [end_date_ymd] => 2024-12-20 20:52:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:52:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:52:17] Production.INFO: count ==1712 [2024-12-20 20:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:52:04 - End Time 2024-12-20 20:52:04 [2024-12-20 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065385', 'tblTempUsageDetail_20' ) start [2024-12-20 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065385', 'tblTempUsageDetail_20' ) end [2024-12-20 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065385', 'tblTempVendorCDR_20' ) start [2024-12-20 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065385', 'tblTempVendorCDR_20' ) end [2024-12-20 20:52:17] Production.INFO: ProcessCDR(1,14065385,1,1,2) [2024-12-20 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065385', 'tblTempUsageDetail_20' ) start [2024-12-20 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065385', 'tblTempUsageDetail_20' ) end [2024-12-20 20:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:52:20] Production.INFO: ==17630== Releasing lock... [2024-12-20 20:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:52:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-20 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:53:04 [end_date_ymd] => 2024-12-20 20:53:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:53:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:53:17] Production.INFO: count ==1714 [2024-12-20 20:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:53:04 - End Time 2024-12-20 20:53:04 [2024-12-20 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065390', 'tblTempUsageDetail_20' ) start [2024-12-20 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065390', 'tblTempUsageDetail_20' ) end [2024-12-20 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065390', 'tblTempVendorCDR_20' ) start [2024-12-20 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065390', 'tblTempVendorCDR_20' ) end [2024-12-20 20:53:17] Production.INFO: ProcessCDR(1,14065390,1,1,2) [2024-12-20 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065390', 'tblTempUsageDetail_20' ) start [2024-12-20 20:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065390', 'tblTempUsageDetail_20' ) end [2024-12-20 20:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:53:20] Production.INFO: ==17709== Releasing lock... [2024-12-20 20:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:53:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-20 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:54:05 [end_date_ymd] => 2024-12-20 20:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:54:17] Production.INFO: count ==1698 [2024-12-20 20:54:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:54:05 - End Time 2024-12-20 20:54:05 [2024-12-20 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065395', 'tblTempUsageDetail_20' ) start [2024-12-20 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065395', 'tblTempUsageDetail_20' ) end [2024-12-20 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065395', 'tblTempVendorCDR_20' ) start [2024-12-20 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065395', 'tblTempVendorCDR_20' ) end [2024-12-20 20:54:17] Production.INFO: ProcessCDR(1,14065395,1,1,2) [2024-12-20 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065395', 'tblTempUsageDetail_20' ) start [2024-12-20 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065395', 'tblTempUsageDetail_20' ) end [2024-12-20 20:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:54:22] Production.INFO: ==17780== Releasing lock... [2024-12-20 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:54:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:55:04 [end_date_ymd] => 2024-12-20 20:55:04 [RateCDR] => 1 ) [2024-12-20 20: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` >= '2024-12-20 17:55:04' and `end` < '2024-12-20 20: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 ,'') [2024-12-20 20:55:17] Production.INFO: count ==1695 [2024-12-20 20:55:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:55:04 - End Time 2024-12-20 20:55:04 [2024-12-20 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065400', 'tblTempUsageDetail_20' ) start [2024-12-20 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065400', 'tblTempUsageDetail_20' ) end [2024-12-20 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065400', 'tblTempVendorCDR_20' ) start [2024-12-20 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065400', 'tblTempVendorCDR_20' ) end [2024-12-20 20:55:17] Production.INFO: ProcessCDR(1,14065400,1,1,2) [2024-12-20 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065400', 'tblTempUsageDetail_20' ) start [2024-12-20 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065400', 'tblTempUsageDetail_20' ) end [2024-12-20 20:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:55:20] Production.INFO: ==17850== Releasing lock... [2024-12-20 20:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:55:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:56:05 [end_date_ymd] => 2024-12-20 20:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:56:17] Production.INFO: count ==1692 [2024-12-20 20:56:18] Production.ERROR: pbx CDR StartTime 2024-12-20 17:56:05 - End Time 2024-12-20 20:56:05 [2024-12-20 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065405', 'tblTempUsageDetail_20' ) start [2024-12-20 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065405', 'tblTempUsageDetail_20' ) end [2024-12-20 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065405', 'tblTempVendorCDR_20' ) start [2024-12-20 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065405', 'tblTempVendorCDR_20' ) end [2024-12-20 20:56:18] Production.INFO: ProcessCDR(1,14065405,1,1,2) [2024-12-20 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065405', 'tblTempUsageDetail_20' ) start [2024-12-20 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065405', 'tblTempUsageDetail_20' ) end [2024-12-20 20:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:56:21] Production.INFO: ==17922== Releasing lock... [2024-12-20 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:56:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:57:04 [end_date_ymd] => 2024-12-20 20:57:04 [RateCDR] => 1 ) [2024-12-20 20:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:57:04' and `end` < '2024-12-20 20:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:57:16] Production.INFO: count ==1692 [2024-12-20 20:57:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:57:04 - End Time 2024-12-20 20:57:04 [2024-12-20 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065410', 'tblTempUsageDetail_20' ) start [2024-12-20 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065410', 'tblTempUsageDetail_20' ) end [2024-12-20 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065410', 'tblTempVendorCDR_20' ) start [2024-12-20 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065410', 'tblTempVendorCDR_20' ) end [2024-12-20 20:57:17] Production.INFO: ProcessCDR(1,14065410,1,1,2) [2024-12-20 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065410', 'tblTempUsageDetail_20' ) start [2024-12-20 20:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065410', 'tblTempUsageDetail_20' ) end [2024-12-20 20:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:57:20] Production.INFO: ==17992== Releasing lock... [2024-12-20 20:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:57:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:58:05 [end_date_ymd] => 2024-12-20 20:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 17:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 20:58:18] Production.INFO: count ==1693 [2024-12-20 20:58:19] Production.ERROR: pbx CDR StartTime 2024-12-20 17:58:05 - End Time 2024-12-20 20:58:05 [2024-12-20 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065415', 'tblTempUsageDetail_20' ) start [2024-12-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065415', 'tblTempUsageDetail_20' ) end [2024-12-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065415', 'tblTempVendorCDR_20' ) start [2024-12-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065415', 'tblTempVendorCDR_20' ) end [2024-12-20 20:58:19] Production.INFO: ProcessCDR(1,14065415,1,1,2) [2024-12-20 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065415', 'tblTempUsageDetail_20' ) start [2024-12-20 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065415', 'tblTempUsageDetail_20' ) end [2024-12-20 20:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:58:22] Production.INFO: ==18063== Releasing lock... [2024-12-20 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:58:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 17:59:05 [end_date_ymd] => 2024-12-20 20:59:05 [RateCDR] => 1 ) [2024-12-20 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 17:59:05' and `end` < '2024-12-20 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 20:59:17] Production.INFO: count ==1677 [2024-12-20 20:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 17:59:05 - End Time 2024-12-20 20:59:05 [2024-12-20 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065420', 'tblTempUsageDetail_20' ) start [2024-12-20 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065420', 'tblTempUsageDetail_20' ) end [2024-12-20 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065420', 'tblTempVendorCDR_20' ) start [2024-12-20 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065420', 'tblTempVendorCDR_20' ) end [2024-12-20 20:59:17] Production.INFO: ProcessCDR(1,14065420,1,1,2) [2024-12-20 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065420', 'tblTempUsageDetail_20' ) start [2024-12-20 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065420', 'tblTempUsageDetail_20' ) end [2024-12-20 20:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 20:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 20:59:20] Production.INFO: ==18133== Releasing lock... [2024-12-20 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 20:59:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-20 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:00:05 [end_date_ymd] => 2024-12-20 21:00:05 [RateCDR] => 1 ) [2024-12-20 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:00:05' and `end` < '2024-12-20 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:00:17] Production.INFO: count ==1671 [2024-12-20 21:00:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:00:05 - End Time 2024-12-20 21:00:05 [2024-12-20 21:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065426', 'tblTempUsageDetail_20' ) start [2024-12-20 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065426', 'tblTempUsageDetail_20' ) end [2024-12-20 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065426', 'tblTempVendorCDR_20' ) start [2024-12-20 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065426', 'tblTempVendorCDR_20' ) end [2024-12-20 21:00:17] Production.INFO: ProcessCDR(1,14065426,1,1,2) [2024-12-20 21:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065426', 'tblTempUsageDetail_20' ) start [2024-12-20 21:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065426', 'tblTempUsageDetail_20' ) end [2024-12-20 21:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:00:20] Production.INFO: ==18206== Releasing lock... [2024-12-20 21:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:00:20] Production.INFO: 40 MB #Memory Used# [2024-12-20 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:01:05 [end_date_ymd] => 2024-12-20 21:01:05 [RateCDR] => 1 ) [2024-12-20 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:01:05' and `end` < '2024-12-20 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:01:18] Production.INFO: count ==1634 [2024-12-20 21:01:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:01:05 - End Time 2024-12-20 21:01:05 [2024-12-20 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065431', 'tblTempUsageDetail_20' ) start [2024-12-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065431', 'tblTempUsageDetail_20' ) end [2024-12-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065431', 'tblTempVendorCDR_20' ) start [2024-12-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065431', 'tblTempVendorCDR_20' ) end [2024-12-20 21:01:18] Production.INFO: ProcessCDR(1,14065431,1,1,2) [2024-12-20 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065431', 'tblTempUsageDetail_20' ) start [2024-12-20 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065431', 'tblTempUsageDetail_20' ) end [2024-12-20 21:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:01:21] Production.INFO: ==18292== Releasing lock... [2024-12-20 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:01:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-20 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:02:04 [end_date_ymd] => 2024-12-20 21:02:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:02:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:02:16] Production.INFO: count ==1629 [2024-12-20 21:02:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:02:04 - End Time 2024-12-20 21:02:04 [2024-12-20 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065436', 'tblTempUsageDetail_20' ) start [2024-12-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065436', 'tblTempUsageDetail_20' ) end [2024-12-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065436', 'tblTempVendorCDR_20' ) start [2024-12-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065436', 'tblTempVendorCDR_20' ) end [2024-12-20 21:02:17] Production.INFO: ProcessCDR(1,14065436,1,1,2) [2024-12-20 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065436', 'tblTempUsageDetail_20' ) start [2024-12-20 21:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065436', 'tblTempUsageDetail_20' ) end [2024-12-20 21:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:02:20] Production.INFO: ==18364== Releasing lock... [2024-12-20 21:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:02:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-20 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:03:05 [end_date_ymd] => 2024-12-20 21:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:03:17] Production.INFO: count ==1617 [2024-12-20 21:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:03:05 - End Time 2024-12-20 21:03:05 [2024-12-20 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065441', 'tblTempUsageDetail_20' ) start [2024-12-20 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065441', 'tblTempUsageDetail_20' ) end [2024-12-20 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065441', 'tblTempVendorCDR_20' ) start [2024-12-20 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065441', 'tblTempVendorCDR_20' ) end [2024-12-20 21:03:17] Production.INFO: ProcessCDR(1,14065441,1,1,2) [2024-12-20 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065441', 'tblTempUsageDetail_20' ) start [2024-12-20 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065441', 'tblTempUsageDetail_20' ) end [2024-12-20 21:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:03:20] Production.INFO: ==18437== Releasing lock... [2024-12-20 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:03:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-20 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:04:05 [end_date_ymd] => 2024-12-20 21:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:04:18] Production.INFO: count ==1612 [2024-12-20 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:04:05 - End Time 2024-12-20 21:04:05 [2024-12-20 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065446', 'tblTempUsageDetail_20' ) start [2024-12-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065446', 'tblTempUsageDetail_20' ) end [2024-12-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065446', 'tblTempVendorCDR_20' ) start [2024-12-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065446', 'tblTempVendorCDR_20' ) end [2024-12-20 21:04:18] Production.INFO: ProcessCDR(1,14065446,1,1,2) [2024-12-20 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065446', 'tblTempUsageDetail_20' ) start [2024-12-20 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065446', 'tblTempUsageDetail_20' ) end [2024-12-20 21:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:04:21] Production.INFO: ==18511== Releasing lock... [2024-12-20 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:04:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-20 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:05:04 [end_date_ymd] => 2024-12-20 21:05:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:05:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:05:16] Production.INFO: count ==1608 [2024-12-20 21:05:16] Production.ERROR: pbx CDR StartTime 2024-12-20 18:05:04 - End Time 2024-12-20 21:05:04 [2024-12-20 21:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065451', 'tblTempUsageDetail_20' ) start [2024-12-20 21:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065451', 'tblTempUsageDetail_20' ) end [2024-12-20 21:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065451', 'tblTempVendorCDR_20' ) start [2024-12-20 21:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065451', 'tblTempVendorCDR_20' ) end [2024-12-20 21:05:16] Production.INFO: ProcessCDR(1,14065451,1,1,2) [2024-12-20 21:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065451', 'tblTempUsageDetail_20' ) start [2024-12-20 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065451', 'tblTempUsageDetail_20' ) end [2024-12-20 21:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:05:20] Production.INFO: ==18620== Releasing lock... [2024-12-20 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:05:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-20 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:06:05 [end_date_ymd] => 2024-12-20 21:06:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:06:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:06:17] Production.INFO: count ==1605 [2024-12-20 21:06:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:06:05 - End Time 2024-12-20 21:06:05 [2024-12-20 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065456', 'tblTempUsageDetail_20' ) start [2024-12-20 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065456', 'tblTempUsageDetail_20' ) end [2024-12-20 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065456', 'tblTempVendorCDR_20' ) start [2024-12-20 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065456', 'tblTempVendorCDR_20' ) end [2024-12-20 21:06:17] Production.INFO: ProcessCDR(1,14065456,1,1,2) [2024-12-20 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065456', 'tblTempUsageDetail_20' ) start [2024-12-20 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065456', 'tblTempUsageDetail_20' ) end [2024-12-20 21:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:06:20] Production.INFO: ==18692== Releasing lock... [2024-12-20 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:06:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-20 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:07:04 [end_date_ymd] => 2024-12-20 21:07:04 [RateCDR] => 1 ) [2024-12-20 21:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:07:04' and `end` < '2024-12-20 21:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:07:16] Production.INFO: count ==1600 [2024-12-20 21:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:07:04 - End Time 2024-12-20 21:07:04 [2024-12-20 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065461', 'tblTempUsageDetail_20' ) start [2024-12-20 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065461', 'tblTempUsageDetail_20' ) end [2024-12-20 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065461', 'tblTempVendorCDR_20' ) start [2024-12-20 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065461', 'tblTempVendorCDR_20' ) end [2024-12-20 21:07:17] Production.INFO: ProcessCDR(1,14065461,1,1,2) [2024-12-20 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065461', 'tblTempUsageDetail_20' ) start [2024-12-20 21:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065461', 'tblTempUsageDetail_20' ) end [2024-12-20 21:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:07:19] Production.INFO: ==18762== Releasing lock... [2024-12-20 21:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:07:19] Production.INFO: 39.5 MB #Memory Used# [2024-12-20 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:08:05 [end_date_ymd] => 2024-12-20 21:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:08:17] Production.INFO: count ==1596 [2024-12-20 21:08:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:08:05 - End Time 2024-12-20 21:08:05 [2024-12-20 21:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065466', 'tblTempUsageDetail_20' ) start [2024-12-20 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065466', 'tblTempUsageDetail_20' ) end [2024-12-20 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065466', 'tblTempVendorCDR_20' ) start [2024-12-20 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065466', 'tblTempVendorCDR_20' ) end [2024-12-20 21:08:17] Production.INFO: ProcessCDR(1,14065466,1,1,2) [2024-12-20 21:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065466', 'tblTempUsageDetail_20' ) start [2024-12-20 21:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065466', 'tblTempUsageDetail_20' ) end [2024-12-20 21:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:08:20] Production.INFO: ==18834== Releasing lock... [2024-12-20 21:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:08:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-20 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:09:05 [end_date_ymd] => 2024-12-20 21:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:09:19] Production.INFO: count ==1592 [2024-12-20 21:09:19] Production.ERROR: pbx CDR StartTime 2024-12-20 18:09:05 - End Time 2024-12-20 21:09:05 [2024-12-20 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065471', 'tblTempUsageDetail_20' ) start [2024-12-20 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065471', 'tblTempUsageDetail_20' ) end [2024-12-20 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065471', 'tblTempVendorCDR_20' ) start [2024-12-20 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065471', 'tblTempVendorCDR_20' ) end [2024-12-20 21:09:19] Production.INFO: ProcessCDR(1,14065471,1,1,2) [2024-12-20 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065471', 'tblTempUsageDetail_20' ) start [2024-12-20 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065471', 'tblTempUsageDetail_20' ) end [2024-12-20 21:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:09:22] Production.INFO: ==18905== Releasing lock... [2024-12-20 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:09:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-20 21:10:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:10:04 [end_date_ymd] => 2024-12-20 21:10:04 [RateCDR] => 1 ) [2024-12-20 21:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:10:04' and `end` < '2024-12-20 21:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:10:17] Production.INFO: count ==1593 [2024-12-20 21:10:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:10:04 - End Time 2024-12-20 21:10:04 [2024-12-20 21:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065476', 'tblTempUsageDetail_20' ) start [2024-12-20 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065476', 'tblTempUsageDetail_20' ) end [2024-12-20 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065476', 'tblTempVendorCDR_20' ) start [2024-12-20 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065476', 'tblTempVendorCDR_20' ) end [2024-12-20 21:10:17] Production.INFO: ProcessCDR(1,14065476,1,1,2) [2024-12-20 21:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065476', 'tblTempUsageDetail_20' ) start [2024-12-20 21:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065476', 'tblTempUsageDetail_20' ) end [2024-12-20 21:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:10:20] Production.INFO: ==18983== Releasing lock... [2024-12-20 21:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:10:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-20 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:11:04 [end_date_ymd] => 2024-12-20 21:11:04 [RateCDR] => 1 ) [2024-12-20 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:11:04' and `end` < '2024-12-20 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:11:16] Production.INFO: count ==1520 [2024-12-20 21:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:11:04 - End Time 2024-12-20 21:11:04 [2024-12-20 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065482', 'tblTempUsageDetail_20' ) start [2024-12-20 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065482', 'tblTempUsageDetail_20' ) end [2024-12-20 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065482', 'tblTempVendorCDR_20' ) start [2024-12-20 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065482', 'tblTempVendorCDR_20' ) end [2024-12-20 21:11:17] Production.INFO: ProcessCDR(1,14065482,1,1,2) [2024-12-20 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065482', 'tblTempUsageDetail_20' ) start [2024-12-20 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065482', 'tblTempUsageDetail_20' ) end [2024-12-20 21:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:11:20] Production.INFO: ==19060== Releasing lock... [2024-12-20 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:11:20] Production.INFO: 39 MB #Memory Used# [2024-12-20 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:12:04 [end_date_ymd] => 2024-12-20 21:12:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:12:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:12:16] Production.INFO: count ==1516 [2024-12-20 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:12:04 - End Time 2024-12-20 21:12:04 [2024-12-20 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065487', 'tblTempUsageDetail_20' ) start [2024-12-20 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065487', 'tblTempUsageDetail_20' ) end [2024-12-20 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065487', 'tblTempVendorCDR_20' ) start [2024-12-20 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065487', 'tblTempVendorCDR_20' ) end [2024-12-20 21:12:17] Production.INFO: ProcessCDR(1,14065487,1,1,2) [2024-12-20 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065487', 'tblTempUsageDetail_20' ) start [2024-12-20 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065487', 'tblTempUsageDetail_20' ) end [2024-12-20 21:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:12:20] Production.INFO: ==19130== Releasing lock... [2024-12-20 21:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:12:20] Production.INFO: 39 MB #Memory Used# [2024-12-20 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:13:04 [end_date_ymd] => 2024-12-20 21:13:04 [RateCDR] => 1 ) [2024-12-20 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:13:04' and `end` < '2024-12-20 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:13:17] Production.INFO: count ==1514 [2024-12-20 21:13:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:13:04 - End Time 2024-12-20 21:13:04 [2024-12-20 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065492', 'tblTempUsageDetail_20' ) start [2024-12-20 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065492', 'tblTempUsageDetail_20' ) end [2024-12-20 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065492', 'tblTempVendorCDR_20' ) start [2024-12-20 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065492', 'tblTempVendorCDR_20' ) end [2024-12-20 21:13:17] Production.INFO: ProcessCDR(1,14065492,1,1,2) [2024-12-20 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065492', 'tblTempUsageDetail_20' ) start [2024-12-20 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065492', 'tblTempUsageDetail_20' ) end [2024-12-20 21:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:13:22] Production.INFO: ==19202== Releasing lock... [2024-12-20 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:13:22] Production.INFO: 39 MB #Memory Used# [2024-12-20 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:14:05 [end_date_ymd] => 2024-12-20 21:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:14:17] Production.INFO: count ==1511 [2024-12-20 21:14:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:14:05 - End Time 2024-12-20 21:14:05 [2024-12-20 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065497', 'tblTempUsageDetail_20' ) start [2024-12-20 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065497', 'tblTempUsageDetail_20' ) end [2024-12-20 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065497', 'tblTempVendorCDR_20' ) start [2024-12-20 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065497', 'tblTempVendorCDR_20' ) end [2024-12-20 21:14:17] Production.INFO: ProcessCDR(1,14065497,1,1,2) [2024-12-20 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065497', 'tblTempUsageDetail_20' ) start [2024-12-20 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065497', 'tblTempUsageDetail_20' ) end [2024-12-20 21:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:14:22] Production.INFO: ==19274== Releasing lock... [2024-12-20 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:14:22] Production.INFO: 39 MB #Memory Used# [2024-12-20 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:15:04 [end_date_ymd] => 2024-12-20 21:15:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:15:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:15:17] Production.INFO: count ==1510 [2024-12-20 21:15:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:15:04 - End Time 2024-12-20 21:15:04 [2024-12-20 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065502', 'tblTempUsageDetail_20' ) start [2024-12-20 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065502', 'tblTempUsageDetail_20' ) end [2024-12-20 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065502', 'tblTempVendorCDR_20' ) start [2024-12-20 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065502', 'tblTempVendorCDR_20' ) end [2024-12-20 21:15:17] Production.INFO: ProcessCDR(1,14065502,1,1,2) [2024-12-20 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065502', 'tblTempUsageDetail_20' ) start [2024-12-20 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065502', 'tblTempUsageDetail_20' ) end [2024-12-20 21:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:15:20] Production.INFO: ==19346== Releasing lock... [2024-12-20 21:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:15:20] Production.INFO: 39 MB #Memory Used# [2024-12-20 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:16:04 [end_date_ymd] => 2024-12-20 21:16:04 [RateCDR] => 1 ) [2024-12-20 21:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:16:04' and `end` < '2024-12-20 21:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:16:17] Production.INFO: count ==1511 [2024-12-20 21:16:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:16:04 - End Time 2024-12-20 21:16:04 [2024-12-20 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065507', 'tblTempUsageDetail_20' ) start [2024-12-20 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065507', 'tblTempUsageDetail_20' ) end [2024-12-20 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065507', 'tblTempVendorCDR_20' ) start [2024-12-20 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065507', 'tblTempVendorCDR_20' ) end [2024-12-20 21:16:17] Production.INFO: ProcessCDR(1,14065507,1,1,2) [2024-12-20 21:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065507', 'tblTempUsageDetail_20' ) start [2024-12-20 21:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065507', 'tblTempUsageDetail_20' ) end [2024-12-20 21:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:16:20] Production.INFO: ==19416== Releasing lock... [2024-12-20 21:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:16:20] Production.INFO: 39 MB #Memory Used# [2024-12-20 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:17:04 [end_date_ymd] => 2024-12-20 21:17:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:17:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:17:17] Production.INFO: count ==1510 [2024-12-20 21:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:17:04 - End Time 2024-12-20 21:17:04 [2024-12-20 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065512', 'tblTempUsageDetail_20' ) start [2024-12-20 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065512', 'tblTempUsageDetail_20' ) end [2024-12-20 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065512', 'tblTempVendorCDR_20' ) start [2024-12-20 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065512', 'tblTempVendorCDR_20' ) end [2024-12-20 21:17:17] Production.INFO: ProcessCDR(1,14065512,1,1,2) [2024-12-20 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065512', 'tblTempUsageDetail_20' ) start [2024-12-20 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065512', 'tblTempUsageDetail_20' ) end [2024-12-20 21:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:17:20] Production.INFO: ==19491== Releasing lock... [2024-12-20 21:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:17:20] Production.INFO: 39 MB #Memory Used# [2024-12-20 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:18:04 [end_date_ymd] => 2024-12-20 21:18:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:18:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:18:17] Production.INFO: count ==1502 [2024-12-20 21:18:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:18:04 - End Time 2024-12-20 21:18:04 [2024-12-20 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065517', 'tblTempUsageDetail_20' ) start [2024-12-20 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065517', 'tblTempUsageDetail_20' ) end [2024-12-20 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065517', 'tblTempVendorCDR_20' ) start [2024-12-20 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065517', 'tblTempVendorCDR_20' ) end [2024-12-20 21:18:17] Production.INFO: ProcessCDR(1,14065517,1,1,2) [2024-12-20 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065517', 'tblTempUsageDetail_20' ) start [2024-12-20 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065517', 'tblTempUsageDetail_20' ) end [2024-12-20 21:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:18:20] Production.INFO: ==19561== Releasing lock... [2024-12-20 21:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:18:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-20 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:19:05 [end_date_ymd] => 2024-12-20 21:19:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:19:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:19:19] Production.INFO: count ==1505 [2024-12-20 21:19:19] Production.ERROR: pbx CDR StartTime 2024-12-20 18:19:05 - End Time 2024-12-20 21:19:05 [2024-12-20 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065522', 'tblTempUsageDetail_20' ) start [2024-12-20 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065522', 'tblTempUsageDetail_20' ) end [2024-12-20 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065522', 'tblTempVendorCDR_20' ) start [2024-12-20 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065522', 'tblTempVendorCDR_20' ) end [2024-12-20 21:19:19] Production.INFO: ProcessCDR(1,14065522,1,1,2) [2024-12-20 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065522', 'tblTempUsageDetail_20' ) start [2024-12-20 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065522', 'tblTempUsageDetail_20' ) end [2024-12-20 21:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:19:22] Production.INFO: ==19631== Releasing lock... [2024-12-20 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:19:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-20 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:20:05 [end_date_ymd] => 2024-12-20 21:20:05 [RateCDR] => 1 ) [2024-12-20 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:20:05' and `end` < '2024-12-20 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:20:17] Production.INFO: count ==1502 [2024-12-20 21:20:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:20:05 - End Time 2024-12-20 21:20:05 [2024-12-20 21:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065528', 'tblTempUsageDetail_20' ) start [2024-12-20 21:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065528', 'tblTempUsageDetail_20' ) end [2024-12-20 21:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065528', 'tblTempVendorCDR_20' ) start [2024-12-20 21:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065528', 'tblTempVendorCDR_20' ) end [2024-12-20 21:20:17] Production.INFO: ProcessCDR(1,14065528,1,1,2) [2024-12-20 21:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065528', 'tblTempUsageDetail_20' ) start [2024-12-20 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065528', 'tblTempUsageDetail_20' ) end [2024-12-20 21:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:20:21] Production.INFO: ==19743== Releasing lock... [2024-12-20 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:20:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-20 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:21:05 [end_date_ymd] => 2024-12-20 21:21:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:21:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:21:17] Production.INFO: count ==1451 [2024-12-20 21:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:21:05 - End Time 2024-12-20 21:21:05 [2024-12-20 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065533', 'tblTempUsageDetail_20' ) start [2024-12-20 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065533', 'tblTempUsageDetail_20' ) end [2024-12-20 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065533', 'tblTempVendorCDR_20' ) start [2024-12-20 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065533', 'tblTempVendorCDR_20' ) end [2024-12-20 21:21:17] Production.INFO: ProcessCDR(1,14065533,1,1,2) [2024-12-20 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065533', 'tblTempUsageDetail_20' ) start [2024-12-20 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065533', 'tblTempUsageDetail_20' ) end [2024-12-20 21:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:21:20] Production.INFO: ==19816== Releasing lock... [2024-12-20 21:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:21:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:22:05 [end_date_ymd] => 2024-12-20 21:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:22:18] Production.INFO: count ==1453 [2024-12-20 21:22:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:22:05 - End Time 2024-12-20 21:22:05 [2024-12-20 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065538', 'tblTempUsageDetail_20' ) start [2024-12-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065538', 'tblTempUsageDetail_20' ) end [2024-12-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065538', 'tblTempVendorCDR_20' ) start [2024-12-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065538', 'tblTempVendorCDR_20' ) end [2024-12-20 21:22:18] Production.INFO: ProcessCDR(1,14065538,1,1,2) [2024-12-20 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065538', 'tblTempUsageDetail_20' ) start [2024-12-20 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065538', 'tblTempUsageDetail_20' ) end [2024-12-20 21:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:22:21] Production.INFO: ==19888== Releasing lock... [2024-12-20 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:22:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:23:04 [end_date_ymd] => 2024-12-20 21:23:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:23:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:23:16] Production.INFO: count ==1451 [2024-12-20 21:23:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:23:04 - End Time 2024-12-20 21:23:04 [2024-12-20 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065543', 'tblTempUsageDetail_20' ) start [2024-12-20 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065543', 'tblTempUsageDetail_20' ) end [2024-12-20 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065543', 'tblTempVendorCDR_20' ) start [2024-12-20 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065543', 'tblTempVendorCDR_20' ) end [2024-12-20 21:23:17] Production.INFO: ProcessCDR(1,14065543,1,1,2) [2024-12-20 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065543', 'tblTempUsageDetail_20' ) start [2024-12-20 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065543', 'tblTempUsageDetail_20' ) end [2024-12-20 21:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:23:20] Production.INFO: ==19958== Releasing lock... [2024-12-20 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:23:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:24:05 [end_date_ymd] => 2024-12-20 21:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:24:18] Production.INFO: count ==1450 [2024-12-20 21:24:19] Production.ERROR: pbx CDR StartTime 2024-12-20 18:24:05 - End Time 2024-12-20 21:24:05 [2024-12-20 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065548', 'tblTempUsageDetail_20' ) start [2024-12-20 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065548', 'tblTempUsageDetail_20' ) end [2024-12-20 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065548', 'tblTempVendorCDR_20' ) start [2024-12-20 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065548', 'tblTempVendorCDR_20' ) end [2024-12-20 21:24:19] Production.INFO: ProcessCDR(1,14065548,1,1,2) [2024-12-20 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065548', 'tblTempUsageDetail_20' ) start [2024-12-20 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065548', 'tblTempUsageDetail_20' ) end [2024-12-20 21:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:24:22] Production.INFO: ==20029== Releasing lock... [2024-12-20 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:24:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:25:04 [end_date_ymd] => 2024-12-20 21:25:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:25:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:25:17] Production.INFO: count ==1449 [2024-12-20 21:25:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:25:04 - End Time 2024-12-20 21:25:04 [2024-12-20 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065553', 'tblTempUsageDetail_20' ) start [2024-12-20 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065553', 'tblTempUsageDetail_20' ) end [2024-12-20 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065553', 'tblTempVendorCDR_20' ) start [2024-12-20 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065553', 'tblTempVendorCDR_20' ) end [2024-12-20 21:25:17] Production.INFO: ProcessCDR(1,14065553,1,1,2) [2024-12-20 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065553', 'tblTempUsageDetail_20' ) start [2024-12-20 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065553', 'tblTempUsageDetail_20' ) end [2024-12-20 21:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:25:20] Production.INFO: ==20104== Releasing lock... [2024-12-20 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:25:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:26:05 [end_date_ymd] => 2024-12-20 21:26:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:26:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:26:17] Production.INFO: count ==1453 [2024-12-20 21:26:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:26:05 - End Time 2024-12-20 21:26:05 [2024-12-20 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065558', 'tblTempUsageDetail_20' ) start [2024-12-20 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065558', 'tblTempUsageDetail_20' ) end [2024-12-20 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065558', 'tblTempVendorCDR_20' ) start [2024-12-20 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065558', 'tblTempVendorCDR_20' ) end [2024-12-20 21:26:17] Production.INFO: ProcessCDR(1,14065558,1,1,2) [2024-12-20 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065558', 'tblTempUsageDetail_20' ) start [2024-12-20 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065558', 'tblTempUsageDetail_20' ) end [2024-12-20 21:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:26:20] Production.INFO: ==20178== Releasing lock... [2024-12-20 21:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:26:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:27:05 [end_date_ymd] => 2024-12-20 21:27:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:27:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:27:17] Production.INFO: count ==1449 [2024-12-20 21:27:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:27:05 - End Time 2024-12-20 21:27:05 [2024-12-20 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065563', 'tblTempUsageDetail_20' ) start [2024-12-20 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065563', 'tblTempUsageDetail_20' ) end [2024-12-20 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065563', 'tblTempVendorCDR_20' ) start [2024-12-20 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065563', 'tblTempVendorCDR_20' ) end [2024-12-20 21:27:17] Production.INFO: ProcessCDR(1,14065563,1,1,2) [2024-12-20 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065563', 'tblTempUsageDetail_20' ) start [2024-12-20 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065563', 'tblTempUsageDetail_20' ) end [2024-12-20 21:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:27:20] Production.INFO: ==20252== Releasing lock... [2024-12-20 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:27:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:28:05 [end_date_ymd] => 2024-12-20 21:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:28:17] Production.INFO: count ==1440 [2024-12-20 21:28:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:28:05 - End Time 2024-12-20 21:28:05 [2024-12-20 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065568', 'tblTempUsageDetail_20' ) start [2024-12-20 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065568', 'tblTempUsageDetail_20' ) end [2024-12-20 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065568', 'tblTempVendorCDR_20' ) start [2024-12-20 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065568', 'tblTempVendorCDR_20' ) end [2024-12-20 21:28:17] Production.INFO: ProcessCDR(1,14065568,1,1,2) [2024-12-20 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065568', 'tblTempUsageDetail_20' ) start [2024-12-20 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065568', 'tblTempUsageDetail_20' ) end [2024-12-20 21:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:28:20] Production.INFO: ==20326== Releasing lock... [2024-12-20 21:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:28:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-20 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:29:05 [end_date_ymd] => 2024-12-20 21:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:29:17] Production.INFO: count ==1431 [2024-12-20 21:29:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:29:05 - End Time 2024-12-20 21:29:05 [2024-12-20 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065573', 'tblTempUsageDetail_20' ) start [2024-12-20 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065573', 'tblTempUsageDetail_20' ) end [2024-12-20 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065573', 'tblTempVendorCDR_20' ) start [2024-12-20 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065573', 'tblTempVendorCDR_20' ) end [2024-12-20 21:29:17] Production.INFO: ProcessCDR(1,14065573,1,1,2) [2024-12-20 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065573', 'tblTempUsageDetail_20' ) start [2024-12-20 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065573', 'tblTempUsageDetail_20' ) end [2024-12-20 21:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:29:22] Production.INFO: ==20397== Releasing lock... [2024-12-20 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:29:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-20 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:30:05 [end_date_ymd] => 2024-12-20 21:30:05 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:30:05' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:30:17] Production.INFO: count ==1426 [2024-12-20 21:30:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:30:05 - End Time 2024-12-20 21:30:05 [2024-12-20 21:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065579', 'tblTempUsageDetail_20' ) start [2024-12-20 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065579', 'tblTempUsageDetail_20' ) end [2024-12-20 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065579', 'tblTempVendorCDR_20' ) start [2024-12-20 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065579', 'tblTempVendorCDR_20' ) end [2024-12-20 21:30:17] Production.INFO: ProcessCDR(1,14065579,1,1,2) [2024-12-20 21:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065579', 'tblTempUsageDetail_20' ) start [2024-12-20 21:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065579', 'tblTempUsageDetail_20' ) end [2024-12-20 21:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:30:20] Production.INFO: ==20473== Releasing lock... [2024-12-20 21:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:30:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-20 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:31:05 [end_date_ymd] => 2024-12-20 21:31:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:31:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:31:17] Production.INFO: count ==1378 [2024-12-20 21:31:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:31:05 - End Time 2024-12-20 21:31:05 [2024-12-20 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065584', 'tblTempUsageDetail_20' ) start [2024-12-20 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065584', 'tblTempUsageDetail_20' ) end [2024-12-20 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065584', 'tblTempVendorCDR_20' ) start [2024-12-20 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065584', 'tblTempVendorCDR_20' ) end [2024-12-20 21:31:17] Production.INFO: ProcessCDR(1,14065584,1,1,2) [2024-12-20 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065584', 'tblTempUsageDetail_20' ) start [2024-12-20 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065584', 'tblTempUsageDetail_20' ) end [2024-12-20 21:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:31:20] Production.INFO: ==20548== Releasing lock... [2024-12-20 21:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:31:20] Production.INFO: 38 MB #Memory Used# [2024-12-20 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:32:05 [end_date_ymd] => 2024-12-20 21:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:32:17] Production.INFO: count ==1371 [2024-12-20 21:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:32:05 - End Time 2024-12-20 21:32:05 [2024-12-20 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065589', 'tblTempUsageDetail_20' ) start [2024-12-20 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065589', 'tblTempUsageDetail_20' ) end [2024-12-20 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065589', 'tblTempVendorCDR_20' ) start [2024-12-20 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065589', 'tblTempVendorCDR_20' ) end [2024-12-20 21:32:17] Production.INFO: ProcessCDR(1,14065589,1,1,2) [2024-12-20 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065589', 'tblTempUsageDetail_20' ) start [2024-12-20 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065589', 'tblTempUsageDetail_20' ) end [2024-12-20 21:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:32:20] Production.INFO: ==20628== Releasing lock... [2024-12-20 21:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:32:20] Production.INFO: 38 MB #Memory Used# [2024-12-20 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:33:05 [end_date_ymd] => 2024-12-20 21:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:33:17] Production.INFO: count ==1359 [2024-12-20 21:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:33:05 - End Time 2024-12-20 21:33:05 [2024-12-20 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065594', 'tblTempUsageDetail_20' ) start [2024-12-20 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065594', 'tblTempUsageDetail_20' ) end [2024-12-20 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065594', 'tblTempVendorCDR_20' ) start [2024-12-20 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065594', 'tblTempVendorCDR_20' ) end [2024-12-20 21:33:17] Production.INFO: ProcessCDR(1,14065594,1,1,2) [2024-12-20 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065594', 'tblTempUsageDetail_20' ) start [2024-12-20 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065594', 'tblTempUsageDetail_20' ) end [2024-12-20 21:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:33:22] Production.INFO: ==20703== Releasing lock... [2024-12-20 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:33:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-20 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:34:05 [end_date_ymd] => 2024-12-20 21:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:34:17] Production.INFO: count ==1353 [2024-12-20 21:34:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:34:05 - End Time 2024-12-20 21:34:05 [2024-12-20 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065599', 'tblTempUsageDetail_20' ) start [2024-12-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065599', 'tblTempUsageDetail_20' ) end [2024-12-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065599', 'tblTempVendorCDR_20' ) start [2024-12-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065599', 'tblTempVendorCDR_20' ) end [2024-12-20 21:34:18] Production.INFO: ProcessCDR(1,14065599,1,1,2) [2024-12-20 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065599', 'tblTempUsageDetail_20' ) start [2024-12-20 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065599', 'tblTempUsageDetail_20' ) end [2024-12-20 21:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:34:23] Production.INFO: ==20779== Releasing lock... [2024-12-20 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:34:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-20 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:35:05 [end_date_ymd] => 2024-12-20 21:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:35:17] Production.INFO: count ==1344 [2024-12-20 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:35:05 - End Time 2024-12-20 21:35:05 [2024-12-20 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065604', 'tblTempUsageDetail_20' ) start [2024-12-20 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065604', 'tblTempUsageDetail_20' ) end [2024-12-20 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065604', 'tblTempVendorCDR_20' ) start [2024-12-20 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065604', 'tblTempVendorCDR_20' ) end [2024-12-20 21:35:17] Production.INFO: ProcessCDR(1,14065604,1,1,2) [2024-12-20 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065604', 'tblTempUsageDetail_20' ) start [2024-12-20 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065604', 'tblTempUsageDetail_20' ) end [2024-12-20 21:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:35:20] Production.INFO: ==20855== Releasing lock... [2024-12-20 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:35:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-20 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:36:05 [end_date_ymd] => 2024-12-20 21:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:36:17] Production.INFO: count ==1339 [2024-12-20 21:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:36:05 - End Time 2024-12-20 21:36:05 [2024-12-20 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065609', 'tblTempUsageDetail_20' ) start [2024-12-20 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065609', 'tblTempUsageDetail_20' ) end [2024-12-20 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065609', 'tblTempVendorCDR_20' ) start [2024-12-20 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065609', 'tblTempVendorCDR_20' ) end [2024-12-20 21:36:17] Production.INFO: ProcessCDR(1,14065609,1,1,2) [2024-12-20 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065609', 'tblTempUsageDetail_20' ) start [2024-12-20 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065609', 'tblTempUsageDetail_20' ) end [2024-12-20 21:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:36:20] Production.INFO: ==20968== Releasing lock... [2024-12-20 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:36:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-20 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:37:05 [end_date_ymd] => 2024-12-20 21:37:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:37:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:37:17] Production.INFO: count ==1323 [2024-12-20 21:37:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:37:05 - End Time 2024-12-20 21:37:05 [2024-12-20 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065614', 'tblTempUsageDetail_20' ) start [2024-12-20 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065614', 'tblTempUsageDetail_20' ) end [2024-12-20 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065614', 'tblTempVendorCDR_20' ) start [2024-12-20 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065614', 'tblTempVendorCDR_20' ) end [2024-12-20 21:37:17] Production.INFO: ProcessCDR(1,14065614,1,1,2) [2024-12-20 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065614', 'tblTempUsageDetail_20' ) start [2024-12-20 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065614', 'tblTempUsageDetail_20' ) end [2024-12-20 21:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:37:20] Production.INFO: ==21042== Releasing lock... [2024-12-20 21:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:37:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-20 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:38:04 [end_date_ymd] => 2024-12-20 21:38:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:38:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:38:17] Production.INFO: count ==1323 [2024-12-20 21:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:38:04 - End Time 2024-12-20 21:38:04 [2024-12-20 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065619', 'tblTempUsageDetail_20' ) start [2024-12-20 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065619', 'tblTempUsageDetail_20' ) end [2024-12-20 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065619', 'tblTempVendorCDR_20' ) start [2024-12-20 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065619', 'tblTempVendorCDR_20' ) end [2024-12-20 21:38:17] Production.INFO: ProcessCDR(1,14065619,1,1,2) [2024-12-20 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065619', 'tblTempUsageDetail_20' ) start [2024-12-20 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065619', 'tblTempUsageDetail_20' ) end [2024-12-20 21:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:38:20] Production.INFO: ==21141== Releasing lock... [2024-12-20 21:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:38:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-20 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:39:05 [end_date_ymd] => 2024-12-20 21:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:39:17] Production.INFO: count ==1318 [2024-12-20 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:39:05 - End Time 2024-12-20 21:39:05 [2024-12-20 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065624', 'tblTempUsageDetail_20' ) start [2024-12-20 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065624', 'tblTempUsageDetail_20' ) end [2024-12-20 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065624', 'tblTempVendorCDR_20' ) start [2024-12-20 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065624', 'tblTempVendorCDR_20' ) end [2024-12-20 21:39:17] Production.INFO: ProcessCDR(1,14065624,1,1,2) [2024-12-20 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065624', 'tblTempUsageDetail_20' ) start [2024-12-20 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065624', 'tblTempUsageDetail_20' ) end [2024-12-20 21:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:39:20] Production.INFO: ==21217== Releasing lock... [2024-12-20 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:39:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-20 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:40:06 [end_date_ymd] => 2024-12-20 21:40:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:40:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:40:18] Production.INFO: count ==1317 [2024-12-20 21:40:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:40:06 - End Time 2024-12-20 21:40:06 [2024-12-20 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065630', 'tblTempUsageDetail_20' ) start [2024-12-20 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065630', 'tblTempUsageDetail_20' ) end [2024-12-20 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065630', 'tblTempVendorCDR_20' ) start [2024-12-20 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065630', 'tblTempVendorCDR_20' ) end [2024-12-20 21:40:18] Production.INFO: ProcessCDR(1,14065630,1,1,2) [2024-12-20 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065630', 'tblTempUsageDetail_20' ) start [2024-12-20 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065630', 'tblTempUsageDetail_20' ) end [2024-12-20 21:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:40:22] Production.INFO: ==21292== Releasing lock... [2024-12-20 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:40:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-20 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:41:05 [end_date_ymd] => 2024-12-20 21:41:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:41:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:41:17] Production.INFO: count ==1266 [2024-12-20 21:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:41:05 - End Time 2024-12-20 21:41:05 [2024-12-20 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065635', 'tblTempUsageDetail_20' ) start [2024-12-20 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065635', 'tblTempUsageDetail_20' ) end [2024-12-20 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065635', 'tblTempVendorCDR_20' ) start [2024-12-20 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065635', 'tblTempVendorCDR_20' ) end [2024-12-20 21:41:17] Production.INFO: ProcessCDR(1,14065635,1,1,2) [2024-12-20 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065635', 'tblTempUsageDetail_20' ) start [2024-12-20 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065635', 'tblTempUsageDetail_20' ) end [2024-12-20 21:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:41:20] Production.INFO: ==21375== Releasing lock... [2024-12-20 21:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:41:20] Production.INFO: 37 MB #Memory Used# [2024-12-20 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:42:05 [end_date_ymd] => 2024-12-20 21:42:05 [RateCDR] => 1 ) [2024-12-20 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:42:05' and `end` < '2024-12-20 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:42:17] Production.INFO: count ==1263 [2024-12-20 21:42:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:42:05 - End Time 2024-12-20 21:42:05 [2024-12-20 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065640', 'tblTempUsageDetail_20' ) start [2024-12-20 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065640', 'tblTempUsageDetail_20' ) end [2024-12-20 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065640', 'tblTempVendorCDR_20' ) start [2024-12-20 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065640', 'tblTempVendorCDR_20' ) end [2024-12-20 21:42:17] Production.INFO: ProcessCDR(1,14065640,1,1,2) [2024-12-20 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065640', 'tblTempUsageDetail_20' ) start [2024-12-20 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065640', 'tblTempUsageDetail_20' ) end [2024-12-20 21:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:42:20] Production.INFO: ==21456== Releasing lock... [2024-12-20 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:42:20] Production.INFO: 37 MB #Memory Used# [2024-12-20 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:43:04 [end_date_ymd] => 2024-12-20 21:43:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:43:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:43:16] Production.INFO: count ==1261 [2024-12-20 21:43:16] Production.ERROR: pbx CDR StartTime 2024-12-20 18:43:04 - End Time 2024-12-20 21:43:04 [2024-12-20 21:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065645', 'tblTempUsageDetail_20' ) start [2024-12-20 21:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065645', 'tblTempUsageDetail_20' ) end [2024-12-20 21:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065645', 'tblTempVendorCDR_20' ) start [2024-12-20 21:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065645', 'tblTempVendorCDR_20' ) end [2024-12-20 21:43:16] Production.INFO: ProcessCDR(1,14065645,1,1,2) [2024-12-20 21:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065645', 'tblTempUsageDetail_20' ) start [2024-12-20 21:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065645', 'tblTempUsageDetail_20' ) end [2024-12-20 21:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:43:19] Production.INFO: ==21528== Releasing lock... [2024-12-20 21:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:43:19] Production.INFO: 37 MB #Memory Used# [2024-12-20 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:44:05 [end_date_ymd] => 2024-12-20 21:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:44:17] Production.INFO: count ==1263 [2024-12-20 21:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:44:05 - End Time 2024-12-20 21:44:05 [2024-12-20 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065650', 'tblTempUsageDetail_20' ) start [2024-12-20 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065650', 'tblTempUsageDetail_20' ) end [2024-12-20 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065650', 'tblTempVendorCDR_20' ) start [2024-12-20 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065650', 'tblTempVendorCDR_20' ) end [2024-12-20 21:44:17] Production.INFO: ProcessCDR(1,14065650,1,1,2) [2024-12-20 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065650', 'tblTempUsageDetail_20' ) start [2024-12-20 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065650', 'tblTempUsageDetail_20' ) end [2024-12-20 21:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:44:20] Production.INFO: ==21607== Releasing lock... [2024-12-20 21:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:44:20] Production.INFO: 37 MB #Memory Used# [2024-12-20 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:45:05 [end_date_ymd] => 2024-12-20 21:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:45:17] Production.INFO: count ==1260 [2024-12-20 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:45:05 - End Time 2024-12-20 21:45:05 [2024-12-20 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065655', 'tblTempUsageDetail_20' ) start [2024-12-20 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065655', 'tblTempUsageDetail_20' ) end [2024-12-20 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065655', 'tblTempVendorCDR_20' ) start [2024-12-20 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065655', 'tblTempVendorCDR_20' ) end [2024-12-20 21:45:17] Production.INFO: ProcessCDR(1,14065655,1,1,2) [2024-12-20 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065655', 'tblTempUsageDetail_20' ) start [2024-12-20 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065655', 'tblTempUsageDetail_20' ) end [2024-12-20 21:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:45:21] Production.INFO: ==21687== Releasing lock... [2024-12-20 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:45:21] Production.INFO: 37 MB #Memory Used# [2024-12-20 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:46:04 [end_date_ymd] => 2024-12-20 21:46:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:46:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:46:16] Production.INFO: count ==1244 [2024-12-20 21:46:16] Production.ERROR: pbx CDR StartTime 2024-12-20 18:46:04 - End Time 2024-12-20 21:46:04 [2024-12-20 21:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065660', 'tblTempUsageDetail_20' ) start [2024-12-20 21:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065660', 'tblTempUsageDetail_20' ) end [2024-12-20 21:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065660', 'tblTempVendorCDR_20' ) start [2024-12-20 21:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065660', 'tblTempVendorCDR_20' ) end [2024-12-20 21:46:16] Production.INFO: ProcessCDR(1,14065660,1,1,2) [2024-12-20 21:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065660', 'tblTempUsageDetail_20' ) start [2024-12-20 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065660', 'tblTempUsageDetail_20' ) end [2024-12-20 21:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:46:21] Production.INFO: ==21760== Releasing lock... [2024-12-20 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:46:21] Production.INFO: 37 MB #Memory Used# [2024-12-20 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:47:05 [end_date_ymd] => 2024-12-20 21:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:47:17] Production.INFO: count ==1231 [2024-12-20 21:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:47:05 - End Time 2024-12-20 21:47:05 [2024-12-20 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065665', 'tblTempUsageDetail_20' ) start [2024-12-20 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065665', 'tblTempUsageDetail_20' ) end [2024-12-20 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065665', 'tblTempVendorCDR_20' ) start [2024-12-20 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065665', 'tblTempVendorCDR_20' ) end [2024-12-20 21:47:17] Production.INFO: ProcessCDR(1,14065665,1,1,2) [2024-12-20 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065665', 'tblTempUsageDetail_20' ) start [2024-12-20 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065665', 'tblTempUsageDetail_20' ) end [2024-12-20 21:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:47:20] Production.INFO: ==21837== Releasing lock... [2024-12-20 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:47:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:48:06 [end_date_ymd] => 2024-12-20 21:48:06 [RateCDR] => 1 ) [2024-12-20 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:48:06' and `end` < '2024-12-20 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:48:18] Production.INFO: count ==1229 [2024-12-20 21:48:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:48:06 - End Time 2024-12-20 21:48:06 [2024-12-20 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065670', 'tblTempUsageDetail_20' ) start [2024-12-20 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065670', 'tblTempUsageDetail_20' ) end [2024-12-20 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065670', 'tblTempVendorCDR_20' ) start [2024-12-20 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065670', 'tblTempVendorCDR_20' ) end [2024-12-20 21:48:18] Production.INFO: ProcessCDR(1,14065670,1,1,2) [2024-12-20 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065670', 'tblTempUsageDetail_20' ) start [2024-12-20 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065670', 'tblTempUsageDetail_20' ) end [2024-12-20 21:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:48:21] Production.INFO: ==21914== Releasing lock... [2024-12-20 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:48:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:49:05 [end_date_ymd] => 2024-12-20 21:49:05 [RateCDR] => 1 ) [2024-12-20 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:49:05' and `end` < '2024-12-20 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:49:17] Production.INFO: count ==1229 [2024-12-20 21:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:49:05 - End Time 2024-12-20 21:49:05 [2024-12-20 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065675', 'tblTempUsageDetail_20' ) start [2024-12-20 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065675', 'tblTempUsageDetail_20' ) end [2024-12-20 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065675', 'tblTempVendorCDR_20' ) start [2024-12-20 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065675', 'tblTempVendorCDR_20' ) end [2024-12-20 21:49:17] Production.INFO: ProcessCDR(1,14065675,1,1,2) [2024-12-20 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065675', 'tblTempUsageDetail_20' ) start [2024-12-20 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065675', 'tblTempUsageDetail_20' ) end [2024-12-20 21:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:49:20] Production.INFO: ==21986== Releasing lock... [2024-12-20 21:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:49:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:50:06 [end_date_ymd] => 2024-12-20 21:50:06 [RateCDR] => 1 ) [2024-12-20 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:50:06' and `end` < '2024-12-20 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:50:18] Production.INFO: count ==1226 [2024-12-20 21:50:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:50:06 - End Time 2024-12-20 21:50:06 [2024-12-20 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065681', 'tblTempUsageDetail_20' ) start [2024-12-20 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065681', 'tblTempUsageDetail_20' ) end [2024-12-20 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065681', 'tblTempVendorCDR_20' ) start [2024-12-20 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065681', 'tblTempVendorCDR_20' ) end [2024-12-20 21:50:18] Production.INFO: ProcessCDR(1,14065681,1,1,2) [2024-12-20 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065681', 'tblTempUsageDetail_20' ) start [2024-12-20 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065681', 'tblTempUsageDetail_20' ) end [2024-12-20 21:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:50:22] Production.INFO: ==22068== Releasing lock... [2024-12-20 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:50:22] Production.INFO: 37 MB #Memory Used# [2024-12-20 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:51:04 [end_date_ymd] => 2024-12-20 21:51:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:51:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:51:17] Production.INFO: count ==1228 [2024-12-20 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:51:04 - End Time 2024-12-20 21:51:04 [2024-12-20 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065686', 'tblTempUsageDetail_20' ) start [2024-12-20 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065686', 'tblTempUsageDetail_20' ) end [2024-12-20 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065686', 'tblTempVendorCDR_20' ) start [2024-12-20 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065686', 'tblTempVendorCDR_20' ) end [2024-12-20 21:51:17] Production.INFO: ProcessCDR(1,14065686,1,1,2) [2024-12-20 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065686', 'tblTempUsageDetail_20' ) start [2024-12-20 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065686', 'tblTempUsageDetail_20' ) end [2024-12-20 21:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:51:22] Production.INFO: ==22151== Releasing lock... [2024-12-20 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:51:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:52:05 [end_date_ymd] => 2024-12-20 21:52:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:52:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:52:17] Production.INFO: count ==1235 [2024-12-20 21:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:52:05 - End Time 2024-12-20 21:52:05 [2024-12-20 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065689', 'tblTempUsageDetail_20' ) start [2024-12-20 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065689', 'tblTempUsageDetail_20' ) end [2024-12-20 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065689', 'tblTempVendorCDR_20' ) start [2024-12-20 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065689', 'tblTempVendorCDR_20' ) end [2024-12-20 21:52:17] Production.INFO: ProcessCDR(1,14065689,1,1,2) [2024-12-20 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065689', 'tblTempUsageDetail_20' ) start [2024-12-20 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065689', 'tblTempUsageDetail_20' ) end [2024-12-20 21:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:52:21] Production.INFO: ==22264== Releasing lock... [2024-12-20 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:52:21] Production.INFO: 37 MB #Memory Used# [2024-12-20 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:53:04 [end_date_ymd] => 2024-12-20 21:53:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:53:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:53:16] Production.INFO: count ==1233 [2024-12-20 21:53:16] Production.ERROR: pbx CDR StartTime 2024-12-20 18:53:04 - End Time 2024-12-20 21:53:04 [2024-12-20 21:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065696', 'tblTempUsageDetail_20' ) start [2024-12-20 21:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065696', 'tblTempUsageDetail_20' ) end [2024-12-20 21:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065696', 'tblTempVendorCDR_20' ) start [2024-12-20 21:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065696', 'tblTempVendorCDR_20' ) end [2024-12-20 21:53:16] Production.INFO: ProcessCDR(1,14065696,1,1,2) [2024-12-20 21:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065696', 'tblTempUsageDetail_20' ) start [2024-12-20 21:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065696', 'tblTempUsageDetail_20' ) end [2024-12-20 21:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:53:19] Production.INFO: ==22341== Releasing lock... [2024-12-20 21:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:53:19] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:54:04 [end_date_ymd] => 2024-12-20 21:54:04 [RateCDR] => 1 ) [2024-12-20 21:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 18:54:04' and `end` < '2024-12-20 21:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 21:54:17] Production.INFO: count ==1232 [2024-12-20 21:54:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:54:04 - End Time 2024-12-20 21:54:04 [2024-12-20 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065701', 'tblTempUsageDetail_20' ) start [2024-12-20 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065701', 'tblTempUsageDetail_20' ) end [2024-12-20 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065701', 'tblTempVendorCDR_20' ) start [2024-12-20 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065701', 'tblTempVendorCDR_20' ) end [2024-12-20 21:54:17] Production.INFO: ProcessCDR(1,14065701,1,1,2) [2024-12-20 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065701', 'tblTempUsageDetail_20' ) start [2024-12-20 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065701', 'tblTempUsageDetail_20' ) end [2024-12-20 21:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:54:20] Production.INFO: ==22416== Releasing lock... [2024-12-20 21:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:54:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:55:04 [end_date_ymd] => 2024-12-20 21:55:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:55:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:55:16] Production.INFO: count ==1231 [2024-12-20 21:55:16] Production.ERROR: pbx CDR StartTime 2024-12-20 18:55:04 - End Time 2024-12-20 21:55:04 [2024-12-20 21:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065706', 'tblTempUsageDetail_20' ) start [2024-12-20 21:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065706', 'tblTempUsageDetail_20' ) end [2024-12-20 21:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065706', 'tblTempVendorCDR_20' ) start [2024-12-20 21:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065706', 'tblTempVendorCDR_20' ) end [2024-12-20 21:55:16] Production.INFO: ProcessCDR(1,14065706,1,1,2) [2024-12-20 21:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065706', 'tblTempUsageDetail_20' ) start [2024-12-20 21:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065706', 'tblTempUsageDetail_20' ) end [2024-12-20 21:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:55:19] Production.INFO: ==22488== Releasing lock... [2024-12-20 21:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:55:19] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:56:05 [end_date_ymd] => 2024-12-20 21:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:56:17] Production.INFO: count ==1216 [2024-12-20 21:56:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:56:05 - End Time 2024-12-20 21:56:05 [2024-12-20 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065711', 'tblTempUsageDetail_20' ) start [2024-12-20 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065711', 'tblTempUsageDetail_20' ) end [2024-12-20 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065711', 'tblTempVendorCDR_20' ) start [2024-12-20 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065711', 'tblTempVendorCDR_20' ) end [2024-12-20 21:56:17] Production.INFO: ProcessCDR(1,14065711,1,1,2) [2024-12-20 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065711', 'tblTempUsageDetail_20' ) start [2024-12-20 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065711', 'tblTempUsageDetail_20' ) end [2024-12-20 21:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:56:20] Production.INFO: ==22568== Releasing lock... [2024-12-20 21:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:56:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:57:06 [end_date_ymd] => 2024-12-20 21:57:06 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:57:06' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:57:18] Production.INFO: count ==1213 [2024-12-20 21:57:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:57:06 - End Time 2024-12-20 21:57:06 [2024-12-20 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065716', 'tblTempUsageDetail_20' ) start [2024-12-20 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065716', 'tblTempUsageDetail_20' ) end [2024-12-20 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065716', 'tblTempVendorCDR_20' ) start [2024-12-20 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065716', 'tblTempVendorCDR_20' ) end [2024-12-20 21:57:18] Production.INFO: ProcessCDR(1,14065716,1,1,2) [2024-12-20 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065716', 'tblTempUsageDetail_20' ) start [2024-12-20 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065716', 'tblTempUsageDetail_20' ) end [2024-12-20 21:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:57:22] Production.INFO: ==22646== Releasing lock... [2024-12-20 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:57:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:58:04 [end_date_ymd] => 2024-12-20 21:58:04 [RateCDR] => 1 ) [2024-12-20 21: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` >= '2024-12-20 18:58:04' and `end` < '2024-12-20 21: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 ,'') [2024-12-20 21:58:18] Production.INFO: count ==1206 [2024-12-20 21:58:18] Production.ERROR: pbx CDR StartTime 2024-12-20 18:58:04 - End Time 2024-12-20 21:58:04 [2024-12-20 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065721', 'tblTempUsageDetail_20' ) start [2024-12-20 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065721', 'tblTempUsageDetail_20' ) end [2024-12-20 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065721', 'tblTempVendorCDR_20' ) start [2024-12-20 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065721', 'tblTempVendorCDR_20' ) end [2024-12-20 21:58:18] Production.INFO: ProcessCDR(1,14065721,1,1,2) [2024-12-20 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065721', 'tblTempUsageDetail_20' ) start [2024-12-20 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065721', 'tblTempUsageDetail_20' ) end [2024-12-20 21:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:58:21] Production.INFO: ==22718== Releasing lock... [2024-12-20 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:58:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 18:59:05 [end_date_ymd] => 2024-12-20 21:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 18:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 21:59:17] Production.INFO: count ==1211 [2024-12-20 21:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 18:59:05 - End Time 2024-12-20 21:59:05 [2024-12-20 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065726', 'tblTempUsageDetail_20' ) start [2024-12-20 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065726', 'tblTempUsageDetail_20' ) end [2024-12-20 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065726', 'tblTempVendorCDR_20' ) start [2024-12-20 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065726', 'tblTempVendorCDR_20' ) end [2024-12-20 21:59:17] Production.INFO: ProcessCDR(1,14065726,1,1,2) [2024-12-20 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065726', 'tblTempUsageDetail_20' ) start [2024-12-20 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065726', 'tblTempUsageDetail_20' ) end [2024-12-20 21:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 21:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 21:59:20] Production.INFO: ==22792== Releasing lock... [2024-12-20 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 21:59:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:00:05 [end_date_ymd] => 2024-12-20 22:00:05 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:00:05' and `end` < '2024-12-20 22: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 ,'') [2024-12-20 22:00:18] Production.INFO: count ==1212 [2024-12-20 22:00:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:00:05 - End Time 2024-12-20 22:00:05 [2024-12-20 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065732', 'tblTempUsageDetail_20' ) start [2024-12-20 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065732', 'tblTempUsageDetail_20' ) end [2024-12-20 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065732', 'tblTempVendorCDR_20' ) start [2024-12-20 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065732', 'tblTempVendorCDR_20' ) end [2024-12-20 22:00:18] Production.INFO: ProcessCDR(1,14065732,1,1,2) [2024-12-20 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065732', 'tblTempUsageDetail_20' ) start [2024-12-20 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065732', 'tblTempUsageDetail_20' ) end [2024-12-20 22:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:00:22] Production.INFO: ==22874== Releasing lock... [2024-12-20 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:00:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-20 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:01:05 [end_date_ymd] => 2024-12-20 22:01:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:01:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:01:19] Production.INFO: count ==1179 [2024-12-20 22:01:19] Production.ERROR: pbx CDR StartTime 2024-12-20 19:01:05 - End Time 2024-12-20 22:01:05 [2024-12-20 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065737', 'tblTempUsageDetail_20' ) start [2024-12-20 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065737', 'tblTempUsageDetail_20' ) end [2024-12-20 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065737', 'tblTempVendorCDR_20' ) start [2024-12-20 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065737', 'tblTempVendorCDR_20' ) end [2024-12-20 22:01:19] Production.INFO: ProcessCDR(1,14065737,1,1,2) [2024-12-20 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065737', 'tblTempUsageDetail_20' ) start [2024-12-20 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065737', 'tblTempUsageDetail_20' ) end [2024-12-20 22:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:01:22] Production.INFO: ==22979== Releasing lock... [2024-12-20 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:01:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:02:05 [end_date_ymd] => 2024-12-20 22:02:05 [RateCDR] => 1 ) [2024-12-20 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:02:05' and `end` < '2024-12-20 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:02:17] Production.INFO: count ==1178 [2024-12-20 22:02:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:02:05 - End Time 2024-12-20 22:02:05 [2024-12-20 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065742', 'tblTempUsageDetail_20' ) start [2024-12-20 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065742', 'tblTempUsageDetail_20' ) end [2024-12-20 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065742', 'tblTempVendorCDR_20' ) start [2024-12-20 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065742', 'tblTempVendorCDR_20' ) end [2024-12-20 22:02:17] Production.INFO: ProcessCDR(1,14065742,1,1,2) [2024-12-20 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065742', 'tblTempUsageDetail_20' ) start [2024-12-20 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065742', 'tblTempUsageDetail_20' ) end [2024-12-20 22:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:02:20] Production.INFO: ==23066== Releasing lock... [2024-12-20 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:02:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:03:05 [end_date_ymd] => 2024-12-20 22:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:03:17] Production.INFO: count ==1177 [2024-12-20 22:03:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:03:05 - End Time 2024-12-20 22:03:05 [2024-12-20 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065747', 'tblTempUsageDetail_20' ) start [2024-12-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065747', 'tblTempUsageDetail_20' ) end [2024-12-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065747', 'tblTempVendorCDR_20' ) start [2024-12-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065747', 'tblTempVendorCDR_20' ) end [2024-12-20 22:03:18] Production.INFO: ProcessCDR(1,14065747,1,1,2) [2024-12-20 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065747', 'tblTempUsageDetail_20' ) start [2024-12-20 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065747', 'tblTempUsageDetail_20' ) end [2024-12-20 22:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:03:22] Production.INFO: ==23136== Releasing lock... [2024-12-20 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:03:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 22:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:04:04 [end_date_ymd] => 2024-12-20 22:04:04 [RateCDR] => 1 ) [2024-12-20 22:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:04:04' and `end` < '2024-12-20 22:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:04:16] Production.INFO: count ==1168 [2024-12-20 22:04:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:04:04 - End Time 2024-12-20 22:04:04 [2024-12-20 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065752', 'tblTempUsageDetail_20' ) start [2024-12-20 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065752', 'tblTempUsageDetail_20' ) end [2024-12-20 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065752', 'tblTempVendorCDR_20' ) start [2024-12-20 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065752', 'tblTempVendorCDR_20' ) end [2024-12-20 22:04:17] Production.INFO: ProcessCDR(1,14065752,1,1,2) [2024-12-20 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065752', 'tblTempUsageDetail_20' ) start [2024-12-20 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065752', 'tblTempUsageDetail_20' ) end [2024-12-20 22:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:04:20] Production.INFO: ==23209== Releasing lock... [2024-12-20 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:04:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:05:05 [end_date_ymd] => 2024-12-20 22:05:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:05:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:05:17] Production.INFO: count ==1165 [2024-12-20 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:05:05 - End Time 2024-12-20 22:05:05 [2024-12-20 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065757', 'tblTempUsageDetail_20' ) start [2024-12-20 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065757', 'tblTempUsageDetail_20' ) end [2024-12-20 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065757', 'tblTempVendorCDR_20' ) start [2024-12-20 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065757', 'tblTempVendorCDR_20' ) end [2024-12-20 22:05:17] Production.INFO: ProcessCDR(1,14065757,1,1,2) [2024-12-20 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065757', 'tblTempUsageDetail_20' ) start [2024-12-20 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065757', 'tblTempUsageDetail_20' ) end [2024-12-20 22:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:05:20] Production.INFO: ==23281== Releasing lock... [2024-12-20 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:05:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:06:05 [end_date_ymd] => 2024-12-20 22:06:05 [RateCDR] => 1 ) [2024-12-20 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:06:05' and `end` < '2024-12-20 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:06:17] Production.INFO: count ==1165 [2024-12-20 22:06:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:06:05 - End Time 2024-12-20 22:06:05 [2024-12-20 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065762', 'tblTempUsageDetail_20' ) start [2024-12-20 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065762', 'tblTempUsageDetail_20' ) end [2024-12-20 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065762', 'tblTempVendorCDR_20' ) start [2024-12-20 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065762', 'tblTempVendorCDR_20' ) end [2024-12-20 22:06:17] Production.INFO: ProcessCDR(1,14065762,1,1,2) [2024-12-20 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065762', 'tblTempUsageDetail_20' ) start [2024-12-20 22:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065762', 'tblTempUsageDetail_20' ) end [2024-12-20 22:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:06:20] Production.INFO: ==23353== Releasing lock... [2024-12-20 22:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:06:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:07:05 [end_date_ymd] => 2024-12-20 22:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:07:17] Production.INFO: count ==1154 [2024-12-20 22:07:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:07:05 - End Time 2024-12-20 22:07:05 [2024-12-20 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065767', 'tblTempUsageDetail_20' ) start [2024-12-20 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065767', 'tblTempUsageDetail_20' ) end [2024-12-20 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065767', 'tblTempVendorCDR_20' ) start [2024-12-20 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065767', 'tblTempVendorCDR_20' ) end [2024-12-20 22:07:18] Production.INFO: ProcessCDR(1,14065767,1,1,2) [2024-12-20 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065767', 'tblTempUsageDetail_20' ) start [2024-12-20 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065767', 'tblTempUsageDetail_20' ) end [2024-12-20 22:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:07:21] Production.INFO: ==23466== Releasing lock... [2024-12-20 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:07:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:08:05 [end_date_ymd] => 2024-12-20 22:08:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:08:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:08:17] Production.INFO: count ==1157 [2024-12-20 22:08:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:08:05 - End Time 2024-12-20 22:08:05 [2024-12-20 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065772', 'tblTempUsageDetail_20' ) start [2024-12-20 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065772', 'tblTempUsageDetail_20' ) end [2024-12-20 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065772', 'tblTempVendorCDR_20' ) start [2024-12-20 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065772', 'tblTempVendorCDR_20' ) end [2024-12-20 22:08:17] Production.INFO: ProcessCDR(1,14065772,1,1,2) [2024-12-20 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065772', 'tblTempUsageDetail_20' ) start [2024-12-20 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065772', 'tblTempUsageDetail_20' ) end [2024-12-20 22:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:08:21] Production.INFO: ==23538== Releasing lock... [2024-12-20 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:08:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:09:05 [end_date_ymd] => 2024-12-20 22:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:09:18] Production.INFO: count ==1153 [2024-12-20 22:09:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:09:05 - End Time 2024-12-20 22:09:05 [2024-12-20 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065777', 'tblTempUsageDetail_20' ) start [2024-12-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065777', 'tblTempUsageDetail_20' ) end [2024-12-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065777', 'tblTempVendorCDR_20' ) start [2024-12-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065777', 'tblTempVendorCDR_20' ) end [2024-12-20 22:09:18] Production.INFO: ProcessCDR(1,14065777,1,1,2) [2024-12-20 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065777', 'tblTempUsageDetail_20' ) start [2024-12-20 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065777', 'tblTempUsageDetail_20' ) end [2024-12-20 22:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:09:21] Production.INFO: ==23611== Releasing lock... [2024-12-20 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:09:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:10:06 [end_date_ymd] => 2024-12-20 22:10:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:10:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:10:18] Production.INFO: count ==1152 [2024-12-20 22:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:10:06 - End Time 2024-12-20 22:10:06 [2024-12-20 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065782', 'tblTempUsageDetail_20' ) start [2024-12-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065782', 'tblTempUsageDetail_20' ) end [2024-12-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065782', 'tblTempVendorCDR_20' ) start [2024-12-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065782', 'tblTempVendorCDR_20' ) end [2024-12-20 22:10:18] Production.INFO: ProcessCDR(1,14065782,1,1,2) [2024-12-20 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065782', 'tblTempUsageDetail_20' ) start [2024-12-20 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065782', 'tblTempUsageDetail_20' ) end [2024-12-20 22:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:10:21] Production.INFO: ==23692== Releasing lock... [2024-12-20 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:10:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:11:05 [end_date_ymd] => 2024-12-20 22:11:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:11:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:11:17] Production.INFO: count ==1131 [2024-12-20 22:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:11:05 - End Time 2024-12-20 22:11:05 [2024-12-20 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065788', 'tblTempUsageDetail_20' ) start [2024-12-20 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065788', 'tblTempUsageDetail_20' ) end [2024-12-20 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065788', 'tblTempVendorCDR_20' ) start [2024-12-20 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065788', 'tblTempVendorCDR_20' ) end [2024-12-20 22:11:17] Production.INFO: ProcessCDR(1,14065788,1,1,2) [2024-12-20 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065788', 'tblTempUsageDetail_20' ) start [2024-12-20 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065788', 'tblTempUsageDetail_20' ) end [2024-12-20 22:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:11:20] Production.INFO: ==23764== Releasing lock... [2024-12-20 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:11:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:12:05 [end_date_ymd] => 2024-12-20 22:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:12:17] Production.INFO: count ==1130 [2024-12-20 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:12:05 - End Time 2024-12-20 22:12:05 [2024-12-20 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065793', 'tblTempUsageDetail_20' ) start [2024-12-20 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065793', 'tblTempUsageDetail_20' ) end [2024-12-20 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065793', 'tblTempVendorCDR_20' ) start [2024-12-20 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065793', 'tblTempVendorCDR_20' ) end [2024-12-20 22:12:17] Production.INFO: ProcessCDR(1,14065793,1,1,2) [2024-12-20 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065793', 'tblTempUsageDetail_20' ) start [2024-12-20 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065793', 'tblTempUsageDetail_20' ) end [2024-12-20 22:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:12:20] Production.INFO: ==23840== Releasing lock... [2024-12-20 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:12:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:13:04 [end_date_ymd] => 2024-12-20 22:13:04 [RateCDR] => 1 ) [2024-12-20 22:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:13:04' and `end` < '2024-12-20 22:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:13:17] Production.INFO: count ==1128 [2024-12-20 22:13:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:13:04 - End Time 2024-12-20 22:13:04 [2024-12-20 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065798', 'tblTempUsageDetail_20' ) start [2024-12-20 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065798', 'tblTempUsageDetail_20' ) end [2024-12-20 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065798', 'tblTempVendorCDR_20' ) start [2024-12-20 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065798', 'tblTempVendorCDR_20' ) end [2024-12-20 22:13:17] Production.INFO: ProcessCDR(1,14065798,1,1,2) [2024-12-20 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065798', 'tblTempUsageDetail_20' ) start [2024-12-20 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065798', 'tblTempUsageDetail_20' ) end [2024-12-20 22:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:13:20] Production.INFO: ==23919== Releasing lock... [2024-12-20 22:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:13:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:14:05 [end_date_ymd] => 2024-12-20 22:14:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:14:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:14:17] Production.INFO: count ==1128 [2024-12-20 22:14:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:14:05 - End Time 2024-12-20 22:14:05 [2024-12-20 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065803', 'tblTempUsageDetail_20' ) start [2024-12-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065803', 'tblTempUsageDetail_20' ) end [2024-12-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065803', 'tblTempVendorCDR_20' ) start [2024-12-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065803', 'tblTempVendorCDR_20' ) end [2024-12-20 22:14:17] Production.INFO: ProcessCDR(1,14065803,1,1,2) [2024-12-20 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065803', 'tblTempUsageDetail_20' ) start [2024-12-20 22:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065803', 'tblTempUsageDetail_20' ) end [2024-12-20 22:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:14:20] Production.INFO: ==23991== Releasing lock... [2024-12-20 22:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:14:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:15:05 [end_date_ymd] => 2024-12-20 22:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:15:17] Production.INFO: count ==1128 [2024-12-20 22:15:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:15:05 - End Time 2024-12-20 22:15:05 [2024-12-20 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065808', 'tblTempUsageDetail_20' ) start [2024-12-20 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065808', 'tblTempUsageDetail_20' ) end [2024-12-20 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065808', 'tblTempVendorCDR_20' ) start [2024-12-20 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065808', 'tblTempVendorCDR_20' ) end [2024-12-20 22:15:17] Production.INFO: ProcessCDR(1,14065808,1,1,2) [2024-12-20 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065808', 'tblTempUsageDetail_20' ) start [2024-12-20 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065808', 'tblTempUsageDetail_20' ) end [2024-12-20 22:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:15:20] Production.INFO: ==24062== Releasing lock... [2024-12-20 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:15:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:16:05 [end_date_ymd] => 2024-12-20 22:16:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:16:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:16:17] Production.INFO: count ==1128 [2024-12-20 22:16:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:16:05 - End Time 2024-12-20 22:16:05 [2024-12-20 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065813', 'tblTempUsageDetail_20' ) start [2024-12-20 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065813', 'tblTempUsageDetail_20' ) end [2024-12-20 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065813', 'tblTempVendorCDR_20' ) start [2024-12-20 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065813', 'tblTempVendorCDR_20' ) end [2024-12-20 22:16:17] Production.INFO: ProcessCDR(1,14065813,1,1,2) [2024-12-20 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065813', 'tblTempUsageDetail_20' ) start [2024-12-20 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065813', 'tblTempUsageDetail_20' ) end [2024-12-20 22:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:16:20] Production.INFO: ==24138== Releasing lock... [2024-12-20 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:16:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:17:05 [end_date_ymd] => 2024-12-20 22:17:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:17:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:17:17] Production.INFO: count ==1123 [2024-12-20 22:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:17:05 - End Time 2024-12-20 22:17:05 [2024-12-20 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065818', 'tblTempUsageDetail_20' ) start [2024-12-20 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065818', 'tblTempUsageDetail_20' ) end [2024-12-20 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065818', 'tblTempVendorCDR_20' ) start [2024-12-20 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065818', 'tblTempVendorCDR_20' ) end [2024-12-20 22:17:17] Production.INFO: ProcessCDR(1,14065818,1,1,2) [2024-12-20 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065818', 'tblTempUsageDetail_20' ) start [2024-12-20 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065818', 'tblTempUsageDetail_20' ) end [2024-12-20 22:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:17:20] Production.INFO: ==24208== Releasing lock... [2024-12-20 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:17:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:18:05 [end_date_ymd] => 2024-12-20 22:18:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:18:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:18:18] Production.INFO: count ==1119 [2024-12-20 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:18:05 - End Time 2024-12-20 22:18:05 [2024-12-20 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065823', 'tblTempUsageDetail_20' ) start [2024-12-20 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065823', 'tblTempUsageDetail_20' ) end [2024-12-20 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065823', 'tblTempVendorCDR_20' ) start [2024-12-20 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065823', 'tblTempVendorCDR_20' ) end [2024-12-20 22:18:18] Production.INFO: ProcessCDR(1,14065823,1,1,2) [2024-12-20 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065823', 'tblTempUsageDetail_20' ) start [2024-12-20 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065823', 'tblTempUsageDetail_20' ) end [2024-12-20 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:18:21] Production.INFO: ==24281== Releasing lock... [2024-12-20 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:18:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:19:04 [end_date_ymd] => 2024-12-20 22:19:04 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:19:04' and `end` < '2024-12-20 22: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 ,'') [2024-12-20 22:19:18] Production.INFO: count ==1118 [2024-12-20 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:19:04 - End Time 2024-12-20 22:19:04 [2024-12-20 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065828', 'tblTempUsageDetail_20' ) start [2024-12-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065828', 'tblTempUsageDetail_20' ) end [2024-12-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065828', 'tblTempVendorCDR_20' ) start [2024-12-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065828', 'tblTempVendorCDR_20' ) end [2024-12-20 22:19:18] Production.INFO: ProcessCDR(1,14065828,1,1,2) [2024-12-20 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065828', 'tblTempUsageDetail_20' ) start [2024-12-20 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065828', 'tblTempUsageDetail_20' ) end [2024-12-20 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:19:21] Production.INFO: ==24355== Releasing lock... [2024-12-20 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:19:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:20:05 [end_date_ymd] => 2024-12-20 22:20:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:20:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:20:17] Production.INFO: count ==1106 [2024-12-20 22:20:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:20:05 - End Time 2024-12-20 22:20:05 [2024-12-20 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065834', 'tblTempUsageDetail_20' ) start [2024-12-20 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065834', 'tblTempUsageDetail_20' ) end [2024-12-20 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065834', 'tblTempVendorCDR_20' ) start [2024-12-20 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065834', 'tblTempVendorCDR_20' ) end [2024-12-20 22:20:18] Production.INFO: ProcessCDR(1,14065834,1,1,2) [2024-12-20 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065834', 'tblTempUsageDetail_20' ) start [2024-12-20 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065834', 'tblTempUsageDetail_20' ) end [2024-12-20 22:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:20:21] Production.INFO: ==24432== Releasing lock... [2024-12-20 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:20:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:21:04 [end_date_ymd] => 2024-12-20 22:21:04 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:21:04' and `end` < '2024-12-20 22: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 ,'') [2024-12-20 22:21:17] Production.INFO: count ==1087 [2024-12-20 22:21:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:21:04 - End Time 2024-12-20 22:21:04 [2024-12-20 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065839', 'tblTempUsageDetail_20' ) start [2024-12-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065839', 'tblTempUsageDetail_20' ) end [2024-12-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065839', 'tblTempVendorCDR_20' ) start [2024-12-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065839', 'tblTempVendorCDR_20' ) end [2024-12-20 22:21:18] Production.INFO: ProcessCDR(1,14065839,1,1,2) [2024-12-20 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065839', 'tblTempUsageDetail_20' ) start [2024-12-20 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065839', 'tblTempUsageDetail_20' ) end [2024-12-20 22:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:21:22] Production.INFO: ==24508== Releasing lock... [2024-12-20 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:21:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:22:05 [end_date_ymd] => 2024-12-20 22:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:22:18] Production.INFO: count ==1092 [2024-12-20 22:22:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:22:05 - End Time 2024-12-20 22:22:05 [2024-12-20 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065844', 'tblTempUsageDetail_20' ) start [2024-12-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065844', 'tblTempUsageDetail_20' ) end [2024-12-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065844', 'tblTempVendorCDR_20' ) start [2024-12-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065844', 'tblTempVendorCDR_20' ) end [2024-12-20 22:22:18] Production.INFO: ProcessCDR(1,14065844,1,1,2) [2024-12-20 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065844', 'tblTempUsageDetail_20' ) start [2024-12-20 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065844', 'tblTempUsageDetail_20' ) end [2024-12-20 22:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:22:23] Production.INFO: ==24579== Releasing lock... [2024-12-20 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:22:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:23:05 [end_date_ymd] => 2024-12-20 22:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:23:17] Production.INFO: count ==1096 [2024-12-20 22:23:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:23:05 - End Time 2024-12-20 22:23:05 [2024-12-20 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065849', 'tblTempUsageDetail_20' ) start [2024-12-20 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065849', 'tblTempUsageDetail_20' ) end [2024-12-20 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065849', 'tblTempVendorCDR_20' ) start [2024-12-20 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065849', 'tblTempVendorCDR_20' ) end [2024-12-20 22:23:17] Production.INFO: ProcessCDR(1,14065849,1,1,2) [2024-12-20 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065849', 'tblTempUsageDetail_20' ) start [2024-12-20 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065849', 'tblTempUsageDetail_20' ) end [2024-12-20 22:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:23:22] Production.INFO: ==24689== Releasing lock... [2024-12-20 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:23:22] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:24:05 [end_date_ymd] => 2024-12-20 22:24:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:24:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:24:18] Production.INFO: count ==1089 [2024-12-20 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:24:05 - End Time 2024-12-20 22:24:05 [2024-12-20 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065854', 'tblTempUsageDetail_20' ) start [2024-12-20 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065854', 'tblTempUsageDetail_20' ) end [2024-12-20 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065854', 'tblTempVendorCDR_20' ) start [2024-12-20 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065854', 'tblTempVendorCDR_20' ) end [2024-12-20 22:24:18] Production.INFO: ProcessCDR(1,14065854,1,1,2) [2024-12-20 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065854', 'tblTempUsageDetail_20' ) start [2024-12-20 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065854', 'tblTempUsageDetail_20' ) end [2024-12-20 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:24:21] Production.INFO: ==24765== Releasing lock... [2024-12-20 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:24:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:25:05 [end_date_ymd] => 2024-12-20 22:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:25:17] Production.INFO: count ==1085 [2024-12-20 22:25:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:25:05 - End Time 2024-12-20 22:25:05 [2024-12-20 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065859', 'tblTempUsageDetail_20' ) start [2024-12-20 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065859', 'tblTempUsageDetail_20' ) end [2024-12-20 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065859', 'tblTempVendorCDR_20' ) start [2024-12-20 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065859', 'tblTempVendorCDR_20' ) end [2024-12-20 22:25:17] Production.INFO: ProcessCDR(1,14065859,1,1,2) [2024-12-20 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065859', 'tblTempUsageDetail_20' ) start [2024-12-20 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065859', 'tblTempUsageDetail_20' ) end [2024-12-20 22:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:25:20] Production.INFO: ==24837== Releasing lock... [2024-12-20 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:25:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:26:04 [end_date_ymd] => 2024-12-20 22:26:04 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:26:04' and `end` < '2024-12-20 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:26:16] Production.INFO: count ==1082 [2024-12-20 22:26:16] Production.ERROR: pbx CDR StartTime 2024-12-20 19:26:04 - End Time 2024-12-20 22:26:04 [2024-12-20 22:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065864', 'tblTempUsageDetail_20' ) start [2024-12-20 22:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065864', 'tblTempUsageDetail_20' ) end [2024-12-20 22:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065864', 'tblTempVendorCDR_20' ) start [2024-12-20 22:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065864', 'tblTempVendorCDR_20' ) end [2024-12-20 22:26:16] Production.INFO: ProcessCDR(1,14065864,1,1,2) [2024-12-20 22:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065864', 'tblTempUsageDetail_20' ) start [2024-12-20 22:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065864', 'tblTempUsageDetail_20' ) end [2024-12-20 22:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:26:19] Production.INFO: ==24909== Releasing lock... [2024-12-20 22:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:26:19] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:27:04 [end_date_ymd] => 2024-12-20 22:27:04 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:27:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:27:17] Production.INFO: count ==1076 [2024-12-20 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:27:04 - End Time 2024-12-20 22:27:04 [2024-12-20 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065869', 'tblTempUsageDetail_20' ) start [2024-12-20 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065869', 'tblTempUsageDetail_20' ) end [2024-12-20 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065869', 'tblTempVendorCDR_20' ) start [2024-12-20 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065869', 'tblTempVendorCDR_20' ) end [2024-12-20 22:27:17] Production.INFO: ProcessCDR(1,14065869,1,1,2) [2024-12-20 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065869', 'tblTempUsageDetail_20' ) start [2024-12-20 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065869', 'tblTempUsageDetail_20' ) end [2024-12-20 22:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:27:20] Production.INFO: ==24981== Releasing lock... [2024-12-20 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:27:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:28:04 [end_date_ymd] => 2024-12-20 22:28:04 [RateCDR] => 1 ) [2024-12-20 22:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:28:04' and `end` < '2024-12-20 22:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:28:17] Production.INFO: count ==1075 [2024-12-20 22:28:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:28:04 - End Time 2024-12-20 22:28:04 [2024-12-20 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065874', 'tblTempUsageDetail_20' ) start [2024-12-20 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065874', 'tblTempUsageDetail_20' ) end [2024-12-20 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065874', 'tblTempVendorCDR_20' ) start [2024-12-20 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065874', 'tblTempVendorCDR_20' ) end [2024-12-20 22:28:17] Production.INFO: ProcessCDR(1,14065874,1,1,2) [2024-12-20 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065874', 'tblTempUsageDetail_20' ) start [2024-12-20 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065874', 'tblTempUsageDetail_20' ) end [2024-12-20 22:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:28:21] Production.INFO: ==25057== Releasing lock... [2024-12-20 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:28:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:29:05 [end_date_ymd] => 2024-12-20 22:29:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:29:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:29:17] Production.INFO: count ==1073 [2024-12-20 22:29:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:29:05 - End Time 2024-12-20 22:29:05 [2024-12-20 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065879', 'tblTempUsageDetail_20' ) start [2024-12-20 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065879', 'tblTempUsageDetail_20' ) end [2024-12-20 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065879', 'tblTempVendorCDR_20' ) start [2024-12-20 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065879', 'tblTempVendorCDR_20' ) end [2024-12-20 22:29:17] Production.INFO: ProcessCDR(1,14065879,1,1,2) [2024-12-20 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065879', 'tblTempUsageDetail_20' ) start [2024-12-20 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065879', 'tblTempUsageDetail_20' ) end [2024-12-20 22:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:29:22] Production.INFO: ==25132== Releasing lock... [2024-12-20 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:29:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:30:06 [end_date_ymd] => 2024-12-20 22:30:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:30:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:30:18] Production.INFO: count ==1072 [2024-12-20 22:30:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:30:06 - End Time 2024-12-20 22:30:06 [2024-12-20 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065885', 'tblTempUsageDetail_20' ) start [2024-12-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065885', 'tblTempUsageDetail_20' ) end [2024-12-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065885', 'tblTempVendorCDR_20' ) start [2024-12-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065885', 'tblTempVendorCDR_20' ) end [2024-12-20 22:30:18] Production.INFO: ProcessCDR(1,14065885,1,1,2) [2024-12-20 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065885', 'tblTempUsageDetail_20' ) start [2024-12-20 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065885', 'tblTempUsageDetail_20' ) end [2024-12-20 22:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:30:21] Production.INFO: ==25208== Releasing lock... [2024-12-20 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:30:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:31:05 [end_date_ymd] => 2024-12-20 22:31:05 [RateCDR] => 1 ) [2024-12-20 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:31:05' and `end` < '2024-12-20 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:31:17] Production.INFO: count ==1042 [2024-12-20 22:31:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:31:05 - End Time 2024-12-20 22:31:05 [2024-12-20 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065890', 'tblTempUsageDetail_20' ) start [2024-12-20 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065890', 'tblTempUsageDetail_20' ) end [2024-12-20 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065890', 'tblTempVendorCDR_20' ) start [2024-12-20 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065890', 'tblTempVendorCDR_20' ) end [2024-12-20 22:31:17] Production.INFO: ProcessCDR(1,14065890,1,1,2) [2024-12-20 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065890', 'tblTempUsageDetail_20' ) start [2024-12-20 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065890', 'tblTempUsageDetail_20' ) end [2024-12-20 22:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:31:21] Production.INFO: ==25285== Releasing lock... [2024-12-20 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:31:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:32:05 [end_date_ymd] => 2024-12-20 22:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:32:18] Production.INFO: count ==1046 [2024-12-20 22:32:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:32:05 - End Time 2024-12-20 22:32:05 [2024-12-20 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065895', 'tblTempUsageDetail_20' ) start [2024-12-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065895', 'tblTempUsageDetail_20' ) end [2024-12-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065895', 'tblTempVendorCDR_20' ) start [2024-12-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065895', 'tblTempVendorCDR_20' ) end [2024-12-20 22:32:18] Production.INFO: ProcessCDR(1,14065895,1,1,2) [2024-12-20 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065895', 'tblTempUsageDetail_20' ) start [2024-12-20 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065895', 'tblTempUsageDetail_20' ) end [2024-12-20 22:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:32:21] Production.INFO: ==25356== Releasing lock... [2024-12-20 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:32:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:33:04 [end_date_ymd] => 2024-12-20 22:33:04 [RateCDR] => 1 ) [2024-12-20 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:33:04' and `end` < '2024-12-20 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:33:17] Production.INFO: count ==1044 [2024-12-20 22:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:33:04 - End Time 2024-12-20 22:33:04 [2024-12-20 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065900', 'tblTempUsageDetail_20' ) start [2024-12-20 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065900', 'tblTempUsageDetail_20' ) end [2024-12-20 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065900', 'tblTempVendorCDR_20' ) start [2024-12-20 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065900', 'tblTempVendorCDR_20' ) end [2024-12-20 22:33:17] Production.INFO: ProcessCDR(1,14065900,1,1,2) [2024-12-20 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065900', 'tblTempUsageDetail_20' ) start [2024-12-20 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065900', 'tblTempUsageDetail_20' ) end [2024-12-20 22:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:33:20] Production.INFO: ==25426== Releasing lock... [2024-12-20 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:33:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:34:05 [end_date_ymd] => 2024-12-20 22:34:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:34:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:34:18] Production.INFO: count ==1043 [2024-12-20 22:34:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:34:05 - End Time 2024-12-20 22:34:05 [2024-12-20 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065905', 'tblTempUsageDetail_20' ) start [2024-12-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065905', 'tblTempUsageDetail_20' ) end [2024-12-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065905', 'tblTempVendorCDR_20' ) start [2024-12-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065905', 'tblTempVendorCDR_20' ) end [2024-12-20 22:34:18] Production.INFO: ProcessCDR(1,14065905,1,1,2) [2024-12-20 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065905', 'tblTempUsageDetail_20' ) start [2024-12-20 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065905', 'tblTempUsageDetail_20' ) end [2024-12-20 22:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:34:21] Production.INFO: ==25497== Releasing lock... [2024-12-20 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:34:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:35:05 [end_date_ymd] => 2024-12-20 22:35:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:35:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:35:17] Production.INFO: count ==1042 [2024-12-20 22:35:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:35:05 - End Time 2024-12-20 22:35:05 [2024-12-20 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065910', 'tblTempUsageDetail_20' ) start [2024-12-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065910', 'tblTempUsageDetail_20' ) end [2024-12-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065910', 'tblTempVendorCDR_20' ) start [2024-12-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065910', 'tblTempVendorCDR_20' ) end [2024-12-20 22:35:17] Production.INFO: ProcessCDR(1,14065910,1,1,2) [2024-12-20 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065910', 'tblTempUsageDetail_20' ) start [2024-12-20 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065910', 'tblTempUsageDetail_20' ) end [2024-12-20 22:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:35:20] Production.INFO: ==25567== Releasing lock... [2024-12-20 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:35:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:36:05 [end_date_ymd] => 2024-12-20 22:36:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:36:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:36:17] Production.INFO: count ==1042 [2024-12-20 22:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:36:05 - End Time 2024-12-20 22:36:05 [2024-12-20 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065915', 'tblTempUsageDetail_20' ) start [2024-12-20 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065915', 'tblTempUsageDetail_20' ) end [2024-12-20 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065915', 'tblTempVendorCDR_20' ) start [2024-12-20 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065915', 'tblTempVendorCDR_20' ) end [2024-12-20 22:36:17] Production.INFO: ProcessCDR(1,14065915,1,1,2) [2024-12-20 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065915', 'tblTempUsageDetail_20' ) start [2024-12-20 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065915', 'tblTempUsageDetail_20' ) end [2024-12-20 22:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:36:21] Production.INFO: ==25641== Releasing lock... [2024-12-20 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:36:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:37:04 [end_date_ymd] => 2024-12-20 22:37:04 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:37:04' and `end` < '2024-12-20 22: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 ,'') [2024-12-20 22:37:16] Production.INFO: count ==1041 [2024-12-20 22:37:16] Production.ERROR: pbx CDR StartTime 2024-12-20 19:37:04 - End Time 2024-12-20 22:37:04 [2024-12-20 22:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065920', 'tblTempUsageDetail_20' ) start [2024-12-20 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065920', 'tblTempUsageDetail_20' ) end [2024-12-20 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065920', 'tblTempVendorCDR_20' ) start [2024-12-20 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065920', 'tblTempVendorCDR_20' ) end [2024-12-20 22:37:16] Production.INFO: ProcessCDR(1,14065920,1,1,2) [2024-12-20 22:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065920', 'tblTempUsageDetail_20' ) start [2024-12-20 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065920', 'tblTempUsageDetail_20' ) end [2024-12-20 22:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:37:21] Production.INFO: ==25710== Releasing lock... [2024-12-20 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:37:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:38:04 [end_date_ymd] => 2024-12-20 22:38:04 [RateCDR] => 1 ) [2024-12-20 22:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:38:04' and `end` < '2024-12-20 22:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:38:17] Production.INFO: count ==1038 [2024-12-20 22:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:38:04 - End Time 2024-12-20 22:38:04 [2024-12-20 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065925', 'tblTempUsageDetail_20' ) start [2024-12-20 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065925', 'tblTempUsageDetail_20' ) end [2024-12-20 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065925', 'tblTempVendorCDR_20' ) start [2024-12-20 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065925', 'tblTempVendorCDR_20' ) end [2024-12-20 22:38:17] Production.INFO: ProcessCDR(1,14065925,1,1,2) [2024-12-20 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065925', 'tblTempUsageDetail_20' ) start [2024-12-20 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065925', 'tblTempUsageDetail_20' ) end [2024-12-20 22:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:38:20] Production.INFO: ==25780== Releasing lock... [2024-12-20 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:38:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:39:05 [end_date_ymd] => 2024-12-20 22:39:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:39:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:39:17] Production.INFO: count ==1036 [2024-12-20 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:39:05 - End Time 2024-12-20 22:39:05 [2024-12-20 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065930', 'tblTempUsageDetail_20' ) start [2024-12-20 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065930', 'tblTempUsageDetail_20' ) end [2024-12-20 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065930', 'tblTempVendorCDR_20' ) start [2024-12-20 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065930', 'tblTempVendorCDR_20' ) end [2024-12-20 22:39:17] Production.INFO: ProcessCDR(1,14065930,1,1,2) [2024-12-20 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065930', 'tblTempUsageDetail_20' ) start [2024-12-20 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065930', 'tblTempUsageDetail_20' ) end [2024-12-20 22:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:39:20] Production.INFO: ==25892== Releasing lock... [2024-12-20 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:39:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:40:06 [end_date_ymd] => 2024-12-20 22:40:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:40:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:40:18] Production.INFO: count ==1034 [2024-12-20 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:40:06 - End Time 2024-12-20 22:40:06 [2024-12-20 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065936', 'tblTempUsageDetail_20' ) start [2024-12-20 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065936', 'tblTempUsageDetail_20' ) end [2024-12-20 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065936', 'tblTempVendorCDR_20' ) start [2024-12-20 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065936', 'tblTempVendorCDR_20' ) end [2024-12-20 22:40:18] Production.INFO: ProcessCDR(1,14065936,1,1,2) [2024-12-20 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065936', 'tblTempUsageDetail_20' ) start [2024-12-20 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065936', 'tblTempUsageDetail_20' ) end [2024-12-20 22:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:40:21] Production.INFO: ==25965== Releasing lock... [2024-12-20 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:40:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:41:04 [end_date_ymd] => 2024-12-20 22:41:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:41:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:41:17] Production.INFO: count ==1169 [2024-12-20 22:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:41:04 - End Time 2024-12-20 22:41:04 [2024-12-20 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065941', 'tblTempUsageDetail_20' ) start [2024-12-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065941', 'tblTempUsageDetail_20' ) end [2024-12-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065941', 'tblTempVendorCDR_20' ) start [2024-12-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065941', 'tblTempVendorCDR_20' ) end [2024-12-20 22:41:17] Production.INFO: ProcessCDR(1,14065941,1,1,2) [2024-12-20 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065941', 'tblTempUsageDetail_20' ) start [2024-12-20 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065941', 'tblTempUsageDetail_20' ) end [2024-12-20 22:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:41:20] Production.INFO: ==26037== Releasing lock... [2024-12-20 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:41:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:42:05 [end_date_ymd] => 2024-12-20 22:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:42:18] Production.INFO: count ==1169 [2024-12-20 22:42:19] Production.ERROR: pbx CDR StartTime 2024-12-20 19:42:05 - End Time 2024-12-20 22:42:05 [2024-12-20 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065946', 'tblTempUsageDetail_20' ) start [2024-12-20 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065946', 'tblTempUsageDetail_20' ) end [2024-12-20 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065946', 'tblTempVendorCDR_20' ) start [2024-12-20 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065946', 'tblTempVendorCDR_20' ) end [2024-12-20 22:42:19] Production.INFO: ProcessCDR(1,14065946,1,1,2) [2024-12-20 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065946', 'tblTempUsageDetail_20' ) start [2024-12-20 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065946', 'tblTempUsageDetail_20' ) end [2024-12-20 22:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:42:22] Production.INFO: ==26112== Releasing lock... [2024-12-20 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:42:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:43:04 [end_date_ymd] => 2024-12-20 22:43:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:43:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:43:17] Production.INFO: count ==1169 [2024-12-20 22:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:43:04 - End Time 2024-12-20 22:43:04 [2024-12-20 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065951', 'tblTempUsageDetail_20' ) start [2024-12-20 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065951', 'tblTempUsageDetail_20' ) end [2024-12-20 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065951', 'tblTempVendorCDR_20' ) start [2024-12-20 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065951', 'tblTempVendorCDR_20' ) end [2024-12-20 22:43:17] Production.INFO: ProcessCDR(1,14065951,1,1,2) [2024-12-20 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065951', 'tblTempUsageDetail_20' ) start [2024-12-20 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065951', 'tblTempUsageDetail_20' ) end [2024-12-20 22:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:43:22] Production.INFO: ==26185== Releasing lock... [2024-12-20 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:43:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:44:05 [end_date_ymd] => 2024-12-20 22:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:44:17] Production.INFO: count ==1169 [2024-12-20 22:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:44:05 - End Time 2024-12-20 22:44:05 [2024-12-20 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065956', 'tblTempUsageDetail_20' ) start [2024-12-20 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065956', 'tblTempUsageDetail_20' ) end [2024-12-20 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065956', 'tblTempVendorCDR_20' ) start [2024-12-20 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065956', 'tblTempVendorCDR_20' ) end [2024-12-20 22:44:17] Production.INFO: ProcessCDR(1,14065956,1,1,2) [2024-12-20 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065956', 'tblTempUsageDetail_20' ) start [2024-12-20 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065956', 'tblTempUsageDetail_20' ) end [2024-12-20 22:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:44:21] Production.INFO: ==26262== Releasing lock... [2024-12-20 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:44:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:45:05 [end_date_ymd] => 2024-12-20 22:45:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:45:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:45:17] Production.INFO: count ==1169 [2024-12-20 22:45:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:45:05 - End Time 2024-12-20 22:45:05 [2024-12-20 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065961', 'tblTempUsageDetail_20' ) start [2024-12-20 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065961', 'tblTempUsageDetail_20' ) end [2024-12-20 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065961', 'tblTempVendorCDR_20' ) start [2024-12-20 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065961', 'tblTempVendorCDR_20' ) end [2024-12-20 22:45:18] Production.INFO: ProcessCDR(1,14065961,1,1,2) [2024-12-20 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065961', 'tblTempUsageDetail_20' ) start [2024-12-20 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065961', 'tblTempUsageDetail_20' ) end [2024-12-20 22:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:45:21] Production.INFO: ==26334== Releasing lock... [2024-12-20 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:45:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:46:05 [end_date_ymd] => 2024-12-20 22:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:46:18] Production.INFO: count ==1169 [2024-12-20 22:46:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:46:05 - End Time 2024-12-20 22:46:05 [2024-12-20 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065966', 'tblTempUsageDetail_20' ) start [2024-12-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065966', 'tblTempUsageDetail_20' ) end [2024-12-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065966', 'tblTempVendorCDR_20' ) start [2024-12-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065966', 'tblTempVendorCDR_20' ) end [2024-12-20 22:46:18] Production.INFO: ProcessCDR(1,14065966,1,1,2) [2024-12-20 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065966', 'tblTempUsageDetail_20' ) start [2024-12-20 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065966', 'tblTempUsageDetail_20' ) end [2024-12-20 22:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:46:21] Production.INFO: ==26405== Releasing lock... [2024-12-20 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:46:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:47:05 [end_date_ymd] => 2024-12-20 22:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:47:18] Production.INFO: count ==1171 [2024-12-20 22:47:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:47:05 - End Time 2024-12-20 22:47:05 [2024-12-20 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065971', 'tblTempUsageDetail_20' ) start [2024-12-20 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065971', 'tblTempUsageDetail_20' ) end [2024-12-20 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065971', 'tblTempVendorCDR_20' ) start [2024-12-20 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065971', 'tblTempVendorCDR_20' ) end [2024-12-20 22:47:18] Production.INFO: ProcessCDR(1,14065971,1,1,2) [2024-12-20 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065971', 'tblTempUsageDetail_20' ) start [2024-12-20 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065971', 'tblTempUsageDetail_20' ) end [2024-12-20 22:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:47:21] Production.INFO: ==26480== Releasing lock... [2024-12-20 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:47:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:48:05 [end_date_ymd] => 2024-12-20 22:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:48:18] Production.INFO: count ==1173 [2024-12-20 22:48:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:48:05 - End Time 2024-12-20 22:48:05 [2024-12-20 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065976', 'tblTempUsageDetail_20' ) start [2024-12-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065976', 'tblTempUsageDetail_20' ) end [2024-12-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065976', 'tblTempVendorCDR_20' ) start [2024-12-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065976', 'tblTempVendorCDR_20' ) end [2024-12-20 22:48:18] Production.INFO: ProcessCDR(1,14065976,1,1,2) [2024-12-20 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065976', 'tblTempUsageDetail_20' ) start [2024-12-20 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065976', 'tblTempUsageDetail_20' ) end [2024-12-20 22:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:48:21] Production.INFO: ==26551== Releasing lock... [2024-12-20 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:48:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-20 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:49:05 [end_date_ymd] => 2024-12-20 22:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:49:18] Production.INFO: count ==1171 [2024-12-20 22:49:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:49:05 - End Time 2024-12-20 22:49:05 [2024-12-20 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065981', 'tblTempUsageDetail_20' ) start [2024-12-20 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065981', 'tblTempUsageDetail_20' ) end [2024-12-20 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065981', 'tblTempVendorCDR_20' ) start [2024-12-20 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065981', 'tblTempVendorCDR_20' ) end [2024-12-20 22:49:18] Production.INFO: ProcessCDR(1,14065981,1,1,2) [2024-12-20 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065981', 'tblTempUsageDetail_20' ) start [2024-12-20 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065981', 'tblTempUsageDetail_20' ) end [2024-12-20 22:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:49:21] Production.INFO: ==26622== Releasing lock... [2024-12-20 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:49:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:50:05 [end_date_ymd] => 2024-12-20 22:50:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:50:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:50:17] Production.INFO: count ==1168 [2024-12-20 22:50:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:50:05 - End Time 2024-12-20 22:50:05 [2024-12-20 22:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065987', 'tblTempUsageDetail_20' ) start [2024-12-20 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065987', 'tblTempUsageDetail_20' ) end [2024-12-20 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065987', 'tblTempVendorCDR_20' ) start [2024-12-20 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065987', 'tblTempVendorCDR_20' ) end [2024-12-20 22:50:17] Production.INFO: ProcessCDR(1,14065987,1,1,2) [2024-12-20 22:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065987', 'tblTempUsageDetail_20' ) start [2024-12-20 22:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065987', 'tblTempUsageDetail_20' ) end [2024-12-20 22:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:50:20] Production.INFO: ==26694== Releasing lock... [2024-12-20 22:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:50:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-20 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:51:04 [end_date_ymd] => 2024-12-20 22:51:04 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:51:04' and `end` < '2024-12-20 22: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 ,'') [2024-12-20 22:51:16] Production.INFO: count ==1132 [2024-12-20 22:51:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:51:04 - End Time 2024-12-20 22:51:04 [2024-12-20 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065992', 'tblTempUsageDetail_20' ) start [2024-12-20 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065992', 'tblTempUsageDetail_20' ) end [2024-12-20 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065992', 'tblTempVendorCDR_20' ) start [2024-12-20 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065992', 'tblTempVendorCDR_20' ) end [2024-12-20 22:51:17] Production.INFO: ProcessCDR(1,14065992,1,1,2) [2024-12-20 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065992', 'tblTempUsageDetail_20' ) start [2024-12-20 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065992', 'tblTempUsageDetail_20' ) end [2024-12-20 22:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:51:20] Production.INFO: ==26767== Releasing lock... [2024-12-20 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:51:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:52:04 [end_date_ymd] => 2024-12-20 22:52:04 [RateCDR] => 1 ) [2024-12-20 22:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:52:04' and `end` < '2024-12-20 22:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:52:17] Production.INFO: count ==1132 [2024-12-20 22:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:52:04 - End Time 2024-12-20 22:52:04 [2024-12-20 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065997', 'tblTempUsageDetail_20' ) start [2024-12-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14065997', 'tblTempUsageDetail_20' ) end [2024-12-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065997', 'tblTempVendorCDR_20' ) start [2024-12-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14065997', 'tblTempVendorCDR_20' ) end [2024-12-20 22:52:17] Production.INFO: ProcessCDR(1,14065997,1,1,2) [2024-12-20 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14065997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14065997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14065997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14065997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065997', 'tblTempUsageDetail_20' ) start [2024-12-20 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14065997', 'tblTempUsageDetail_20' ) end [2024-12-20 22:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:52:21] Production.INFO: ==26837== Releasing lock... [2024-12-20 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:52:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:53:04 [end_date_ymd] => 2024-12-20 22:53:04 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:53:04' and `end` < '2024-12-20 22: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 ,'') [2024-12-20 22:53:18] Production.INFO: count ==1132 [2024-12-20 22:53:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:53:04 - End Time 2024-12-20 22:53:04 [2024-12-20 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066002', 'tblTempUsageDetail_20' ) start [2024-12-20 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066002', 'tblTempUsageDetail_20' ) end [2024-12-20 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066002', 'tblTempVendorCDR_20' ) start [2024-12-20 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066002', 'tblTempVendorCDR_20' ) end [2024-12-20 22:53:18] Production.INFO: ProcessCDR(1,14066002,1,1,2) [2024-12-20 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066002', 'tblTempUsageDetail_20' ) start [2024-12-20 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066002', 'tblTempUsageDetail_20' ) end [2024-12-20 22:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:53:22] Production.INFO: ==26910== Releasing lock... [2024-12-20 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:53:22] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:54:05 [end_date_ymd] => 2024-12-20 22:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:54:18] Production.INFO: count ==1130 [2024-12-20 22:54:18] Production.ERROR: pbx CDR StartTime 2024-12-20 19:54:05 - End Time 2024-12-20 22:54:05 [2024-12-20 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066007', 'tblTempUsageDetail_20' ) start [2024-12-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066007', 'tblTempUsageDetail_20' ) end [2024-12-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066007', 'tblTempVendorCDR_20' ) start [2024-12-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066007', 'tblTempVendorCDR_20' ) end [2024-12-20 22:54:18] Production.INFO: ProcessCDR(1,14066007,1,1,2) [2024-12-20 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066007', 'tblTempUsageDetail_20' ) start [2024-12-20 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066007', 'tblTempUsageDetail_20' ) end [2024-12-20 22:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:54:23] Production.INFO: ==26981== Releasing lock... [2024-12-20 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:54:23] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:55:05 [end_date_ymd] => 2024-12-20 22:55:05 [RateCDR] => 1 ) [2024-12-20 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:55:05' and `end` < '2024-12-20 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:55:17] Production.INFO: count ==1130 [2024-12-20 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:55:05 - End Time 2024-12-20 22:55:05 [2024-12-20 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066012', 'tblTempUsageDetail_20' ) start [2024-12-20 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066012', 'tblTempUsageDetail_20' ) end [2024-12-20 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066012', 'tblTempVendorCDR_20' ) start [2024-12-20 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066012', 'tblTempVendorCDR_20' ) end [2024-12-20 22:55:17] Production.INFO: ProcessCDR(1,14066012,1,1,2) [2024-12-20 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066012', 'tblTempUsageDetail_20' ) start [2024-12-20 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066012', 'tblTempUsageDetail_20' ) end [2024-12-20 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:55:20] Production.INFO: ==27090== Releasing lock... [2024-12-20 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:55:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:56:05 [end_date_ymd] => 2024-12-20 22:56:05 [RateCDR] => 1 ) [2024-12-20 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:56:05' and `end` < '2024-12-20 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:56:17] Production.INFO: count ==1126 [2024-12-20 22:56:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:56:05 - End Time 2024-12-20 22:56:05 [2024-12-20 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066017', 'tblTempUsageDetail_20' ) start [2024-12-20 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066017', 'tblTempUsageDetail_20' ) end [2024-12-20 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066017', 'tblTempVendorCDR_20' ) start [2024-12-20 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066017', 'tblTempVendorCDR_20' ) end [2024-12-20 22:56:17] Production.INFO: ProcessCDR(1,14066017,1,1,2) [2024-12-20 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066017', 'tblTempUsageDetail_20' ) start [2024-12-20 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066017', 'tblTempUsageDetail_20' ) end [2024-12-20 22:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:56:20] Production.INFO: ==27163== Releasing lock... [2024-12-20 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:56:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:57:04 [end_date_ymd] => 2024-12-20 22:57:04 [RateCDR] => 1 ) [2024-12-20 22:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 19:57:04' and `end` < '2024-12-20 22:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 22:57:16] Production.INFO: count ==1123 [2024-12-20 22:57:16] Production.ERROR: pbx CDR StartTime 2024-12-20 19:57:04 - End Time 2024-12-20 22:57:04 [2024-12-20 22:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066022', 'tblTempUsageDetail_20' ) start [2024-12-20 22:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066022', 'tblTempUsageDetail_20' ) end [2024-12-20 22:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066022', 'tblTempVendorCDR_20' ) start [2024-12-20 22:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066022', 'tblTempVendorCDR_20' ) end [2024-12-20 22:57:16] Production.INFO: ProcessCDR(1,14066022,1,1,2) [2024-12-20 22:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066022', 'tblTempUsageDetail_20' ) start [2024-12-20 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066022', 'tblTempUsageDetail_20' ) end [2024-12-20 22:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:57:20] Production.INFO: ==27233== Releasing lock... [2024-12-20 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:57:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:58:05 [end_date_ymd] => 2024-12-20 22:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 19:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 22:58:17] Production.INFO: count ==1125 [2024-12-20 22:58:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:58:05 - End Time 2024-12-20 22:58:05 [2024-12-20 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066027', 'tblTempUsageDetail_20' ) start [2024-12-20 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066027', 'tblTempUsageDetail_20' ) end [2024-12-20 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066027', 'tblTempVendorCDR_20' ) start [2024-12-20 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066027', 'tblTempVendorCDR_20' ) end [2024-12-20 22:58:17] Production.INFO: ProcessCDR(1,14066027,1,1,2) [2024-12-20 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066027', 'tblTempUsageDetail_20' ) start [2024-12-20 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066027', 'tblTempUsageDetail_20' ) end [2024-12-20 22:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:58:21] Production.INFO: ==27306== Releasing lock... [2024-12-20 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:58:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 19:59:04 [end_date_ymd] => 2024-12-20 22:59:04 [RateCDR] => 1 ) [2024-12-20 22: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` >= '2024-12-20 19:59:04' and `end` < '2024-12-20 22: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 ,'') [2024-12-20 22:59:16] Production.INFO: count ==1126 [2024-12-20 22:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 19:59:04 - End Time 2024-12-20 22:59:04 [2024-12-20 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066032', 'tblTempUsageDetail_20' ) start [2024-12-20 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066032', 'tblTempUsageDetail_20' ) end [2024-12-20 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066032', 'tblTempVendorCDR_20' ) start [2024-12-20 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066032', 'tblTempVendorCDR_20' ) end [2024-12-20 22:59:17] Production.INFO: ProcessCDR(1,14066032,1,1,2) [2024-12-20 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066032', 'tblTempUsageDetail_20' ) start [2024-12-20 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066032', 'tblTempUsageDetail_20' ) end [2024-12-20 22:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 22:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 22:59:21] Production.INFO: ==27385== Releasing lock... [2024-12-20 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 22:59:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:00:06 [end_date_ymd] => 2024-12-20 23:00:06 [RateCDR] => 1 ) [2024-12-20 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:00:06' and `end` < '2024-12-20 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:00:18] Production.INFO: count ==1132 [2024-12-20 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:00:06 - End Time 2024-12-20 23:00:06 [2024-12-20 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066038', 'tblTempUsageDetail_20' ) start [2024-12-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066038', 'tblTempUsageDetail_20' ) end [2024-12-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066038', 'tblTempVendorCDR_20' ) start [2024-12-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066038', 'tblTempVendorCDR_20' ) end [2024-12-20 23:00:18] Production.INFO: ProcessCDR(1,14066038,1,1,2) [2024-12-20 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066038', 'tblTempUsageDetail_20' ) start [2024-12-20 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066038', 'tblTempUsageDetail_20' ) end [2024-12-20 23:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:00:21] Production.INFO: ==27462== Releasing lock... [2024-12-20 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:00:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:01:04 [end_date_ymd] => 2024-12-20 23:01:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:01:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:01:17] Production.INFO: count ==1120 [2024-12-20 23:01:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:01:04 - End Time 2024-12-20 23:01:04 [2024-12-20 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066043', 'tblTempUsageDetail_20' ) start [2024-12-20 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066043', 'tblTempUsageDetail_20' ) end [2024-12-20 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066043', 'tblTempVendorCDR_20' ) start [2024-12-20 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066043', 'tblTempVendorCDR_20' ) end [2024-12-20 23:01:17] Production.INFO: ProcessCDR(1,14066043,1,1,2) [2024-12-20 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066043', 'tblTempUsageDetail_20' ) start [2024-12-20 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066043', 'tblTempUsageDetail_20' ) end [2024-12-20 23:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:01:20] Production.INFO: ==27587== Releasing lock... [2024-12-20 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:01:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:02:05 [end_date_ymd] => 2024-12-20 23:02:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:02:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:02:17] Production.INFO: count ==1120 [2024-12-20 23:02:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:02:05 - End Time 2024-12-20 23:02:05 [2024-12-20 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066048', 'tblTempUsageDetail_20' ) start [2024-12-20 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066048', 'tblTempUsageDetail_20' ) end [2024-12-20 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066048', 'tblTempVendorCDR_20' ) start [2024-12-20 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066048', 'tblTempVendorCDR_20' ) end [2024-12-20 23:02:17] Production.INFO: ProcessCDR(1,14066048,1,1,2) [2024-12-20 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066048', 'tblTempUsageDetail_20' ) start [2024-12-20 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066048', 'tblTempUsageDetail_20' ) end [2024-12-20 23:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:02:20] Production.INFO: ==27698== Releasing lock... [2024-12-20 23:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:02:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:03:05 [end_date_ymd] => 2024-12-20 23:03:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:03:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:03:17] Production.INFO: count ==1118 [2024-12-20 23:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:03:05 - End Time 2024-12-20 23:03:05 [2024-12-20 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066053', 'tblTempUsageDetail_20' ) start [2024-12-20 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066053', 'tblTempUsageDetail_20' ) end [2024-12-20 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066053', 'tblTempVendorCDR_20' ) start [2024-12-20 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066053', 'tblTempVendorCDR_20' ) end [2024-12-20 23:03:17] Production.INFO: ProcessCDR(1,14066053,1,1,2) [2024-12-20 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066053', 'tblTempUsageDetail_20' ) start [2024-12-20 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066053', 'tblTempUsageDetail_20' ) end [2024-12-20 23:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:03:21] Production.INFO: ==27771== Releasing lock... [2024-12-20 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:03:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:04:05 [end_date_ymd] => 2024-12-20 23:04:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:04:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:04:18] Production.INFO: count ==1117 [2024-12-20 23:04:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:04:05 - End Time 2024-12-20 23:04:05 [2024-12-20 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066058', 'tblTempUsageDetail_20' ) start [2024-12-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066058', 'tblTempUsageDetail_20' ) end [2024-12-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066058', 'tblTempVendorCDR_20' ) start [2024-12-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066058', 'tblTempVendorCDR_20' ) end [2024-12-20 23:04:18] Production.INFO: ProcessCDR(1,14066058,1,1,2) [2024-12-20 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066058', 'tblTempUsageDetail_20' ) start [2024-12-20 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066058', 'tblTempUsageDetail_20' ) end [2024-12-20 23:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:04:21] Production.INFO: ==27846== Releasing lock... [2024-12-20 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:04:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:05:04 [end_date_ymd] => 2024-12-20 23:05:04 [RateCDR] => 1 ) [2024-12-20 23:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:05:04' and `end` < '2024-12-20 23:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:05:16] Production.INFO: count ==1117 [2024-12-20 23:05:16] Production.ERROR: pbx CDR StartTime 2024-12-20 20:05:04 - End Time 2024-12-20 23:05:04 [2024-12-20 23:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066063', 'tblTempUsageDetail_20' ) start [2024-12-20 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066063', 'tblTempUsageDetail_20' ) end [2024-12-20 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066063', 'tblTempVendorCDR_20' ) start [2024-12-20 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066063', 'tblTempVendorCDR_20' ) end [2024-12-20 23:05:16] Production.INFO: ProcessCDR(1,14066063,1,1,2) [2024-12-20 23:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066063', 'tblTempUsageDetail_20' ) start [2024-12-20 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066063', 'tblTempUsageDetail_20' ) end [2024-12-20 23:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:05:21] Production.INFO: ==27997== Releasing lock... [2024-12-20 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:05:21] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:06:05 [end_date_ymd] => 2024-12-20 23:06:05 [RateCDR] => 1 ) [2024-12-20 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:06:05' and `end` < '2024-12-20 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:06:17] Production.INFO: count ==1117 [2024-12-20 23:06:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:06:05 - End Time 2024-12-20 23:06:05 [2024-12-20 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066068', 'tblTempUsageDetail_20' ) start [2024-12-20 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066068', 'tblTempUsageDetail_20' ) end [2024-12-20 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066068', 'tblTempVendorCDR_20' ) start [2024-12-20 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066068', 'tblTempVendorCDR_20' ) end [2024-12-20 23:06:17] Production.INFO: ProcessCDR(1,14066068,1,1,2) [2024-12-20 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066068', 'tblTempUsageDetail_20' ) start [2024-12-20 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066068', 'tblTempUsageDetail_20' ) end [2024-12-20 23:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:06:20] Production.INFO: ==28068== Releasing lock... [2024-12-20 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:06:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:07:05 [end_date_ymd] => 2024-12-20 23:07:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:07:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:07:17] Production.INFO: count ==1118 [2024-12-20 23:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:07:05 - End Time 2024-12-20 23:07:05 [2024-12-20 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066073', 'tblTempUsageDetail_20' ) start [2024-12-20 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066073', 'tblTempUsageDetail_20' ) end [2024-12-20 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066073', 'tblTempVendorCDR_20' ) start [2024-12-20 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066073', 'tblTempVendorCDR_20' ) end [2024-12-20 23:07:17] Production.INFO: ProcessCDR(1,14066073,1,1,2) [2024-12-20 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066073', 'tblTempUsageDetail_20' ) start [2024-12-20 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066073', 'tblTempUsageDetail_20' ) end [2024-12-20 23:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:07:22] Production.INFO: ==28142== Releasing lock... [2024-12-20 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:07:22] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:08:05 [end_date_ymd] => 2024-12-20 23:08:05 [RateCDR] => 1 ) [2024-12-20 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:08:05' and `end` < '2024-12-20 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:08:17] Production.INFO: count ==1117 [2024-12-20 23:08:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:08:05 - End Time 2024-12-20 23:08:05 [2024-12-20 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066078', 'tblTempUsageDetail_20' ) start [2024-12-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066078', 'tblTempUsageDetail_20' ) end [2024-12-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066078', 'tblTempVendorCDR_20' ) start [2024-12-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066078', 'tblTempVendorCDR_20' ) end [2024-12-20 23:08:17] Production.INFO: ProcessCDR(1,14066078,1,1,2) [2024-12-20 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066078', 'tblTempUsageDetail_20' ) start [2024-12-20 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066078', 'tblTempUsageDetail_20' ) end [2024-12-20 23:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:08:20] Production.INFO: ==28293== Releasing lock... [2024-12-20 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:08:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:09:05 [end_date_ymd] => 2024-12-20 23:09:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:09:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:09:17] Production.INFO: count ==1118 [2024-12-20 23:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:09:05 - End Time 2024-12-20 23:09:05 [2024-12-20 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066083', 'tblTempUsageDetail_20' ) start [2024-12-20 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066083', 'tblTempUsageDetail_20' ) end [2024-12-20 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066083', 'tblTempVendorCDR_20' ) start [2024-12-20 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066083', 'tblTempVendorCDR_20' ) end [2024-12-20 23:09:17] Production.INFO: ProcessCDR(1,14066083,1,1,2) [2024-12-20 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066083', 'tblTempUsageDetail_20' ) start [2024-12-20 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066083', 'tblTempUsageDetail_20' ) end [2024-12-20 23:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:09:20] Production.INFO: ==28366== Releasing lock... [2024-12-20 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:09:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:10:05 [end_date_ymd] => 2024-12-20 23:10:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:10:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:10:17] Production.INFO: count ==1117 [2024-12-20 23:10:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:10:05 - End Time 2024-12-20 23:10:05 [2024-12-20 23:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066088', 'tblTempUsageDetail_20' ) start [2024-12-20 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066088', 'tblTempUsageDetail_20' ) end [2024-12-20 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066088', 'tblTempVendorCDR_20' ) start [2024-12-20 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066088', 'tblTempVendorCDR_20' ) end [2024-12-20 23:10:17] Production.INFO: ProcessCDR(1,14066088,1,1,2) [2024-12-20 23:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066088', 'tblTempUsageDetail_20' ) start [2024-12-20 23:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066088', 'tblTempUsageDetail_20' ) end [2024-12-20 23:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:10:20] Production.INFO: ==28482== Releasing lock... [2024-12-20 23:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:10:20] Production.INFO: 36 MB #Memory Used# [2024-12-20 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:11:04 [end_date_ymd] => 2024-12-20 23:11:04 [RateCDR] => 1 ) [2024-12-20 23:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:11:04' and `end` < '2024-12-20 23:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:11:17] Production.INFO: count ==1087 [2024-12-20 23:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:11:04 - End Time 2024-12-20 23:11:04 [2024-12-20 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066094', 'tblTempUsageDetail_20' ) start [2024-12-20 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066094', 'tblTempUsageDetail_20' ) end [2024-12-20 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066094', 'tblTempVendorCDR_20' ) start [2024-12-20 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066094', 'tblTempVendorCDR_20' ) end [2024-12-20 23:11:17] Production.INFO: ProcessCDR(1,14066094,1,1,2) [2024-12-20 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066094', 'tblTempUsageDetail_20' ) start [2024-12-20 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066094', 'tblTempUsageDetail_20' ) end [2024-12-20 23:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:11:20] Production.INFO: ==28554== Releasing lock... [2024-12-20 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:11:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:12:05 [end_date_ymd] => 2024-12-20 23:12:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:12:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:12:17] Production.INFO: count ==1087 [2024-12-20 23:12:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:12:05 - End Time 2024-12-20 23:12:05 [2024-12-20 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066099', 'tblTempUsageDetail_20' ) start [2024-12-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066099', 'tblTempUsageDetail_20' ) end [2024-12-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066099', 'tblTempVendorCDR_20' ) start [2024-12-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066099', 'tblTempVendorCDR_20' ) end [2024-12-20 23:12:18] Production.INFO: ProcessCDR(1,14066099,1,1,2) [2024-12-20 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066099', 'tblTempUsageDetail_20' ) start [2024-12-20 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066099', 'tblTempUsageDetail_20' ) end [2024-12-20 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:12:21] Production.INFO: ==28706== Releasing lock... [2024-12-20 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:12:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:13:05 [end_date_ymd] => 2024-12-20 23:13:05 [RateCDR] => 1 ) [2024-12-20 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:13:05' and `end` < '2024-12-20 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:13:17] Production.INFO: count ==1086 [2024-12-20 23:13:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:13:05 - End Time 2024-12-20 23:13:05 [2024-12-20 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066104', 'tblTempUsageDetail_20' ) start [2024-12-20 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066104', 'tblTempUsageDetail_20' ) end [2024-12-20 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066104', 'tblTempVendorCDR_20' ) start [2024-12-20 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066104', 'tblTempVendorCDR_20' ) end [2024-12-20 23:13:17] Production.INFO: ProcessCDR(1,14066104,1,1,2) [2024-12-20 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066104', 'tblTempUsageDetail_20' ) start [2024-12-20 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066104', 'tblTempUsageDetail_20' ) end [2024-12-20 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:13:21] Production.INFO: ==28777== Releasing lock... [2024-12-20 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:13:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:14:05 [end_date_ymd] => 2024-12-20 23:14:05 [RateCDR] => 1 ) [2024-12-20 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:14:05' and `end` < '2024-12-20 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:14:17] Production.INFO: count ==1085 [2024-12-20 23:14:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:14:05 - End Time 2024-12-20 23:14:05 [2024-12-20 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066109', 'tblTempUsageDetail_20' ) start [2024-12-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066109', 'tblTempUsageDetail_20' ) end [2024-12-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066109', 'tblTempVendorCDR_20' ) start [2024-12-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066109', 'tblTempVendorCDR_20' ) end [2024-12-20 23:14:17] Production.INFO: ProcessCDR(1,14066109,1,1,2) [2024-12-20 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066109', 'tblTempUsageDetail_20' ) start [2024-12-20 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066109', 'tblTempUsageDetail_20' ) end [2024-12-20 23:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:14:21] Production.INFO: ==28855== Releasing lock... [2024-12-20 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:14:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:15:05 [end_date_ymd] => 2024-12-20 23:15:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:15:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:15:17] Production.INFO: count ==1085 [2024-12-20 23:15:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:15:05 - End Time 2024-12-20 23:15:05 [2024-12-20 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066114', 'tblTempUsageDetail_20' ) start [2024-12-20 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066114', 'tblTempUsageDetail_20' ) end [2024-12-20 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066114', 'tblTempVendorCDR_20' ) start [2024-12-20 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066114', 'tblTempVendorCDR_20' ) end [2024-12-20 23:15:17] Production.INFO: ProcessCDR(1,14066114,1,1,2) [2024-12-20 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066114', 'tblTempUsageDetail_20' ) start [2024-12-20 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066114', 'tblTempUsageDetail_20' ) end [2024-12-20 23:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:15:20] Production.INFO: ==29014== Releasing lock... [2024-12-20 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:15:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:16:05 [end_date_ymd] => 2024-12-20 23:16:05 [RateCDR] => 1 ) [2024-12-20 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:16:05' and `end` < '2024-12-20 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:16:18] Production.INFO: count ==1085 [2024-12-20 23:16:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:16:05 - End Time 2024-12-20 23:16:05 [2024-12-20 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066119', 'tblTempUsageDetail_20' ) start [2024-12-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066119', 'tblTempUsageDetail_20' ) end [2024-12-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066119', 'tblTempVendorCDR_20' ) start [2024-12-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066119', 'tblTempVendorCDR_20' ) end [2024-12-20 23:16:18] Production.INFO: ProcessCDR(1,14066119,1,1,2) [2024-12-20 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066119', 'tblTempUsageDetail_20' ) start [2024-12-20 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066119', 'tblTempUsageDetail_20' ) end [2024-12-20 23:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:16:21] Production.INFO: ==29092== Releasing lock... [2024-12-20 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:16:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:17:04 [end_date_ymd] => 2024-12-20 23:17:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:17:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:17:17] Production.INFO: count ==1089 [2024-12-20 23:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:17:04 - End Time 2024-12-20 23:17:04 [2024-12-20 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066124', 'tblTempUsageDetail_20' ) start [2024-12-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066124', 'tblTempUsageDetail_20' ) end [2024-12-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066124', 'tblTempVendorCDR_20' ) start [2024-12-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066124', 'tblTempVendorCDR_20' ) end [2024-12-20 23:17:17] Production.INFO: ProcessCDR(1,14066124,1,1,2) [2024-12-20 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066124', 'tblTempUsageDetail_20' ) start [2024-12-20 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066124', 'tblTempUsageDetail_20' ) end [2024-12-20 23:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:17:20] Production.INFO: ==29166== Releasing lock... [2024-12-20 23:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:17:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:18:05 [end_date_ymd] => 2024-12-20 23:18:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:18:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:18:18] Production.INFO: count ==1088 [2024-12-20 23:18:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:18:05 - End Time 2024-12-20 23:18:05 [2024-12-20 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066129', 'tblTempUsageDetail_20' ) start [2024-12-20 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066129', 'tblTempUsageDetail_20' ) end [2024-12-20 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066129', 'tblTempVendorCDR_20' ) start [2024-12-20 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066129', 'tblTempVendorCDR_20' ) end [2024-12-20 23:18:18] Production.INFO: ProcessCDR(1,14066129,1,1,2) [2024-12-20 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066129', 'tblTempUsageDetail_20' ) start [2024-12-20 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066129', 'tblTempUsageDetail_20' ) end [2024-12-20 23:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:18:21] Production.INFO: ==29239== Releasing lock... [2024-12-20 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:18:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:19:04 [end_date_ymd] => 2024-12-20 23:19:04 [RateCDR] => 1 ) [2024-12-20 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:19:04' and `end` < '2024-12-20 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:19:16] Production.INFO: count ==1087 [2024-12-20 23:19:16] Production.ERROR: pbx CDR StartTime 2024-12-20 20:19:04 - End Time 2024-12-20 23:19:04 [2024-12-20 23:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066134', 'tblTempUsageDetail_20' ) start [2024-12-20 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066134', 'tblTempUsageDetail_20' ) end [2024-12-20 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066134', 'tblTempVendorCDR_20' ) start [2024-12-20 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066134', 'tblTempVendorCDR_20' ) end [2024-12-20 23:19:16] Production.INFO: ProcessCDR(1,14066134,1,1,2) [2024-12-20 23:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066134', 'tblTempUsageDetail_20' ) start [2024-12-20 23:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066134', 'tblTempUsageDetail_20' ) end [2024-12-20 23:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:19:19] Production.INFO: ==29310== Releasing lock... [2024-12-20 23:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:19:19] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:20:06 [end_date_ymd] => 2024-12-20 23:20:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:20:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:20:18] Production.INFO: count ==1090 [2024-12-20 23:20:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:20:06 - End Time 2024-12-20 23:20:06 [2024-12-20 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066140', 'tblTempUsageDetail_20' ) start [2024-12-20 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066140', 'tblTempUsageDetail_20' ) end [2024-12-20 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066140', 'tblTempVendorCDR_20' ) start [2024-12-20 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066140', 'tblTempVendorCDR_20' ) end [2024-12-20 23:20:18] Production.INFO: ProcessCDR(1,14066140,1,1,2) [2024-12-20 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066140', 'tblTempUsageDetail_20' ) start [2024-12-20 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066140', 'tblTempUsageDetail_20' ) end [2024-12-20 23:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:20:21] Production.INFO: ==29389== Releasing lock... [2024-12-20 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:20:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:21:04 [end_date_ymd] => 2024-12-20 23:21:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:21:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:21:17] Production.INFO: count ==1073 [2024-12-20 23:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:21:04 - End Time 2024-12-20 23:21:04 [2024-12-20 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066145', 'tblTempUsageDetail_20' ) start [2024-12-20 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066145', 'tblTempUsageDetail_20' ) end [2024-12-20 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066145', 'tblTempVendorCDR_20' ) start [2024-12-20 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066145', 'tblTempVendorCDR_20' ) end [2024-12-20 23:21:17] Production.INFO: ProcessCDR(1,14066145,1,1,2) [2024-12-20 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066145', 'tblTempUsageDetail_20' ) start [2024-12-20 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066145', 'tblTempUsageDetail_20' ) end [2024-12-20 23:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:21:20] Production.INFO: ==29466== Releasing lock... [2024-12-20 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:21:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-20 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:22:05 [end_date_ymd] => 2024-12-20 23:22:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:22:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:22:17] Production.INFO: count ==1070 [2024-12-20 23:22:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:22:05 - End Time 2024-12-20 23:22:05 [2024-12-20 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066150', 'tblTempUsageDetail_20' ) start [2024-12-20 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066150', 'tblTempUsageDetail_20' ) end [2024-12-20 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066150', 'tblTempVendorCDR_20' ) start [2024-12-20 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066150', 'tblTempVendorCDR_20' ) end [2024-12-20 23:22:17] Production.INFO: ProcessCDR(1,14066150,1,1,2) [2024-12-20 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066150', 'tblTempUsageDetail_20' ) start [2024-12-20 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066150', 'tblTempUsageDetail_20' ) end [2024-12-20 23:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:22:20] Production.INFO: ==29538== Releasing lock... [2024-12-20 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:22:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:23:05 [end_date_ymd] => 2024-12-20 23:23:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:23:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:23:18] Production.INFO: count ==1065 [2024-12-20 23:23:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:23:05 - End Time 2024-12-20 23:23:05 [2024-12-20 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066155', 'tblTempUsageDetail_20' ) start [2024-12-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066155', 'tblTempUsageDetail_20' ) end [2024-12-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066155', 'tblTempVendorCDR_20' ) start [2024-12-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066155', 'tblTempVendorCDR_20' ) end [2024-12-20 23:23:18] Production.INFO: ProcessCDR(1,14066155,1,1,2) [2024-12-20 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066155', 'tblTempUsageDetail_20' ) start [2024-12-20 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066155', 'tblTempUsageDetail_20' ) end [2024-12-20 23:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:23:21] Production.INFO: ==29609== Releasing lock... [2024-12-20 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:23:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:24:04 [end_date_ymd] => 2024-12-20 23:24:04 [RateCDR] => 1 ) [2024-12-20 23:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:24:04' and `end` < '2024-12-20 23:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:24:16] Production.INFO: count ==1064 [2024-12-20 23:24:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:24:04 - End Time 2024-12-20 23:24:04 [2024-12-20 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066156', 'tblTempUsageDetail_20' ) start [2024-12-20 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066156', 'tblTempUsageDetail_20' ) end [2024-12-20 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066156', 'tblTempVendorCDR_20' ) start [2024-12-20 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066156', 'tblTempVendorCDR_20' ) end [2024-12-20 23:24:17] Production.INFO: ProcessCDR(1,14066156,1,1,2) [2024-12-20 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066156', 'tblTempUsageDetail_20' ) start [2024-12-20 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066156', 'tblTempUsageDetail_20' ) end [2024-12-20 23:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:24:20] Production.INFO: ==29684== Releasing lock... [2024-12-20 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:24:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:25:05 [end_date_ymd] => 2024-12-20 23:25:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:25:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:25:17] Production.INFO: count ==1063 [2024-12-20 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:25:05 - End Time 2024-12-20 23:25:05 [2024-12-20 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066165', 'tblTempUsageDetail_20' ) start [2024-12-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066165', 'tblTempUsageDetail_20' ) end [2024-12-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066165', 'tblTempVendorCDR_20' ) start [2024-12-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066165', 'tblTempVendorCDR_20' ) end [2024-12-20 23:25:17] Production.INFO: ProcessCDR(1,14066165,1,1,2) [2024-12-20 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066165', 'tblTempUsageDetail_20' ) start [2024-12-20 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066165', 'tblTempUsageDetail_20' ) end [2024-12-20 23:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:25:21] Production.INFO: ==29761== Releasing lock... [2024-12-20 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:25:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:26:04 [end_date_ymd] => 2024-12-20 23:26:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:26:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:26:16] Production.INFO: count ==1062 [2024-12-20 23:26:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:26:04 - End Time 2024-12-20 23:26:04 [2024-12-20 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066170', 'tblTempUsageDetail_20' ) start [2024-12-20 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066170', 'tblTempUsageDetail_20' ) end [2024-12-20 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066170', 'tblTempVendorCDR_20' ) start [2024-12-20 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066170', 'tblTempVendorCDR_20' ) end [2024-12-20 23:26:17] Production.INFO: ProcessCDR(1,14066170,1,1,2) [2024-12-20 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066170', 'tblTempUsageDetail_20' ) start [2024-12-20 23:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066170', 'tblTempUsageDetail_20' ) end [2024-12-20 23:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:26:19] Production.INFO: ==29871== Releasing lock... [2024-12-20 23:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:26:19] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:27:04 [end_date_ymd] => 2024-12-20 23:27:04 [RateCDR] => 1 ) [2024-12-20 23:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:27:04' and `end` < '2024-12-20 23:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:27:17] Production.INFO: count ==1058 [2024-12-20 23:27:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:27:04 - End Time 2024-12-20 23:27:04 [2024-12-20 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066175', 'tblTempUsageDetail_20' ) start [2024-12-20 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066175', 'tblTempUsageDetail_20' ) end [2024-12-20 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066175', 'tblTempVendorCDR_20' ) start [2024-12-20 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066175', 'tblTempVendorCDR_20' ) end [2024-12-20 23:27:17] Production.INFO: ProcessCDR(1,14066175,1,1,2) [2024-12-20 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066175', 'tblTempUsageDetail_20' ) start [2024-12-20 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066175', 'tblTempUsageDetail_20' ) end [2024-12-20 23:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:27:20] Production.INFO: ==29948== Releasing lock... [2024-12-20 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:27:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:28:05 [end_date_ymd] => 2024-12-20 23:28:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:28:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:28:19] Production.INFO: count ==1060 [2024-12-20 23:28:19] Production.ERROR: pbx CDR StartTime 2024-12-20 20:28:05 - End Time 2024-12-20 23:28:05 [2024-12-20 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066180', 'tblTempUsageDetail_20' ) start [2024-12-20 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066180', 'tblTempUsageDetail_20' ) end [2024-12-20 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066180', 'tblTempVendorCDR_20' ) start [2024-12-20 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066180', 'tblTempVendorCDR_20' ) end [2024-12-20 23:28:19] Production.INFO: ProcessCDR(1,14066180,1,1,2) [2024-12-20 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066180', 'tblTempUsageDetail_20' ) start [2024-12-20 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066180', 'tblTempUsageDetail_20' ) end [2024-12-20 23:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:28:22] Production.INFO: ==30022== Releasing lock... [2024-12-20 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:28:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:29:04 [end_date_ymd] => 2024-12-20 23:29:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:29:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:29:16] Production.INFO: count ==1059 [2024-12-20 23:29:16] Production.ERROR: pbx CDR StartTime 2024-12-20 20:29:04 - End Time 2024-12-20 23:29:04 [2024-12-20 23:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066185', 'tblTempUsageDetail_20' ) start [2024-12-20 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066185', 'tblTempUsageDetail_20' ) end [2024-12-20 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066185', 'tblTempVendorCDR_20' ) start [2024-12-20 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066185', 'tblTempVendorCDR_20' ) end [2024-12-20 23:29:16] Production.INFO: ProcessCDR(1,14066185,1,1,2) [2024-12-20 23:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066185', 'tblTempUsageDetail_20' ) start [2024-12-20 23:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066185', 'tblTempUsageDetail_20' ) end [2024-12-20 23:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:29:19] Production.INFO: ==30092== Releasing lock... [2024-12-20 23:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:29:19] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:30:06 [end_date_ymd] => 2024-12-20 23:30:06 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:30:06' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:30:18] Production.INFO: count ==1057 [2024-12-20 23:30:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:30:06 - End Time 2024-12-20 23:30:06 [2024-12-20 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066191', 'tblTempUsageDetail_20' ) start [2024-12-20 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066191', 'tblTempUsageDetail_20' ) end [2024-12-20 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066191', 'tblTempVendorCDR_20' ) start [2024-12-20 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066191', 'tblTempVendorCDR_20' ) end [2024-12-20 23:30:18] Production.INFO: ProcessCDR(1,14066191,1,1,2) [2024-12-20 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066191', 'tblTempUsageDetail_20' ) start [2024-12-20 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066191', 'tblTempUsageDetail_20' ) end [2024-12-20 23:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:30:21] Production.INFO: ==30173== Releasing lock... [2024-12-20 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:30:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-20 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:31:05 [end_date_ymd] => 2024-12-20 23:31:05 [RateCDR] => 1 ) [2024-12-20 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:31:05' and `end` < '2024-12-20 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:31:18] Production.INFO: count ==1018 [2024-12-20 23:31:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:31:05 - End Time 2024-12-20 23:31:05 [2024-12-20 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066196', 'tblTempUsageDetail_20' ) start [2024-12-20 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066196', 'tblTempUsageDetail_20' ) end [2024-12-20 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066196', 'tblTempVendorCDR_20' ) start [2024-12-20 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066196', 'tblTempVendorCDR_20' ) end [2024-12-20 23:31:19] Production.INFO: ProcessCDR(1,14066196,1,1,2) [2024-12-20 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066196', 'tblTempUsageDetail_20' ) start [2024-12-20 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066196', 'tblTempUsageDetail_20' ) end [2024-12-20 23:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:31:21] Production.INFO: ==30252== Releasing lock... [2024-12-20 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:31:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:32:05 [end_date_ymd] => 2024-12-20 23:32:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:32:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:32:17] Production.INFO: count ==1018 [2024-12-20 23:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:32:05 - End Time 2024-12-20 23:32:05 [2024-12-20 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066201', 'tblTempUsageDetail_20' ) start [2024-12-20 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066201', 'tblTempUsageDetail_20' ) end [2024-12-20 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066201', 'tblTempVendorCDR_20' ) start [2024-12-20 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066201', 'tblTempVendorCDR_20' ) end [2024-12-20 23:32:17] Production.INFO: ProcessCDR(1,14066201,1,1,2) [2024-12-20 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066201', 'tblTempUsageDetail_20' ) start [2024-12-20 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066201', 'tblTempUsageDetail_20' ) end [2024-12-20 23:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:32:20] Production.INFO: ==30328== Releasing lock... [2024-12-20 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:32:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:33:05 [end_date_ymd] => 2024-12-20 23:33:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:33:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:33:18] Production.INFO: count ==1019 [2024-12-20 23:33:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:33:05 - End Time 2024-12-20 23:33:05 [2024-12-20 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066206', 'tblTempUsageDetail_20' ) start [2024-12-20 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066206', 'tblTempUsageDetail_20' ) end [2024-12-20 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066206', 'tblTempVendorCDR_20' ) start [2024-12-20 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066206', 'tblTempVendorCDR_20' ) end [2024-12-20 23:33:18] Production.INFO: ProcessCDR(1,14066206,1,1,2) [2024-12-20 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066206', 'tblTempUsageDetail_20' ) start [2024-12-20 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066206', 'tblTempUsageDetail_20' ) end [2024-12-20 23:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:33:22] Production.INFO: ==30404== Releasing lock... [2024-12-20 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:33:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:34:04 [end_date_ymd] => 2024-12-20 23:34:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:34:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:34:17] Production.INFO: count ==1020 [2024-12-20 23:34:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:34:04 - End Time 2024-12-20 23:34:04 [2024-12-20 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066211', 'tblTempUsageDetail_20' ) start [2024-12-20 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066211', 'tblTempUsageDetail_20' ) end [2024-12-20 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066211', 'tblTempVendorCDR_20' ) start [2024-12-20 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066211', 'tblTempVendorCDR_20' ) end [2024-12-20 23:34:17] Production.INFO: ProcessCDR(1,14066211,1,1,2) [2024-12-20 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066211', 'tblTempUsageDetail_20' ) start [2024-12-20 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066211', 'tblTempUsageDetail_20' ) end [2024-12-20 23:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:34:21] Production.INFO: ==30476== Releasing lock... [2024-12-20 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:34:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:35:04 [end_date_ymd] => 2024-12-20 23:35:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:35:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:35:16] Production.INFO: count ==1020 [2024-12-20 23:35:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:35:04 - End Time 2024-12-20 23:35:04 [2024-12-20 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066216', 'tblTempUsageDetail_20' ) start [2024-12-20 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066216', 'tblTempUsageDetail_20' ) end [2024-12-20 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066216', 'tblTempVendorCDR_20' ) start [2024-12-20 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066216', 'tblTempVendorCDR_20' ) end [2024-12-20 23:35:17] Production.INFO: ProcessCDR(1,14066216,1,1,2) [2024-12-20 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066216', 'tblTempUsageDetail_20' ) start [2024-12-20 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066216', 'tblTempUsageDetail_20' ) end [2024-12-20 23:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:35:20] Production.INFO: ==30558== Releasing lock... [2024-12-20 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:35:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:36:05 [end_date_ymd] => 2024-12-20 23:36:05 [RateCDR] => 1 ) [2024-12-20 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:36:05' and `end` < '2024-12-20 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:36:18] Production.INFO: count ==1022 [2024-12-20 23:36:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:36:05 - End Time 2024-12-20 23:36:05 [2024-12-20 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066221', 'tblTempUsageDetail_20' ) start [2024-12-20 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066221', 'tblTempUsageDetail_20' ) end [2024-12-20 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066221', 'tblTempVendorCDR_20' ) start [2024-12-20 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066221', 'tblTempVendorCDR_20' ) end [2024-12-20 23:36:18] Production.INFO: ProcessCDR(1,14066221,1,1,2) [2024-12-20 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066221', 'tblTempUsageDetail_20' ) start [2024-12-20 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066221', 'tblTempUsageDetail_20' ) end [2024-12-20 23:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:36:22] Production.INFO: ==30639== Releasing lock... [2024-12-20 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:36:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:37:05 [end_date_ymd] => 2024-12-20 23:37:05 [RateCDR] => 1 ) [2024-12-20 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:37:05' and `end` < '2024-12-20 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:37:17] Production.INFO: count ==1022 [2024-12-20 23:37:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:37:05 - End Time 2024-12-20 23:37:05 [2024-12-20 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066226', 'tblTempUsageDetail_20' ) start [2024-12-20 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066226', 'tblTempUsageDetail_20' ) end [2024-12-20 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066226', 'tblTempVendorCDR_20' ) start [2024-12-20 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066226', 'tblTempVendorCDR_20' ) end [2024-12-20 23:37:17] Production.INFO: ProcessCDR(1,14066226,1,1,2) [2024-12-20 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066226', 'tblTempUsageDetail_20' ) start [2024-12-20 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066226', 'tblTempUsageDetail_20' ) end [2024-12-20 23:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:37:21] Production.INFO: ==30723== Releasing lock... [2024-12-20 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:37:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:38:04 [end_date_ymd] => 2024-12-20 23:38:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:38:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:38:17] Production.INFO: count ==1022 [2024-12-20 23:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:38:04 - End Time 2024-12-20 23:38:04 [2024-12-20 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066231', 'tblTempUsageDetail_20' ) start [2024-12-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066231', 'tblTempUsageDetail_20' ) end [2024-12-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066231', 'tblTempVendorCDR_20' ) start [2024-12-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066231', 'tblTempVendorCDR_20' ) end [2024-12-20 23:38:17] Production.INFO: ProcessCDR(1,14066231,1,1,2) [2024-12-20 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066231', 'tblTempUsageDetail_20' ) start [2024-12-20 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066231', 'tblTempUsageDetail_20' ) end [2024-12-20 23:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:38:20] Production.INFO: ==30804== Releasing lock... [2024-12-20 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:38:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:39:04 [end_date_ymd] => 2024-12-20 23:39:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:39:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:39:19] Production.INFO: count ==1022 [2024-12-20 23:39:19] Production.ERROR: pbx CDR StartTime 2024-12-20 20:39:04 - End Time 2024-12-20 23:39:04 [2024-12-20 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066236', 'tblTempUsageDetail_20' ) start [2024-12-20 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066236', 'tblTempUsageDetail_20' ) end [2024-12-20 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066236', 'tblTempVendorCDR_20' ) start [2024-12-20 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066236', 'tblTempVendorCDR_20' ) end [2024-12-20 23:39:19] Production.INFO: ProcessCDR(1,14066236,1,1,2) [2024-12-20 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066236', 'tblTempUsageDetail_20' ) start [2024-12-20 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066236', 'tblTempUsageDetail_20' ) end [2024-12-20 23:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:39:22] Production.INFO: ==30885== Releasing lock... [2024-12-20 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:39:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:40:05 [end_date_ymd] => 2024-12-20 23:40:05 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:40:05' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:40:17] Production.INFO: count ==1020 [2024-12-20 23:40:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:40:05 - End Time 2024-12-20 23:40:05 [2024-12-20 23:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066242', 'tblTempUsageDetail_20' ) start [2024-12-20 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066242', 'tblTempUsageDetail_20' ) end [2024-12-20 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066242', 'tblTempVendorCDR_20' ) start [2024-12-20 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066242', 'tblTempVendorCDR_20' ) end [2024-12-20 23:40:17] Production.INFO: ProcessCDR(1,14066242,1,1,2) [2024-12-20 23:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066242', 'tblTempUsageDetail_20' ) start [2024-12-20 23:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066242', 'tblTempUsageDetail_20' ) end [2024-12-20 23:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:40:20] Production.INFO: ==30969== Releasing lock... [2024-12-20 23:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:40:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:41:04 [end_date_ymd] => 2024-12-20 23:41:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:41:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:41:16] Production.INFO: count ==1003 [2024-12-20 23:41:16] Production.ERROR: pbx CDR StartTime 2024-12-20 20:41:04 - End Time 2024-12-20 23:41:04 [2024-12-20 23:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066247', 'tblTempUsageDetail_20' ) start [2024-12-20 23:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066247', 'tblTempUsageDetail_20' ) end [2024-12-20 23:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066247', 'tblTempVendorCDR_20' ) start [2024-12-20 23:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066247', 'tblTempVendorCDR_20' ) end [2024-12-20 23:41:16] Production.INFO: ProcessCDR(1,14066247,1,1,2) [2024-12-20 23:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066247', 'tblTempUsageDetail_20' ) start [2024-12-20 23:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066247', 'tblTempUsageDetail_20' ) end [2024-12-20 23:41:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:41:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:41:19] Production.INFO: ==31051== Releasing lock... [2024-12-20 23:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:41:19] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:42:05 [end_date_ymd] => 2024-12-20 23:42:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:42:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:42:17] Production.INFO: count ==1003 [2024-12-20 23:42:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:42:05 - End Time 2024-12-20 23:42:05 [2024-12-20 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066252', 'tblTempUsageDetail_20' ) start [2024-12-20 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066252', 'tblTempUsageDetail_20' ) end [2024-12-20 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066252', 'tblTempVendorCDR_20' ) start [2024-12-20 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066252', 'tblTempVendorCDR_20' ) end [2024-12-20 23:42:17] Production.INFO: ProcessCDR(1,14066252,1,1,2) [2024-12-20 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066252', 'tblTempUsageDetail_20' ) start [2024-12-20 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066252', 'tblTempUsageDetail_20' ) end [2024-12-20 23:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:42:20] Production.INFO: ==31171== Releasing lock... [2024-12-20 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:42:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:43:04 [end_date_ymd] => 2024-12-20 23:43:04 [RateCDR] => 1 ) [2024-12-20 23: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` >= '2024-12-20 20:43:04' and `end` < '2024-12-20 23: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 ,'') [2024-12-20 23:43:17] Production.INFO: count ==1001 [2024-12-20 23:43:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:43:04 - End Time 2024-12-20 23:43:04 [2024-12-20 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066257', 'tblTempUsageDetail_20' ) start [2024-12-20 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066257', 'tblTempUsageDetail_20' ) end [2024-12-20 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066257', 'tblTempVendorCDR_20' ) start [2024-12-20 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066257', 'tblTempVendorCDR_20' ) end [2024-12-20 23:43:18] Production.INFO: ProcessCDR(1,14066257,1,1,2) [2024-12-20 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066257', 'tblTempUsageDetail_20' ) start [2024-12-20 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066257', 'tblTempUsageDetail_20' ) end [2024-12-20 23:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:43:21] Production.INFO: ==31250== Releasing lock... [2024-12-20 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:43:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:44:05 [end_date_ymd] => 2024-12-20 23:44:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:44:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:44:17] Production.INFO: count ==1003 [2024-12-20 23:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:44:05 - End Time 2024-12-20 23:44:05 [2024-12-20 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066262', 'tblTempUsageDetail_20' ) start [2024-12-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066262', 'tblTempUsageDetail_20' ) end [2024-12-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066262', 'tblTempVendorCDR_20' ) start [2024-12-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066262', 'tblTempVendorCDR_20' ) end [2024-12-20 23:44:17] Production.INFO: ProcessCDR(1,14066262,1,1,2) [2024-12-20 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066262', 'tblTempUsageDetail_20' ) start [2024-12-20 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066262', 'tblTempUsageDetail_20' ) end [2024-12-20 23:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:44:20] Production.INFO: ==31330== Releasing lock... [2024-12-20 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:44:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:45:04 [end_date_ymd] => 2024-12-20 23:45:04 [RateCDR] => 1 ) [2024-12-20 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:45:04' and `end` < '2024-12-20 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:45:16] Production.INFO: count ==1003 [2024-12-20 23:45:16] Production.ERROR: pbx CDR StartTime 2024-12-20 20:45:04 - End Time 2024-12-20 23:45:04 [2024-12-20 23:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066267', 'tblTempUsageDetail_20' ) start [2024-12-20 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066267', 'tblTempUsageDetail_20' ) end [2024-12-20 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066267', 'tblTempVendorCDR_20' ) start [2024-12-20 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066267', 'tblTempVendorCDR_20' ) end [2024-12-20 23:45:16] Production.INFO: ProcessCDR(1,14066267,1,1,2) [2024-12-20 23:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066267', 'tblTempUsageDetail_20' ) start [2024-12-20 23:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066267', 'tblTempUsageDetail_20' ) end [2024-12-20 23:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:45:19] Production.INFO: ==31414== Releasing lock... [2024-12-20 23:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:45:19] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:46:05 [end_date_ymd] => 2024-12-20 23:46:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:46:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:46:17] Production.INFO: count ==1004 [2024-12-20 23:46:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:46:05 - End Time 2024-12-20 23:46:05 [2024-12-20 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066272', 'tblTempUsageDetail_20' ) start [2024-12-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066272', 'tblTempUsageDetail_20' ) end [2024-12-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066272', 'tblTempVendorCDR_20' ) start [2024-12-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066272', 'tblTempVendorCDR_20' ) end [2024-12-20 23:46:17] Production.INFO: ProcessCDR(1,14066272,1,1,2) [2024-12-20 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066272', 'tblTempUsageDetail_20' ) start [2024-12-20 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066272', 'tblTempUsageDetail_20' ) end [2024-12-20 23:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:46:20] Production.INFO: ==31500== Releasing lock... [2024-12-20 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:46:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:47:05 [end_date_ymd] => 2024-12-20 23:47:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:47:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:47:17] Production.INFO: count ==1003 [2024-12-20 23:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:47:05 - End Time 2024-12-20 23:47:05 [2024-12-20 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066277', 'tblTempUsageDetail_20' ) start [2024-12-20 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066277', 'tblTempUsageDetail_20' ) end [2024-12-20 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066277', 'tblTempVendorCDR_20' ) start [2024-12-20 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066277', 'tblTempVendorCDR_20' ) end [2024-12-20 23:47:17] Production.INFO: ProcessCDR(1,14066277,1,1,2) [2024-12-20 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066277', 'tblTempUsageDetail_20' ) start [2024-12-20 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066277', 'tblTempUsageDetail_20' ) end [2024-12-20 23:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:47:21] Production.INFO: ==31594== Releasing lock... [2024-12-20 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:47:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:48:05 [end_date_ymd] => 2024-12-20 23:48:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:48:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:48:17] Production.INFO: count ==1001 [2024-12-20 23:48:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:48:05 - End Time 2024-12-20 23:48:05 [2024-12-20 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066282', 'tblTempUsageDetail_20' ) start [2024-12-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066282', 'tblTempUsageDetail_20' ) end [2024-12-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066282', 'tblTempVendorCDR_20' ) start [2024-12-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066282', 'tblTempVendorCDR_20' ) end [2024-12-20 23:48:17] Production.INFO: ProcessCDR(1,14066282,1,1,2) [2024-12-20 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066282', 'tblTempUsageDetail_20' ) start [2024-12-20 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066282', 'tblTempUsageDetail_20' ) end [2024-12-20 23:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:48:20] Production.INFO: ==31687== Releasing lock... [2024-12-20 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:48:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:49:05 [end_date_ymd] => 2024-12-20 23:49:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:49:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:49:17] Production.INFO: count ==999 [2024-12-20 23:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:49:05 - End Time 2024-12-20 23:49:05 [2024-12-20 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066287', 'tblTempUsageDetail_20' ) start [2024-12-20 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066287', 'tblTempUsageDetail_20' ) end [2024-12-20 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066287', 'tblTempVendorCDR_20' ) start [2024-12-20 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066287', 'tblTempVendorCDR_20' ) end [2024-12-20 23:49:17] Production.INFO: ProcessCDR(1,14066287,1,1,2) [2024-12-20 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066287', 'tblTempUsageDetail_20' ) start [2024-12-20 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066287', 'tblTempUsageDetail_20' ) end [2024-12-20 23:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:49:20] Production.INFO: ==31776== Releasing lock... [2024-12-20 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:49:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-20 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:50:05 [end_date_ymd] => 2024-12-20 23:50:05 [RateCDR] => 1 ) [2024-12-20 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:50:05' and `end` < '2024-12-20 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:50:17] Production.INFO: count ==1001 [2024-12-20 23:50:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:50:05 - End Time 2024-12-20 23:50:05 [2024-12-20 23:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066293', 'tblTempUsageDetail_20' ) start [2024-12-20 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066293', 'tblTempUsageDetail_20' ) end [2024-12-20 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066293', 'tblTempVendorCDR_20' ) start [2024-12-20 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066293', 'tblTempVendorCDR_20' ) end [2024-12-20 23:50:17] Production.INFO: ProcessCDR(1,14066293,1,1,2) [2024-12-20 23:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066293', 'tblTempUsageDetail_20' ) start [2024-12-20 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066293', 'tblTempUsageDetail_20' ) end [2024-12-20 23:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:50:21] Production.INFO: ==31866== Releasing lock... [2024-12-20 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:50:21] Production.INFO: 35 MB #Memory Used# [2024-12-20 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:51:05 [end_date_ymd] => 2024-12-20 23:51:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:51:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:51:19] Production.INFO: count ==973 [2024-12-20 23:51:19] Production.ERROR: pbx CDR StartTime 2024-12-20 20:51:05 - End Time 2024-12-20 23:51:05 [2024-12-20 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066298', 'tblTempUsageDetail_20' ) start [2024-12-20 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066298', 'tblTempUsageDetail_20' ) end [2024-12-20 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066298', 'tblTempVendorCDR_20' ) start [2024-12-20 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066298', 'tblTempVendorCDR_20' ) end [2024-12-20 23:51:19] Production.INFO: ProcessCDR(1,14066298,1,1,2) [2024-12-20 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066298', 'tblTempUsageDetail_20' ) start [2024-12-20 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066298', 'tblTempUsageDetail_20' ) end [2024-12-20 23:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:51:22] Production.INFO: ==31961== Releasing lock... [2024-12-20 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:51:22] Production.INFO: 35 MB #Memory Used# [2024-12-20 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:52:04 [end_date_ymd] => 2024-12-20 23:52:04 [RateCDR] => 1 ) [2024-12-20 23:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:52:04' and `end` < '2024-12-20 23:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:52:16] Production.INFO: count ==971 [2024-12-20 23:52:16] Production.ERROR: pbx CDR StartTime 2024-12-20 20:52:04 - End Time 2024-12-20 23:52:04 [2024-12-20 23:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066303', 'tblTempUsageDetail_20' ) start [2024-12-20 23:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066303', 'tblTempUsageDetail_20' ) end [2024-12-20 23:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066303', 'tblTempVendorCDR_20' ) start [2024-12-20 23:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066303', 'tblTempVendorCDR_20' ) end [2024-12-20 23:52:16] Production.INFO: ProcessCDR(1,14066303,1,1,2) [2024-12-20 23:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066303', 'tblTempUsageDetail_20' ) start [2024-12-20 23:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066303', 'tblTempUsageDetail_20' ) end [2024-12-20 23:52:19] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:52:19] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:52:19] Production.INFO: ==32056== Releasing lock... [2024-12-20 23:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:52:19] Production.INFO: 35 MB #Memory Used# [2024-12-20 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:53:04 [end_date_ymd] => 2024-12-20 23:53:04 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:53:04' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:53:18] Production.INFO: count ==966 [2024-12-20 23:53:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:53:04 - End Time 2024-12-20 23:53:04 [2024-12-20 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066308', 'tblTempUsageDetail_20' ) start [2024-12-20 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066308', 'tblTempUsageDetail_20' ) end [2024-12-20 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066308', 'tblTempVendorCDR_20' ) start [2024-12-20 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066308', 'tblTempVendorCDR_20' ) end [2024-12-20 23:53:18] Production.INFO: ProcessCDR(1,14066308,1,1,2) [2024-12-20 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066308', 'tblTempUsageDetail_20' ) start [2024-12-20 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066308', 'tblTempUsageDetail_20' ) end [2024-12-20 23:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:53:21] Production.INFO: ==32141== Releasing lock... [2024-12-20 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:53:21] Production.INFO: 35 MB #Memory Used# [2024-12-20 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:54:05 [end_date_ymd] => 2024-12-20 23:54:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:54:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:54:17] Production.INFO: count ==964 [2024-12-20 23:54:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:54:05 - End Time 2024-12-20 23:54:05 [2024-12-20 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066313', 'tblTempUsageDetail_20' ) start [2024-12-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066313', 'tblTempUsageDetail_20' ) end [2024-12-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066313', 'tblTempVendorCDR_20' ) start [2024-12-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066313', 'tblTempVendorCDR_20' ) end [2024-12-20 23:54:18] Production.INFO: ProcessCDR(1,14066313,1,1,2) [2024-12-20 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066313', 'tblTempUsageDetail_20' ) start [2024-12-20 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066313', 'tblTempUsageDetail_20' ) end [2024-12-20 23:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:54:21] Production.INFO: ==32223== Releasing lock... [2024-12-20 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:54:21] Production.INFO: 35 MB #Memory Used# [2024-12-20 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:55:05 [end_date_ymd] => 2024-12-20 23:55:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:55:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:55:18] Production.INFO: count ==962 [2024-12-20 23:55:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:55:05 - End Time 2024-12-20 23:55:05 [2024-12-20 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066318', 'tblTempUsageDetail_20' ) start [2024-12-20 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066318', 'tblTempUsageDetail_20' ) end [2024-12-20 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066318', 'tblTempVendorCDR_20' ) start [2024-12-20 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066318', 'tblTempVendorCDR_20' ) end [2024-12-20 23:55:18] Production.INFO: ProcessCDR(1,14066318,1,1,2) [2024-12-20 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066318', 'tblTempUsageDetail_20' ) start [2024-12-20 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066318', 'tblTempUsageDetail_20' ) end [2024-12-20 23:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:55:21] Production.INFO: ==32304== Releasing lock... [2024-12-20 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:55:21] Production.INFO: 35 MB #Memory Used# [2024-12-20 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:56:05 [end_date_ymd] => 2024-12-20 23:56:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:56:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:56:17] Production.INFO: count ==959 [2024-12-20 23:56:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:56:05 - End Time 2024-12-20 23:56:05 [2024-12-20 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066323', 'tblTempUsageDetail_20' ) start [2024-12-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066323', 'tblTempUsageDetail_20' ) end [2024-12-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066323', 'tblTempVendorCDR_20' ) start [2024-12-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066323', 'tblTempVendorCDR_20' ) end [2024-12-20 23:56:17] Production.INFO: ProcessCDR(1,14066323,1,1,2) [2024-12-20 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066323', 'tblTempUsageDetail_20' ) start [2024-12-20 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066323', 'tblTempUsageDetail_20' ) end [2024-12-20 23:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:56:20] Production.INFO: ==32388== Releasing lock... [2024-12-20 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:56:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-20 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:57:04 [end_date_ymd] => 2024-12-20 23:57:04 [RateCDR] => 1 ) [2024-12-20 23:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 20:57:04' and `end` < '2024-12-20 23:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-20 23:57:17] Production.INFO: count ==959 [2024-12-20 23:57:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:57:04 - End Time 2024-12-20 23:57:04 [2024-12-20 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066328', 'tblTempUsageDetail_20' ) start [2024-12-20 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066328', 'tblTempUsageDetail_20' ) end [2024-12-20 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066328', 'tblTempVendorCDR_20' ) start [2024-12-20 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066328', 'tblTempVendorCDR_20' ) end [2024-12-20 23:57:18] Production.INFO: ProcessCDR(1,14066328,1,1,2) [2024-12-20 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066328', 'tblTempUsageDetail_20' ) start [2024-12-20 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066328', 'tblTempUsageDetail_20' ) end [2024-12-20 23:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:57:21] Production.INFO: ==32466== Releasing lock... [2024-12-20 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:57:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-20 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:58:05 [end_date_ymd] => 2024-12-20 23:58:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:58:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:58:18] Production.INFO: count ==958 [2024-12-20 23:58:18] Production.ERROR: pbx CDR StartTime 2024-12-20 20:58:05 - End Time 2024-12-20 23:58:05 [2024-12-20 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066333', 'tblTempUsageDetail_20' ) start [2024-12-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066333', 'tblTempUsageDetail_20' ) end [2024-12-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066333', 'tblTempVendorCDR_20' ) start [2024-12-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066333', 'tblTempVendorCDR_20' ) end [2024-12-20 23:58:18] Production.INFO: ProcessCDR(1,14066333,1,1,2) [2024-12-20 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066333', 'tblTempUsageDetail_20' ) start [2024-12-20 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066333', 'tblTempUsageDetail_20' ) end [2024-12-20 23:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:58:21] Production.INFO: ==32586== Releasing lock... [2024-12-20 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:58:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-20 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 20:59:05 [end_date_ymd] => 2024-12-20 23:59:05 [RateCDR] => 1 ) [2024-12-20 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` >= '2024-12-20 20:59:05' and `end` < '2024-12-20 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 ,'') [2024-12-20 23:59:17] Production.INFO: count ==961 [2024-12-20 23:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 20:59:05 - End Time 2024-12-20 23:59:05 [2024-12-20 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066338', 'tblTempUsageDetail_20' ) start [2024-12-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066338', 'tblTempUsageDetail_20' ) end [2024-12-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066338', 'tblTempVendorCDR_20' ) start [2024-12-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066338', 'tblTempVendorCDR_20' ) end [2024-12-20 23:59:17] Production.INFO: ProcessCDR(1,14066338,1,1,2) [2024-12-20 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-20 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-20 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066338', 'tblTempUsageDetail_20' ) start [2024-12-20 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066338', 'tblTempUsageDetail_20' ) end [2024-12-20 23:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-20 23:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-20 23:59:20] Production.INFO: ==32677== Releasing lock... [2024-12-20 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-20 23:59:20] Production.INFO: 35 MB #Memory Used#